Opened 3 years ago

Closed 3 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: UI/UX:


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.

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by ramiro

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by claudep

  • Resolution set to wontfix
  • Status changed from new to closed

Django translations are now done through the Transifex project.

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

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.