Commits

James Crasta committed 3ddc9e5

Fix wording in NumberRange validator to be reflective of inclusive range check

  • Participants
  • Parent commits 5edbf24

Comments (0)

Files changed (9)

File wtforms/ext/i18n/messages/en/LC_MESSAGES/wtforms.po

 
 #: wtforms/validators.py:131
 #, python-format
-msgid "Number must be greater than %(min)s."
-msgstr "Number must be greater than %(min)s."
+msgid "Number must be at least %(min)s."
+msgstr "Number must be at least %(min)s."
 
 #: wtforms/validators.py:133
 #, python-format
-msgid "Number must be less than %(max)s."
-msgstr "Number must be less than %(max)s."
+msgid "Number must be at most %(max)s."
+msgstr "Number must be at most %(max)s."
 
 #: wtforms/validators.py:135
 #, python-format

File wtforms/ext/i18n/messages/es/LC_MESSAGES/wtforms.po

 
 #: wtforms/validators.py:131
 #, python-format
-msgid "Number must be greater than %(min)s."
+msgid "Number must be at least %(min)s."
 msgstr "El número debe ser mayor que %(min)s."
 
 #: wtforms/validators.py:133
 #, python-format
-msgid "Number must be less than %(max)s."
+msgid "Number must be at most %(max)s."
 msgstr "El número debe ser menor que %(max)s."
 
 #: wtforms/validators.py:135

File wtforms/ext/i18n/messages/fa/LC_MESSAGES/wtforms.po

 
 #: wtforms/validators.py:131
 #, python-format
-msgid "Number must be greater than %(min)s."
+msgid "Number must be at least %(min)s."
 msgstr "عدد باید از %(min)s بزرگتر باشد."
 
 #: wtforms/validators.py:133
 #, python-format
-msgid "Number must be less than %(max)s."
+msgid "Number must be at most %(max)s."
 msgstr "عدد باید از %(max)s. کوچکتر باشد."
 
 #: wtforms/validators.py:135

File wtforms/ext/i18n/messages/it/LC_MESSAGES/wtforms.po

 
 #: wtforms/validators.py:131
 #, python-format
-msgid "Number must be greater than %(min)s."
+msgid "Number must be at least %(min)s."
 msgstr "Il numero deve essere maggiore di %(min)s."
 
 #: wtforms/validators.py:133
 #, python-format
-msgid "Number must be less than %(max)s."
+msgid "Number must be at most %(max)s."
 msgstr "Il numero deve essere minore di %(max)s."
 
 #: wtforms/validators.py:135

File wtforms/ext/i18n/messages/pl/LC_MESSAGES/wtforms.po

 
 #: wtforms/validators.py:131
 #, python-format
-msgid "Number must be greater than %(min)s."
+msgid "Number must be at least %(min)s."
 msgstr "Liczba musi być większa niż %(min)s."
 
 #: wtforms/validators.py:133
 #, python-format
-msgid "Number must be less than %(max)s."
+msgid "Number must be at most %(max)s."
 msgstr "Liczba musi być mniejsza niż %(max)s."
 
 #: wtforms/validators.py:135

File wtforms/ext/i18n/messages/ru/LC_MESSAGES/wtforms.po

 
 #: wtforms/validators.py:131
 #, python-format
-msgid "Number must be greater than %(min)s."
+msgid "Number must be at least %(min)s."
 msgstr "Число должно быть больше %(min)s."
 
 #: wtforms/validators.py:133
 #, python-format
-msgid "Number must be less than %(max)s."
+msgid "Number must be at most %(max)s."
 msgstr "Число должно быть меньше %(min)s."
 
 #: wtforms/validators.py:135

File wtforms/ext/i18n/messages/wtforms.pot

 
 #: wtforms/validators.py:131
 #, python-format
-msgid "Number must be greater than %(min)s."
+msgid "Number must be at least %(min)s."
 msgstr ""
 
 #: wtforms/validators.py:133
 #, python-format
-msgid "Number must be less than %(max)s."
+msgid "Number must be at most %(max)s."
 msgstr ""
 
 #: wtforms/validators.py:135

File wtforms/ext/i18n/messages/zh/LC_MESSAGES/wtforms.po

 
 #: wtforms/validators.py:131
 #, python-format
-msgid "Number must be greater than %(min)s."
+msgid "Number must be at least %(min)s."
 msgstr "数值必须大于 %(min)s。"
 
 #: wtforms/validators.py:133
 #, python-format
-msgid "Number must be less than %(max)s."
+msgid "Number must be at most %(max)s."
 msgstr "数值必须小于 %(max)s。"
 
 #: wtforms/validators.py:135

File wtforms/validators.py

                 # we use %(min)s interpolation to support floats, None, and
                 # Decimals without throwing a formatting exception.
                 if self.max is None:
-                    self.message = field.gettext('Number must be greater than %(min)s.')
+                    self.message = field.gettext('Number must be at least %(min)s.')
                 elif self.min is None:
-                    self.message = field.gettext('Number must be less than %(max)s.')
+                    self.message = field.gettext('Number must be at most %(max)s.')
                 else:
                     self.message = field.gettext('Number must be between %(min)s and %(max)s.')