1. Andriy Kornatskyy
  2. wheezy.validation

Commits

Andriy Kornatskyy  committed 99683b0

Fixed typo in scientific rule validation message.

  • Participants
  • Parent commits 67f90e9
  • Branches default

Comments (0)

Files changed (3)

File i18n/en/LC_MESSAGES/validation.po

View file
 msgstr "Required to be a valid email address."
 
 #: src/wheezy/validation/rules.py:320
-msgid "Required to be a valid number is scientific format."
-msgstr "Required to be a valid number is scientific format."
+msgid "Required to be a valid number in scientific format."
+msgstr "Required to be a valid number in scientific format."
 
 #: src/wheezy/validation/rules.py:338
 msgid "Required to be a valid base64 string."

File i18n/ru/LC_MESSAGES/validation.po

View file
 msgstr "Обязательно должно соответствовать правильному адресу электронной "
 "почты."
 
-msgid "Required to be a valid number is scientific format."
+msgid "Required to be a valid number in scientific format."
 msgstr "Обязательно должно соответствовать числу в научном формате."
 
 msgid "Required to be a valid base64 string."

File src/wheezy/validation/rules.py

View file
             re.compile(r'^[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?$'),
             False,
             message_template or
-            _('Required to be a valid number is scientific format.'))
+            _('Required to be a valid number in scientific format.'))
 
     def __call__(self, message_template):
         """ Let you customize message template.