Skip to content

Commit

Permalink
chore: catalog update
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Oct 5, 2023
1 parent a6f44f0 commit e30cbfd
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 40 deletions.
9 changes: 9 additions & 0 deletions src/wtforms/locale/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
----

Expand Down
94 changes: 54 additions & 40 deletions src/wtforms/locale/wtforms.pot
Original file line number Diff line number Diff line change
@@ -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 <EMAIL@ADDRESS>, 2020.
# FIRST AUTHOR <EMAIL@ADDRESS>, 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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 ""
Expand All @@ -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 ""

0 comments on commit e30cbfd

Please sign in to comment.