Ticket #17989: mark_error_translatable.diff

File mark_error_translatable.diff, 508 bytes (added by Benjamin Wohlwend, 13 years ago)

wrapped error message in ugettext_lazy

  • django/contrib/localflavor/ch/forms.py

    diff --git a/django/contrib/localflavor/ch/forms.py b/django/contrib/localflavor/ch/forms.py
    index 9875c95..649a98a 100644
    a b class CHPhoneNumberField(Field):  
    3434    '0XX XXX XX XX'.
    3535    """
    3636    default_error_messages = {
    37         'invalid': 'Phone numbers must be in 0XX XXX XX XX format.',
     37        'invalid': _('Phone numbers must be in 0XX XXX XX XX format.'),
    3838    }
    3939
    4040    def clean(self, value):
Back to Top