Commits

Andriy Kornatskyy committed 57549b1

Updated translations

Comments (0)

Files changed (4)

i18n/en/LC_MESSAGES/validation.po

 "Project-Id-Version: wheezy.validation\n"
 "Report-Msgid-Bugs-To: Andriy Kornatskyy <andriy.kornatskyy@live.com>\n"
 "POT-Creation-Date: 2011-11-02 14:13+0200\n"
-"PO-Revision-Date: 2011-11-02 14:13+0200\n"
+"PO-Revision-Date: 2012-02-04 18:52+0200\n"
 "Last-Translator: Andriy Kornatskyy <andriy.kornatskyy@live.com>\n"
 "Language: US English\n"
 "MIME-Version: 1.0\n"
 
 #: src/wheezy/validation/model.py:81 src/wheezy/validation/model.py:82
 #: src/wheezy/validation/model.py:91 src/wheezy/validation/model.py:103
+#: src/wheezy/validation/model.py:107
 #, python-format
 msgid "The value '%s' is invalid."
 msgstr "The value '%s' is invalid."
 
-#: src/wheezy/validation/model.py:108
+#: src/wheezy/validation/model.py:108 src/wheezy/validation/model.py:112
 #, python-format
 msgid "The value '%s' is not in one of supported formats."
 msgstr "The value '%s' is not in one of supported formats."
 
-#: src/wheezy/validation/rules.py:17
+#: src/wheezy/validation/rules.py:17 src/wheezy/validation/rules.py:20
 msgid "Required field cannot be left blank."
 msgstr "Required field cannot be left blank."
 
-#: src/wheezy/validation/rules.py:87
+#: src/wheezy/validation/rules.py:87 src/wheezy/validation/rules.py:90
 #, python-format
 msgid "Required to be a minimum of %(min)d characters in length."
 msgstr "Required to be a minimum of %(min)d characters in length."
 
-#: src/wheezy/validation/rules.py:92
+#: src/wheezy/validation/rules.py:92 src/wheezy/validation/rules.py:95
 #, python-format
 msgid "The length must fall within the range %(min)d - %(max)d characters."
 msgstr "The length must fall within the range %(min)d - %(max)d characters."
 
-#: src/wheezy/validation/rules.py:99
+#: src/wheezy/validation/rules.py:99 src/wheezy/validation/rules.py:102
 #, python-format
 msgid "Exceeds maximum length of %(max)d."
 msgstr "Exceeds maximum length of %(max)d."
 
-#: src/wheezy/validation/rules.py:224
+#: src/wheezy/validation/rules.py:224 src/wheezy/validation/rules.py:227
 #, python-format
 msgid "The value failed equality comparison with \"%(comparand)s\"."
 msgstr "The value failed equality comparison with \"%(comparand)s\"."
+
+#: src/wheezy/validation/rules.py:290
+msgid "Required to match validation pattern."
+msgstr "Required to match validation pattern."
+
+#: src/wheezy/validation/rules.py:322
+msgid ""
+"Invalid slug. The value must consist of letters, digits, underscopes and/or "
+"hyphens."
+msgstr ""
+"Invalid slug. The value must consist of letters, digits, underscopes and/or "
+"hyphens."
+
+#: src/wheezy/validation/rules.py:354
+msgid "Required to be a valid email address."
+msgstr "Required to be a valid email address."
+
+#: src/wheezy/validation/rules.py:402
+#, python-format
+msgid "Required to be greater or equal to %(min)s."
+msgstr "Required to be greater or equal to %(min)s."
+
+#: src/wheezy/validation/rules.py:406
+#, python-format
+msgid "The value must fall within the range %(min)s - %(max)s"
+msgstr "The value must fall within the range %(min)s - %(max)s"
+
+#: src/wheezy/validation/rules.py:413
+#, python-format
+msgid "Exceeds maximum allowed value of %(max)s."
+msgstr "Exceeds maximum allowed value of %(max)s."

i18n/ru/LC_MESSAGES/validation.po

 "Project-Id-Version: wheezy.validation\n"
 "Report-Msgid-Bugs-To: Andriy Kornatskyy <andriy.kornatskyy@live.com>\n"
 "POT-Creation-Date: 2011-11-02 14:13+0200\n"
-"PO-Revision-Date: 2011-11-02 14:13+0200\n"
+"PO-Revision-Date: 2012-02-04 18:52+0200\n"
 "Last-Translator: Andriy Kornatskyy <andriy.kornatskyy@live.com>\n"
 "Language: Russian\n"
 "MIME-Version: 1.0\n"
 #, python-format
 msgid "The value failed equality comparison with \"%(comparand)s\"."
 msgstr "Значение не равно в сравнении с \"%(comparand)s\"."
+
+#: src/wheezy/validation/rules.py:290
+msgid "Required to match validation pattern."
+msgstr "Обязательно должно соответствовать проверяемому шаблону."
+
+#: src/wheezy/validation/rules.py:322
+msgid ""
+"Invalid slug. The value must consist of letters, digits, underscopes and/or "
+"hyphens."
+msgstr ""
+"Неверный слаг. Значение должно содержать буквы, цыфры, знак подчеркивания "
+"и/или тире."
+
+#: src/wheezy/validation/rules.py:354
+msgid "Required to be a valid email address."
+msgstr "Обязательно должно соответствовать правильному адресу электронной "
+"почты."
+
+#: src/wheezy/validation/rules.py:402
+#, python-format
+msgid "Required to be greater or equal to %(min)s."
+msgstr "Должно быть больше или равно %(min)s."
+
+#: src/wheezy/validation/rules.py:406
+#, python-format
+msgid "The value must fall within the range %(min)s - %(max)s"
+msgstr "Значение должно попадать в диапазон %(min)s - %(max)s"
+
+#: src/wheezy/validation/rules.py:413
+#, python-format
+msgid "Exceeds maximum allowed value of %(max)s."
+msgstr "Превышает максимально допустимое значение %(max)s."

