Ticket #3410: ticket-3410.2.diff

File ticket-3410.2.diff, 1.1 KB (added by Michael Radziej <mir@…>, 18 years ago)

revised patch

  • django/conf/locale/de/LC_MESSAGES/django.po

    a b msgid "Duplicate values are not allowed.  
    20212021msgstr "Doppelte Werte sind hier nicht erlaubt."
    20222022
    20232023#: core/validators.py:364
    2024 msgid "This value must be between %s and %s."
    2025 msgstr "Dieser Wert muss zwischen %s und %s sein."
     2024msgid "This value must be between %(lower)s and %(upper)s."
     2025msgstr "Dieser Wert muss zwischen %(lower)s und %(upper)s sein."
    20262026
    20272027#: core/validators.py:366
    20282028msgid "This value must be at least %s."
  • django/core/validators.py

    a b class NumberIsInRange(object):  
    361361        self.lower, self.upper = lower, upper
    362362        if not error_message:
    363363            if lower and upper:
    364                 self.error_message = gettext("This value must be between %s and %s.") % (lower, upper)
     364                self.error_message = gettext("This value must be between %(lower)s and %(upper)s.") % {'lower': lower, 'upper': upper}
    365365            elif lower:
    366366                self.error_message = gettext("This value must be at least %s.") % lower
    367367            elif upper:
Back to Top