Opened 18 years ago
Closed 18 years ago
#4479 closed (fixed)
[unicode] isValidFloat is using gettext in unicode-branch
| Reported by: | 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 , 18 years ago
| Owner: | changed from to | 
|---|---|
| Summary: | [patch] isValidFloat is using gettext in unicode-branch → [unicode] isValidFloat is using gettext in unicode-branch | 
| Triage Stage: | Unreviewed → Accepted | 
comment:2 by , 18 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
  Note:
 See   TracTickets
 for help on using tickets.
    
Fixed title.