#18479: xgettext warnings cause the makemessages command to raise an exception
--------------------------------------+----------------------------
Reporter: anonymous | Owner: baokham.chau@…
Type: Uncategorized | Status: new
Component: Internationalization | Version: 1.4
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+----------------------------
Related to ticket #7564, in that the messages thrown are the same.
System: Macbook Pro, Lion OS, Django 1.4, Python 2.7.3, xgettext 0.18.1
Still seeing the error:
Error: errors happened while running xgettext on models.py
./myproject/models.py:177: warning: 'msgid' format string with unnamed
arguments cannot be properly localized:
The translator cannot reorder the arguments. Please consider using a
format string with named arguments, and a mapping instead of a tuple for
the arguments.
This happens because xgettext will still throw a warning, which will be
catch by the "if errors:" block in makemessages.py. Inside the block, we
will then raise an exception, regardless of whether or not this error is a
fatal error or not. Suggest fix to at least look at the error level
(info,warning, error, etc.) and only raise an exception if the error is
fatal.
--
Ticket URL: <https://code.djangoproject.com/ticket/18479>
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.