jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1181240?usp=email )

Change subject: Update plural forms from unicode.org
......................................................................

Update plural forms from unicode.org

https://www.unicode.org/cldr/charts/47/supplemental/language_plural_rules.html

Bug: T114978
Change-Id: I19fdde76540b4ddc72a09b5f91139ab463d7b731
---
M pywikibot/plural.py
1 file changed, 7 insertions(+), 6 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/pywikibot/plural.py b/pywikibot/plural.py
index df526d5..8fb0e54 100644
--- a/pywikibot/plural.py
+++ b/pywikibot/plural.py
@@ -1,6 +1,6 @@
 """Module containing plural rules of various languages."""
 #
-# (C) Pywikibot team, 2011-2022
+# (C) Pywikibot team, 2011-2025
 #
 # Distributed under the terms of the MIT license.
 #
@@ -62,11 +62,12 @@
             0 if (n == 0) else
             1 if n == 1 else
             2},
-    'mt': {'nplurals': 4, 'plural': lambda n:
-           0 if (n == 1) else
-           1 if (n == 0 or (1 < (n % 100) < 11)) else
-           2 if (10 < (n % 100) < 20) else
-           3},
+    'mt': {'nplurals': 5, 'plural': lambda n:
+           0 if n == 1 else
+           1 if n == 2 else
+           2 if n == 0 or 3 <= (n % 100) <= 10 else
+           3 if 11 <= (n % 100) <= 19 else
+           4},
     'pl': {'nplurals': 3, 'plural': lambda n:
            0 if (n == 1) else
            1 if (2 <= (n % 10) <= 4) and (n % 100 < 10 or n % 100 >= 20)

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1181240?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I19fdde76540b4ddc72a09b5f91139ab463d7b731
Gerrit-Change-Number: 1181240
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <i...@gno.de>
Gerrit-Reviewer: Xqt <i...@gno.de>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- pywikibot-commits@lists.wikimedia.org
To unsubscribe send an email to pywikibot-commits-le...@lists.wikimedia.org

Reply via email to