Le samedi 10 décembre 2011 à 07:52 +0100, Andre Hagenbruch a écrit :
> Hi all,
>
> 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 I'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.
> What's going wrong here?
Hi Andre,
This is obviously a bug in the makemessages command. Could you please
open a ticket on Django bug tracker?
Claude
--
www.2xlibre.net
--
You received this message because you are subscribed to the Google Groups
"Django internationalization and localization" 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-i18n?hl=en.