[sdk/lokalize] src/catalog: Add plural rule for Min Nan Chinese (Taiwan)
Kisaragi Hiu <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 368983ff47c659e076be394a4221107e1408d7b7 by Kisaragi Hiu.
Committed on 01/08/2026 at 07:23.
Pushed by finw into branch 'master'.
Add plural rule for Min Nan Chinese (Taiwan)
nan_TW has no grammatical plurals:
https://en.wikipedia.org/wiki/Taiwanese_Hokkien#:~:text=grammatical%20plurals
From Taiwanese Grammar: A Concise Reference by Philip T. Lin,
section 4.2 ("Plural and Singular", page 121):
> In general there is no distinction between the singular and plural
> form of nouns.
This is still nan_TW because ISO 639-3 CR 2021-044 (assign ftg to
Taiwanese Taigi (same language as nan_TW)) remains pending and not (yet)
accepted as of August 2026.
M +2 -0 src/catalog/gettextheader.cpp
https://invent.kde.org/sdk/lokalize/-/commit/368983ff47c659e076be394a4221107e1408d7b7
diff --git a/src/catalog/gettextheader.cpp b/src/catalog/gettextheader.cpp
index d0fdd2006..a2135149a 100644
--- a/src/catalog/gettextheader.cpp
+++ b/src/catalog/gettextheader.cpp
@@ -81,6 +81,8 @@ static const langPInfo langsWithPInfo[] = {
{"mk", "nplurals=3; plural=n%10==1 ? 0 : n%10==2 ? 1 : 2;"},
{"mr", "nplurals=2; plural=(n!=1);"},
{"ms", "nplurals=2; plural=1;"},
+ {"nan_TW", "nplurals=1; plural=0;"},
+ {"nan_TW@latin", "nplurals=1; plural=0;"},
{"nb", "nplurals=2; plural=(n != 1);"},
{"nl", "nplurals=2; plural=(n != 1);"},
{"nn", "nplurals=2; plural=(n != 1);"},