From 5b97f49777761e78a7ca088d3ea1583b6ab8fb35 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Thu, 27 Jul 2023 18:50:21 +0200 Subject: [PATCH] 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 Reviewed-by: Mate Barany (cherry picked from commit 5db5d3e4b1e4c3ba996f9cc6109d1d0309255aa3) --- util/locale_database/enumdata.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/util/locale_database/enumdata.py b/util/locale_database/enumdata.py index 0c5c5dbd5ea..17279e6e26e 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 = {