Opened 10 years ago
Last modified 10 years ago
#24091 closed Bug
compilemessages does not detect missing variables in djangojs.po files — at Version 2
Reported by: | Philipp Metzler | Owned by: | nobody |
---|---|---|---|
Component: | Internationalization | Version: | 1.7 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
If django.po contains these lines:
msgid "This is a string with a %(variable)d." msgstr "Das ist eine Zeichenkette ohne Variable."
This error will occur when compiling with
django-admin.py compilemessages
a format specification for argument »variable« doesn't exist in »msgstr«
BUT if a translation file for JavaScript djangojs.po contains the same lines no error will occur and this mistake will not be discovered until you stumble upon it by chance.
Change History (2)
comment:1 by , 10 years ago
Description: | modified (diff) |
---|
comment:2 by , 10 years ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.