Hi Aljosa, Sorry for replying so late. Your message managed to slip through unread until today.
On Mon, Sep 15, 2008 at 1:08 PM, Aljosa Mohorovic <[EMAIL PROTECTED]> wrote: > > i get "Please correct the errors below." instead of translation for hr > locale, any idea what could be the problem? > this is part of django.po where this is translated: > > 561 #: contrib/admin/templates/admin/change_form.html:38 > 562 #: contrib/admin/templates/admin/auth/user/change_password.html:22 > 563 msgid "Please correct the error below." > 564 msgid_plural "Please correct the errors below." > 565 msgstr[0] "Molimo ispravite navedenu grešku." > 566 msgstr[1] "Molimo ispravite navedene greške." > This looks Ok. What looks a bit weird is the wrapped plural form definition at the top of the django.po file (lines 15 and 16): "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" "10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" I don know if/how msgfmt copes with a Plural-Forms wrapped in that way. I'd suggest to unwrap so it's in only one line: "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" and then regenerate the django.mo file (with django-admin.py compilemessages -l hr or simply with msgfmt -o django.mo django.po). HTH -- Ramiro Morales --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django I18N" 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 -~----------~----~----~----~------~----~------~--~---
