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

    r7131 r7689  
    55from django.core import validators 
    66from django.newforms import ValidationError 
    7 from django.utils.translation import ugettext 
     7from django.utils.translation import ugettext_lazy as _ 
    88from django.newforms.fields import RegexField, Select 
    99 
     
    1515    """ 
    1616    default_error_messages = { 
    17         'invalid': ugettext('Enter a postal code in the format XXXXXXX or XXX-XXXX.'), 
     17        'invalid': _('Enter a postal code in the format XXXXXXX or XXX-XXXX.'), 
    1818    } 
    1919