summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2023-07-27 18:50:21 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2023-08-04 09:45:35 +0200
commit5b97f49777761e78a7ca088d3ea1583b6ab8fb35 (patch)
tree52b46b9075c716511f733129e6a64568db94801b /util
parentbf650edb2efdc8b86df034a707aa6dd0a7278fdd (diff)
Add new languages and a script for CLDR v43
Also add a comment to check the locales new additions enable do have substantial data. Some of those added in the past are more or less stubs, for all that they're officially present. Task-number: QTBUG-111550 Change-Id: I04d46ee96303ecec56c056a0deff6a9457b863e9 Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> Reviewed-by: Mate Barany <mate.barany@qt.io> (cherry picked from commit 5db5d3e4b1e4c3ba996f9cc6109d1d0309255aa3)
Diffstat (limited to 'util')
-rw-r--r--util/locale_database/enumdata.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/util/locale_database/enumdata.py b/util/locale_database/enumdata.py
index 0c5c5dbd5e..17279e6e26 100644
--- a/util/locale_database/enumdata.py
+++ b/util/locale_database/enumdata.py
@@ -367,7 +367,15 @@ language_map = {
334: ("Toki Pona", "tok"),
335: ("Pijin", "pis"),
336: ("Obolo", "ann"),
+ # added in CLDR v43
+ 337: ("Baluchi", "bal"),
+ 338: ("Ligurian", "lij"),
+ 339: ("Rohingya", "rhg"),
+ 340: ("Torwali", "trw"),
}
+# Don't add languages just because they exist; check CLDR does provide
+# substantial data for locales using it; and check, once added, they
+# don't show up in cldr2qlocalexmo.py's unused listing.
language_aliases = {
# Renamings prior to Qt 6.0 (CLDR v37):
@@ -837,6 +845,8 @@ script_map = {
139: ("Vai", "Vaii"),
140: ("Varang Kshiti", "Wara"),
141: ("Yi", "Yiii"),
+ # Added at CLDR v43
+ 142: ("Hanifi", "Rohg"), # Used for Rohingya
}
script_aliases = {