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

    r6926 r7689  
    66from django.newforms.fields import Field, RegexField, Select, EMPTY_VALUES 
    77from django.utils.encoding import smart_unicode 
    8 from django.utils.translation import ugettext 
     8from django.utils.translation import ugettext_lazy as _ 
    99import re 
    1010 
     
    1313class FRZipCodeField(RegexField): 
    1414    default_error_messages = { 
    15         'invalid': ugettext('Enter a zip code in the format XXXXX.'), 
     15        'invalid': _('Enter a zip code in the format XXXXX.'), 
    1616    } 
    1717