From 3c733bb6900595abaa71f69d3315ebc80e1105e9 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 6 Aug 2007 05:07:38 +0000 Subject: [PATCH] Fixed #5071 -- Fixed 'global name ugettext is not defined' error in django.core.validators. Thanks, Marco Bonetti git-svn-id: http://code.djangoproject.com/svn/django/trunk@5811 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/validators.py b/django/core/validators.py index ca436690a5..fde4f052cb 100644 --- a/django/core/validators.py +++ b/django/core/validators.py @@ -442,7 +442,7 @@ def isValidFloat(field_data, all_data): try: float(data) except ValueError: - raise ValidationError, ugettext("Please enter a valid floating point number.") + raise ValidationError, _("Please enter a valid floating point number.") class HasAllowableSize(object): """