Django

Code

Show
Ignore:
Timestamp:
06/18/08 08:10:05 (5 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/sk/forms.py

    r6926 r7689  
    44 
    55from django.newforms.fields import Select, RegexField 
    6 from django.utils.translation import ugettext 
     6from django.utils.translation import ugettext_lazy as _ 
    77 
    88class SKRegionSelect(Select): 
     
    2828    """ 
    2929    default_error_messages = { 
    30         'invalid': ugettext(u'Enter a postal code in the format XXXXX or XXX XX.'), 
     30        'invalid': _(u'Enter a postal code in the format XXXXX or XXX XX.'), 
    3131    } 
    3232