#29623: DurationField ValidationError message should use proper gettext 
variables
------------------------------------------------+------------------------
               Reporter:  Jannis Leidel         |          Owner:  nobody
                   Type:  Bug                   |         Status:  new
              Component:  Internationalization  |        Version:  2.1
               Severity:  Release blocker       |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 In
 
https://github.com/django/django/commit/55b5393bd235aa6c55ea9a7da6f0e8b75b204084
 a new ValidationError message was added that isn't using the common
 pattern of using string substitution variables but instead a format
 string.

 I noticed this while updating the German translation for 2.1 and found
 Transifex to not display the variables correctly which could prevent
 translators to correctly set the variables in the translated string.

 In my experience translators can mistake "{variables}" in text as
 something to translate as well, which effectively can lead to either
 KeyError (because the expected format variable weren't found) or empty
 fill-ins.

 Either way, this is a possible breaking change.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29623>
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/049.f25115860b033addbb179374287d5e21%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to