Django

Code

Show
Ignore:
Timestamp:
06/18/08 08:10:05 (3 months ago)
Author:
russellm
Message:

Fixed #7554 -- Modified contrib.localflavor to make use of ugettext, rather than ugettext. Thanks to msaelices for the report and patch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/localflavor/de/forms.py

    r6926 r7689  
    55from django.newforms import ValidationError 
    66from django.newforms.fields import Field, RegexField, Select, EMPTY_VALUES 
    7 from django.utils.translation import ugettext 
     7from django.utils.translation import ugettext_lazy as _ 
    88import re 
    99 
     
    1212class DEZipCodeField(RegexField): 
    1313    default_error_messages = { 
    14         'invalid': ugettext('Enter a zip code in the format XXXXX.'), 
     14        'invalid': _('Enter a zip code in the format XXXXX.'), 
    1515    } 
    1616    def __init__(self, *args, **kwargs): 
     
    3939    """ 
    4040    default_error_messages = { 
    41         'invalid': ugettext('Enter a valid German identity card number in XXXXXXXXXXX-XXXXXXX-XXXXXXX-X format.'), 
     41        'invalid': _('Enter a valid German identity card number in XXXXXXXXXXX-XXXXXXX-XXXXXXX-X format.'), 
    4242    } 
    4343