Hi guys,
I have checked in (in revision [4934]) a change to compile-messages.py
so that it now checks to make sure the format specifiers in Python
strings are correct in the translated strings. We should have been doing
this all along.
Can everybody please run
bin/compile-messages.py -l XX
(where XX is your locale) and then fix any errors.
It is very easy to mess up the format strings. For example, in es_AR
(which is the case that prompted this change), one example is
msgid "Change password: %s"
msgstr "Cambiar contraseña: %S"
We can see here that a capital 'S' is used in the msgstr. Sadly, %S is
not a Python format string. Only %s is. So this would lead to a crash in
Django. Similarly, in the same file:
msgid "The %(verbose_name)s was created successfully."
msgstr "Se creó con éxito %(verbose_name)."
Here, the 's' at the end of "%(verbose_name)s" has been accidentally
left off. This, again, causes a crash because it generates a syntax
error when this string is used in the code.
I'm not picking on es_AR here. It's by no means the worst offender. It
was just the example we noticed. These errors are not trivial problems.
They will actually cause Django to stop working, much to the
disappointment of the users you are trying to help.
So can everybody please check your files and upload patches to Trac to
fix the problems.
Thanks,
Malcolm
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---