Opened 17 years ago

Closed 17 years ago

#4479 closed (fixed)

[unicode] isValidFloat is using gettext in unicode-branch

Reported by: Jure Cuhalev <gandalf@…> Owned by: Malcolm Tredinnick
Component: Validators Version: dev
Severity: Keywords: unicode
Cc: gandalf@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

isValidFloat in django.core validators is referencing gettext in unicode branch, here is a patch:

===================================================================
--- validators.py       (revision 5427)
+++ validators.py       (working copy)
@@ -437,7 +437,7 @@
     try:
         float(data)
     except ValueError:
-        raise ValidationError, gettext("Please enter a valid floating point number.")
+        raise ValidationError, ugettext_lazy("Please enter a valid floating point number.")
 
 class HasAllowableSize(object):
     """

Change History (2)

comment:1 by Malcolm Tredinnick, 17 years ago

Owner: changed from Adrian Holovaty to Malcolm Tredinnick
Summary: [patch] isValidFloat is using gettext in unicode-branch[unicode] isValidFloat is using gettext in unicode-branch
Triage Stage: UnreviewedAccepted

Fixed title.

comment:2 by Malcolm Tredinnick, 17 years ago

Resolution: fixed
Status: newclosed

(In [5445]) unicode: Fixed #4479 -- Changed an errant gettext() call to ugettext().

Note: See TracTickets for help on using tickets.
Back to Top