Opened 17 years ago
Closed 17 years ago
#5401 closed (fixed)
[newforms-admin] - make-messages.py does'nt work for django
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Internationalization | Version: | newforms-admin |
Severity: | Keywords: | newforms-admin, make-messages, sprintsept14 | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
There are some untranslatable strings in django.contrib.admindocs:
> make-messages -l cs processing language cs errors happened while running xgettext on views.py ./contrib/admindocs/views.py:172: 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. ./contrib/admindocs/views.py:184: 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. ./contrib/admindocs/views.py:215: 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.
It can be solved by the attached patch.
Attachments (1)
Change History (4)
by , 17 years ago
Attachment: | newforms-admin-translations.diff added |
---|
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 17 years ago
Keywords: | sprintsept14 added |
---|---|
Triage Stage: | Accepted → Ready for checkin |
(I prefer dict(app_label=app_label, ...) over {'app_label': app_label, ...}, but that's me)
comment:3 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Confirming that the attached patch solves the problem.