Opened 10 years ago

Closed 10 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: master
Severity: Keywords: unicode
Cc: gandalf@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 Changed 10 years ago by Malcolm Tredinnick

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 Changed 10 years ago by Malcolm Tredinnick

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