Opened 13 years ago

Closed 13 years ago

#14934 closed (wontfix)

Decimal errors not localized to LT because of dictionary interpolation

Reported by: davidlmontgomery Owned by: nobody
Component: Translations Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Decimal validation uses the following error messages:

'max_value': _(u'Ensure this value is less than or equal to %(limit_value)s.'),
'min_value': _(u'Ensure this value is greater than or equal to %(limit_value)s.'),

In the Lithuanian translation file with 1.2.3, these appear with straight string interpolation, rather than dictionary interpolation:

msgid "Ensure this value is less than or equal to %s."
msgstr "Įsitikink, kad ši reikšmė yra mažiau arba lygu %s."
msgid "Ensure this value is greater than or equal to %s."
msgstr "Įsitikink, kad ši reikšmė yra daugiau arba lygu %s."

Because of the differences in interpolation, such error messages are not translated.

After modifying the Lithuanian .po file to use dictionary interpolation and recompiling the message, these error messages are translated.

Change History (2)

comment:1 by Ramiro Morales, 13 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Claude Paroz, 13 years ago

Resolution: wontfix
Status: newclosed

Django translations are now done through the Transifex project.

You will find all required information on the Django documentation website:

http://docs.djangoproject.com/en/dev/internals/contributing/#submitting-and-maintaining-translations

Note: See TracTickets for help on using tickets.
Back to Top