Django: gettext raises ValueError: expressing multiple forms can be dangerous.

If the automatically generated django.po file contains the following line in the header

"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 

"manage.py runningerver" boosts

 gettext.py", line 93, in c2py raise ValueError, 'plural forms expression could be dangerous' ValueError: plural forms expression could be dangerous 

If I delete the line, everything works. What does the title mean? Why is this generated (e.g. haystack application localization)? What does the error message mean?

+4
source share
1 answer

This means that your translator forgot to fill it out correctly .

+1
source

Source: https://habr.com/ru/post/1338894/


All Articles