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/no/forms.py

    r6926 r7689  
    66from django.newforms import ValidationError 
    77from django.newforms.fields import Field, RegexField, Select, EMPTY_VALUES 
    8 from django.utils.translation import ugettext 
     8from django.utils.translation import ugettext_lazy as _ 
    99 
    1010class NOZipCodeField(RegexField): 
    1111    default_error_messages = { 
    12         'invalid': ugettext('Enter a zip code in the format XXXX.'), 
     12        'invalid': _('Enter a zip code in the format XXXX.'), 
    1313    } 
    1414 
     
    3131    """ 
    3232    default_error_messages = { 
    33         'invalid': ugettext(u'Enter a valid Norwegian social security number.'), 
     33        'invalid': _(u'Enter a valid Norwegian social security number.'), 
    3434    } 
    3535