-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?

Any help would be greatly appreciated,

Andre
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7gkRcACgkQZL0DjZDoBMXlMwCcDAlogdg7F6mtQYqqIxNqEY2y
Ne8AnAp8jtGs56WaWXFUTBKz8BlsDLYO
=JP45
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to