app/django/contrib/localflavor/jp/forms.py
changeset 323 ff1a9aa48cfd
parent 54 03e267d67478
--- a/app/django/contrib/localflavor/jp/forms.py	Tue Oct 14 12:36:55 2008 +0000
+++ b/app/django/contrib/localflavor/jp/forms.py	Tue Oct 14 16:00:59 2008 +0000
@@ -2,10 +2,9 @@
 JP-specific Form helpers
 """
 
-from django.core import validators
-from django.newforms import ValidationError
-from django.utils.translation import ugettext
-from django.newforms.fields import RegexField, Select
+from django.forms import ValidationError
+from django.utils.translation import ugettext_lazy as _
+from django.forms.fields import RegexField, Select
 
 class JPPostalCodeField(RegexField):
     """
@@ -14,7 +13,7 @@
     Accepts 7 digits, with or without a hyphen.
     """
     default_error_messages = {
-        'invalid': ugettext('Enter a postal code in the format XXXXXXX or XXX-XXXX.'),
+        'invalid': _('Enter a postal code in the format XXXXXXX or XXX-XXXX.'),
     }
 
     def __init__(self, *args, **kwargs):