Re: How to fix "plural forms expression could be dangerous"

2017-05-21 Thread Martin Brochhaus
Thanks for the reply, Tom. Inserting those values does indeed make the error go away, but I am still left with the issue that on each deployment, when I run `./manage.py makemessages`, it overwrites that line with the faulty one and my site is left in a broken state. Anyone knows how to

Re: How to fix "plural forms expression could be dangerous"

2017-05-18 Thread 'Tom Evans' via Django users
You need to change INTEGER and EXPRESSION for the correct values. I believe for zh you want "nplurals=1; plural=0;" Cheers Tom On Thu, May 18, 2017 at 7:41 AM, Martin Brochhaus wrote: > Hi everyone, > > in my project, I am generating my .po files like this: > >

How to fix "plural forms expression could be dangerous"

2017-05-18 Thread Martin Brochhaus
Hi everyone, in my project, I am generating my .po files like this: python manage.py makemessages --ignore=node_modules/* --ignore=*migrations/* --ignore=*tests/* --ignore=__init__.py --ignore=submodules/* --ignore=fabfile* -l zh_CN Usually this results in the following line being added to my