I am using Django and cannot get the correct plural form in my template using French, whatever text I use in my blocktrans tag. For example:
{% blocktrans count counter=0 %}
foo
{% plural %}
bars
{% endblocktrans %}
Gives me bars
instead of foo
. Indeed, 0 is singular in French.
I checked the language code with the following in my template:
{% get_current_language as LANGUAGE_CODE %}
{{ LANGUAGE_CODE }}
It gives me fr
.
The following is in the header of my django.po
file for French translation:
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
Do you have any idea guys?