Iam just putting localization into a django project. I want to pluralize a sentence, what looks like this:
{% blocktrans count count=rows.count %}
in {{ count }} row
{% plural %}
in {{ count }} rows
{% endblocktrans %}
not very pretty, but ok, still usable. (That is, by the way, how its described in the django documentation) But then it turns out, that it looks like this in django.po
msgid ""
"\n"
" in %(count)s row\n"
" "
msgid_plural ""
"\n"
" in %(count)s rows\n"
" "
That is really very unpretty. But I would have to change the template code to:
{% blocktrans count count=rows.count %}in {{ count }} row{% plural %}in {{ count }} rows{% endblocktrans %}
to make this better. That is pretty much unreadable. Is there no better way with django localization?