#17375: 'makemessages' ignores plural from 'blocktrans'
--------------------------------------+--------------------
Reporter: ahagenbruch | Owner: nobody
Type: Bug | Status: new
Component: Internationalization | Version: SVN
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
I have two files with equal strings to translate, in the first file
with `trans` and in the second file with `blocktrans` and a plural form:
{{{
a.html:
{% trans 'My string' %}
}}}
{{{
b.html:
{% blocktrans count counter=mylist|length %}My string{% plural %}My
strings{% endblocktrans %}
}}}
and when I run `django-admin.py makemessages -l de` I get
{{{
django.po
#: templates/a.html:108
#: templates/b.html:3
msgid "My string"
msgstr ""
}}}
and not as you'd expect
{{{
django.po
#: templates/a.html:108
#: templates/b.html:3
msgid "My string"
msgid_plural "My strings"
msgstr[0] ""
msgstr[1] ""
}}}
I can reproduce this for similar structures in other files.
`blocktrans` strings that don't have `trans` equivalents in other
files correctly produce entries with plural forms in the .po file.
--
Ticket URL: <https://code.djangoproject.com/ticket/17375>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.