--- a/app/django/contrib/localflavor/sk/forms.py Tue Oct 14 12:36:55 2008 +0000
+++ b/app/django/contrib/localflavor/sk/forms.py Tue Oct 14 16:00:59 2008 +0000
@@ -2,8 +2,8 @@
Slovak-specific form helpers
"""
-from django.newforms.fields import Select, RegexField
-from django.utils.translation import ugettext
+from django.forms.fields import Select, RegexField
+from django.utils.translation import ugettext_lazy as _
class SKRegionSelect(Select):
"""
@@ -27,7 +27,7 @@
Valid form is XXXXX or XXX XX, where X represents integer.
"""
default_error_messages = {
- 'invalid': ugettext(u'Enter a postal code in the format XXXXX or XXX XX.'),
+ 'invalid': _(u'Enter a postal code in the format XXXXX or XXX XX.'),
}
def __init__(self, *args, **kwargs):