#24091: compilemessages does not detect missing variables in djangojs.po files
--------------------------------------+--------------------
     Reporter:  googol7               |      Owner:  nobody
         Type:  Bug                   |     Status:  new
    Component:  Internationalization  |    Version:  1.7
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 If django.po contains these lines:

 {{{
 msgid "This is a string with a %(variabel)d."
 msgstr "Das ist eine Zeichenkette ohne Variable."
 }}}

 This error will occur when compiling with
 {{{
 django-admin.py compilemessages
 }}}

 ''a format specification for argument »items« 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.

 https://docs.djangoproject.com/en/1.7/topics/i18n/translation/#creating-
 message-files-from-javascript-source-code

--
Ticket URL: <https://code.djangoproject.com/ticket/24091>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.222bd4593c02269e7bb791c11b977719%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to