diff --git a/src/wtforms/locale/README.md b/src/wtforms/locale/README.md index 3724950e9..bcdf7b70f 100644 --- a/src/wtforms/locale/README.md +++ b/src/wtforms/locale/README.md @@ -19,6 +19,15 @@ $ pybabel init --input-file src/wtforms/locale/wtforms.pot --output-dir src/wtfo This will create some folders under the locale name and copy the template. +Update +------ + +To add new translatable string to the catalog: + +``` +pybabel extract --copyright-holder="WTForms Team" --project="WTForms" --version="$(python -c 'import wtforms; print(wtforms.__version__)')" --output-file src/wtforms/locale/wtforms.pot src/wtforms +``` + Edit ---- diff --git a/src/wtforms/locale/wtforms.pot b/src/wtforms/locale/wtforms.pot index 9858c1ee5..9bdf80f22 100644 --- a/src/wtforms/locale/wtforms.pot +++ b/src/wtforms/locale/wtforms.pot @@ -1,111 +1,119 @@ # Translations template for WTForms. -# Copyright (C) 2020 WTForms Team +# Copyright (C) 2023 WTForms Team # This file is distributed under the same license as the WTForms project. -# FIRST AUTHOR , 2020. +# FIRST AUTHOR , 2023. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: WTForms 3.0.0.dev\n" +"Project-Id-Version: WTForms 3.0.1\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2020-04-25 11:34-0700\n" +"POT-Creation-Date: 2023-10-05 13:42+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.8.0\n" +"Generated-By: Babel 2.12.1\n" -#: src/wtforms/validators.py:87 +#: src/wtforms/validators.py:86 #, python-format msgid "Invalid field name '%s'." msgstr "" -#: src/wtforms/validators.py:98 +#: src/wtforms/validators.py:99 #, python-format msgid "Field must be equal to %(other_name)s." msgstr "" -#: src/wtforms/validators.py:134 +#: src/wtforms/validators.py:145 #, python-format msgid "Field must be at least %(min)d character long." msgid_plural "Field must be at least %(min)d characters long." msgstr[0] "" msgstr[1] "" -#: src/wtforms/validators.py:140 +#: src/wtforms/validators.py:151 #, python-format msgid "Field cannot be longer than %(max)d character." msgid_plural "Field cannot be longer than %(max)d characters." msgstr[0] "" msgstr[1] "" -#: src/wtforms/validators.py:146 +#: src/wtforms/validators.py:157 #, python-format msgid "Field must be exactly %(max)d character long." msgid_plural "Field must be exactly %(max)d characters long." msgstr[0] "" msgstr[1] "" -#: src/wtforms/validators.py:152 +#: src/wtforms/validators.py:163 #, python-format msgid "Field must be between %(min)d and %(max)d characters long." msgstr "" -#: src/wtforms/validators.py:197 +#: src/wtforms/validators.py:216 #, python-format msgid "Number must be at least %(min)s." msgstr "" -#: src/wtforms/validators.py:199 +#: src/wtforms/validators.py:219 #, python-format msgid "Number must be at most %(max)s." msgstr "" -#: src/wtforms/validators.py:201 +#: src/wtforms/validators.py:222 #, python-format msgid "Number must be between %(min)s and %(max)s." msgstr "" -#: src/wtforms/validators.py:269 src/wtforms/validators.py:294 +#: src/wtforms/validators.py:293 src/wtforms/validators.py:323 msgid "This field is required." msgstr "" -#: src/wtforms/validators.py:327 +#: src/wtforms/validators.py:358 msgid "Invalid input." msgstr "" -#: src/wtforms/validators.py:387 +#: src/wtforms/validators.py:422 msgid "Invalid email address." msgstr "" -#: src/wtforms/validators.py:423 +#: src/wtforms/validators.py:460 msgid "Invalid IP address." msgstr "" -#: src/wtforms/validators.py:466 +#: src/wtforms/validators.py:503 msgid "Invalid Mac address." msgstr "" -#: src/wtforms/validators.py:501 +#: src/wtforms/validators.py:540 msgid "Invalid URL." msgstr "" -#: src/wtforms/validators.py:522 +#: src/wtforms/validators.py:561 msgid "Invalid UUID." msgstr "" -#: src/wtforms/validators.py:553 +#: src/wtforms/validators.py:594 #, python-format msgid "Invalid value, must be one of: %(values)s." msgstr "" -#: src/wtforms/validators.py:588 +#: src/wtforms/validators.py:629 #, python-format msgid "Invalid value, can't be any of: %(values)s." msgstr "" +#: src/wtforms/validators.py:698 +msgid "This field cannot be edited" +msgstr "" + +#: src/wtforms/validators.py:714 +msgid "This field is disabled and cannot have a value" +msgstr "" + #: src/wtforms/csrf/core.py:96 msgid "Invalid CSRF Token." msgstr "" @@ -122,47 +130,53 @@ msgstr "" msgid "CSRF token expired." msgstr "" -#: src/wtforms/fields/core.py:534 +#: src/wtforms/fields/choices.py:135 msgid "Invalid Choice: could not coerce." msgstr "" -#: src/wtforms/fields/core.py:538 +#: src/wtforms/fields/choices.py:139 src/wtforms/fields/choices.py:192 msgid "Choices cannot be None." msgstr "" -#: src/wtforms/fields/core.py:545 +#: src/wtforms/fields/choices.py:148 msgid "Not a valid choice." msgstr "" -#: src/wtforms/fields/core.py:573 +#: src/wtforms/fields/choices.py:185 msgid "Invalid choice(s): one or more data inputs could not be coerced." msgstr "" -#: src/wtforms/fields/core.py:584 +#: src/wtforms/fields/choices.py:204 #, python-format msgid "'%(value)s' is not a valid choice for this field." +msgid_plural "'%(value)s' are not valid choices for this field." +msgstr[0] "" +msgstr[1] "" + +#: src/wtforms/fields/datetime.py:51 +msgid "Not a valid datetime value." msgstr "" -#: src/wtforms/fields/core.py:679 src/wtforms/fields/core.py:689 -msgid "Not a valid integer value." +#: src/wtforms/fields/datetime.py:77 +msgid "Not a valid date value." msgstr "" -#: src/wtforms/fields/core.py:760 -msgid "Not a valid decimal value." +#: src/wtforms/fields/datetime.py:103 +msgid "Not a valid time value." msgstr "" -#: src/wtforms/fields/core.py:788 -msgid "Not a valid float value." +#: src/wtforms/fields/datetime.py:148 +msgid "Not a valid week value." msgstr "" -#: src/wtforms/fields/core.py:853 -msgid "Not a valid datetime value." +#: src/wtforms/fields/numeric.py:82 src/wtforms/fields/numeric.py:92 +msgid "Not a valid integer value." msgstr "" -#: src/wtforms/fields/core.py:871 -msgid "Not a valid date value." +#: src/wtforms/fields/numeric.py:168 +msgid "Not a valid decimal value." msgstr "" -#: src/wtforms/fields/core.py:889 -msgid "Not a valid time value." +#: src/wtforms/fields/numeric.py:197 +msgid "Not a valid float value." msgstr ""