In our code, we have the word "Photo" marked for translation in singular. At a different position in the code, we have this word in pluralized translation "Photo" / "Photos", liek so:
1 {% trans 'Photo' %}
2 {% trans 'Photos' %}
and
{{ x }} {% blocktrans count counter=x %}Photo{% plural %}Photos{% endblocktrans %}
Possibly, we must use our counter variable x inside the translation strings. However, I couldn't find anything about such requirement in the docs. Anyway, with our code, all we get in our PO files is:
msgid "Photos"
msgstr ""
msgid "Photo"
msgid_plural "Photos"
msgstr[0] ""
msgstr[1] ""
There is no msgid for "Photo", resulting in "Photo" not being translated at all, since the actual translation string does not exist - except when used in *n*gettext, but not in {% trans 'Photo' %}.
Am I doing something wrong here? Is it a Django bug?