i18n/validation.po

 "Project-Id-Version: wheezy.validation\n"
 "Report-Msgid-Bugs-To: Andriy Kornatskyy <andriy.kornatskyy@live.com>\n"
 "POT-Creation-Date: 2011-11-02 14:13+0200\n"
-"PO-Revision-Date: 2011-11-02 14:13+0200\n"
+"PO-Revision-Date: 2012-02-04 18:52+0200\n"
 "Last-Translator: Andriy Kornatskyy <andriy.kornatskyy@live.com>\n"
 "Language: US English\n"
 "MIME-Version: 1.0\n"
 
 #: src/wheezy/validation/model.py:81 src/wheezy/validation/model.py:82
 #: src/wheezy/validation/model.py:91 src/wheezy/validation/model.py:103
+#: src/wheezy/validation/model.py:107
 #, python-format
 msgid "The value '%s' is invalid."
 msgstr "The value '%s' is invalid."
 
-#: src/wheezy/validation/model.py:108
+#: src/wheezy/validation/model.py:108 src/wheezy/validation/model.py:112
 #, python-format
 msgid "The value '%s' is not in one of supported formats."
 msgstr "The value '%s' is not in one of supported formats."
 
-#: src/wheezy/validation/rules.py:17
+#: src/wheezy/validation/rules.py:17 src/wheezy/validation/rules.py:20
 msgid "Required field cannot be left blank."
 msgstr "Required field cannot be left blank."
 
-#: src/wheezy/validation/rules.py:87
+#: src/wheezy/validation/rules.py:87 src/wheezy/validation/rules.py:90
 #, python-format
 msgid "Required to be a minimum of %(min)d characters in length."
 msgstr "Required to be a minimum of %(min)d characters in length."
 
-#: src/wheezy/validation/rules.py:92
+#: src/wheezy/validation/rules.py:92 src/wheezy/validation/rules.py:95
 #, python-format
 msgid "The length must fall within the range %(min)d - %(max)d characters."
 msgstr "The length must fall within the range %(min)d - %(max)d characters."
 
-#: src/wheezy/validation/rules.py:99
+#: src/wheezy/validation/rules.py:99 src/wheezy/validation/rules.py:102
 #, python-format
 msgid "Exceeds maximum length of %(max)d."
 msgstr "Exceeds maximum length of %(max)d."
 
-#: src/wheezy/validation/rules.py:224
+#: src/wheezy/validation/rules.py:224 src/wheezy/validation/rules.py:227
 #, python-format
 msgid "The value failed equality comparison with \"%(comparand)s\"."
 msgstr "The value failed equality comparison with \"%(comparand)s\"."
+
+#: src/wheezy/validation/rules.py:290
+msgid "Required to match validation pattern."
+msgstr "Required to match validation pattern."
+
+#: src/wheezy/validation/rules.py:322
+msgid ""
+"Invalid slug. The value must consist of letters, digits, underscopes and/or "
+"hyphens."
+msgstr ""
+"Invalid slug. The value must consist of letters, digits, underscopes and/or "
+"hyphens."
+
+#: src/wheezy/validation/rules.py:354
+msgid "Required to be a valid email address."
+msgstr "Required to be a valid email address."
+
+#: src/wheezy/validation/rules.py:402
+#, python-format
+msgid "Required to be greater or equal to %(min)s."
+msgstr "Required to be greater or equal to %(min)s."
+
+#: src/wheezy/validation/rules.py:406
+#, python-format
+msgid "The value must fall within the range %(min)s - %(max)s"
+msgstr "The value must fall within the range %(min)s - %(max)s"
+
+#: src/wheezy/validation/rules.py:413
+#, python-format
+msgid "Exceeds maximum allowed value of %(max)s."
+msgstr "Exceeds maximum allowed value of %(max)s."

src/wheezy/validation/rules.py

         else:
             self.regex = regex
         self.message_template = message_template or _(
-                'Enter a valid value, please.')
+                'Required to match validation pattern.')
 
     def validate(self, value, name, model, result, gettext):
         """
 
     def __init__(self, message_template=None):
         super(SlugRule, self).__init__(r'^[-\w]+$', message_template or _(
-        'Enter a valid slug, please. The value must consist of letters, '
+        'Invalid slug. The value must consist of letters, '
         'digits, underscopes and/or hyphens.'))
 
     def __call__(self, message_template):
                 re.compile(r'[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}',
                     re.IGNORECASE),
                 message_template or
-                _('Enter a valid email address, please.'))
+                _('Required to be a valid email address.'))
 
     def __call__(self, message_template):
         """ Let you customize message template.
         >>> r = range(max=Decimal('15.79'))
         >>> r.validate(Decimal('10'), None, None, result, _)
         True
+        >>> r.validate(Decimal('20'), None, None, result, _)
+        False
     """
 
     def __init__(self, min=None, max=None, message_template=None):
                 self.min = min
                 self.check = self.check_min
                 self.message_template = message_template or _(
-                        'Required to be greater or equal to %(min)d.')
+                        'Required to be greater or equal to %(min)s.')
             else:
                 self.max = max
                 self.message_template = message_template or _(
-                        'The value must fall within the range %(min)d'
-                        ' - %(max)d')
+                        'The value must fall within the range %(min)s'
+                        ' - %(max)s')
         else:
             if max:
                 self.max = max
                 self.check = self.check_max
                 self.message_template = message_template or _(
-                        'Exceeds maximum allowed value of %(max)d.')
+                        'Exceeds maximum allowed value of %(max)s.')
             else:
                 self.check = self.succeed