i18n Python scripts: declare plural forms for Catalan and Slovak

Regarding Slovak language, there was enough info in
<https://code.qt.io/cgit/qt/qttools.git/tree/src/linguist/shared/numerus.cpp>.
As for Catalan, I don't see anything there, so I put
"ca": ["singular", "plural"] based on the fact that [1] says:

  "Catalan has an inflectional grammar. Nouns have two genders
   (masculine, feminine), and two numbers (singular, plural)."

I suspect we'll be ahead of Qt Linguist for Catalan.

[1] https://en.wikipedia.org/wiki/Catalan_language
This commit is contained in:
Florent Rougon 2020-04-15 11:40:26 +02:00
parent aa7770911b
commit 69033f37f8

View File

@ -83,6 +83,7 @@ FORMAT_HANDLERS_NAMES = []
# qttools/src/linguist/shared/numerus.cpp). # qttools/src/linguist/shared/numerus.cpp).
PLURAL_FORMS = { PLURAL_FORMS = {
None: ["<master>"], # for the default (= master) translation None: ["<master>"], # for the default (= master) translation
"ca": ["singular", "plural"],
"de": ["singular", "plural"], "de": ["singular", "plural"],
"en": ["singular", "plural"], "en": ["singular", "plural"],
"es": ["singular", "plural"], "es": ["singular", "plural"],
@ -92,6 +93,7 @@ PLURAL_FORMS = {
"pl": ["singular", "paucal", "plural"], "pl": ["singular", "paucal", "plural"],
"pt": ["singular", "plural"], "pt": ["singular", "plural"],
"ru": ["singular", "plural"], "ru": ["singular", "plural"],
"sk": ["singular", "paucal", "plural"],
"zh": ["universal"] # universal form "zh": ["universal"] # universal form
} }