summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-10-08 13:39:40 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-10-26 15:28:59 +0200
commitcb23d50f38ec9d1daed570aa2b89e6d4b3f45c3f (patch)
treeb65c947b56d6ac8c711036e28454ebc154734c74 /util
parent4c793e6353ece51d4c04373f54e13d540b45195e (diff)
Update CLDR to v37, adding Nigerian Pidgin as a new language
Routine update by running scripts, ignoring clang-format's extensive grumbles. Added notes to util/locale_database/'s README, on the need for that, and enumdata.py, on when to add entries. As usual, several new locales are also added, for existing languages, territories and scripts. [ChangeLog][QtCore][QLocale] Updated to new version of CLDR (the Unicode Consortium's Common Locale Data Repository) v37. Fixes: QTBUG-84669 Pick-to: 5.15 Change-Id: Ib76848bf4bd1219180faf46820077e8d8049a4e3 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'util')
-rw-r--r--util/locale_database/README6
-rw-r--r--util/locale_database/enumdata.py10
2 files changed, 15 insertions, 1 deletions
diff --git a/util/locale_database/README b/util/locale_database/README
index f55e53faa6..b910d36f2a 100644
--- a/util/locale_database/README
+++ b/util/locale_database/README
@@ -4,5 +4,11 @@ CLDR is the Common Locale Data Repository, a database for localized
data (like date formats, country names etc). It is provided by the
Unicode consortium.
+See cldr2qlocalexml.py for how to run it and qlocalexml2cpp.py to
+update the locale data tables (principally text/qlocale_data_p.h and
+time/q*calendar_data_p.h under src/corelib/). See enumdata.py for when
+and how to update the data it provides. You shall definitely need to
+pass --no-verify or -n to git commit for these changes.
+
See cldr2qtimezone.py on how to update tables of Windows-specific
names for zones and UTC-offset zone names.
diff --git a/util/locale_database/enumdata.py b/util/locale_database/enumdata.py
index 4b4febf002..e686f580d0 100644
--- a/util/locale_database/enumdata.py
+++ b/util/locale_database/enumdata.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
#############################################################################
##
-## Copyright (C) 2019 The Qt Company Ltd.
+## Copyright (C) 2020 The Qt Company Ltd.
## Contact: https://www.qt.io/licensing/
##
## This file is part of the test suite of the Qt Toolkit.
@@ -27,6 +27,13 @@
##
#############################################################################
+# A run of cldr2qlocalexml.py will produce output reporting any
+# language, script and country codes it sees, in data, for which it
+# can find a name (taken always from en.xml) that could potentially be
+# used. There is no point adding a mapping for such a code unless the
+# CLDR's common/main/ contains an XML file for at least one locale
+# that exerciss it.
+
# Each *_list reflects the current values of its enums in qlocale.h;
# if new xml language files are available in CLDR, these languages and
# countries need to be *appended* to this list (for compatibility
@@ -407,6 +414,7 @@ language_list = {
367: ["Chickasaw", "cic"],
368: ["Muscogee", "mus"],
369: ["Silesian", "szl"],
+ 370: ["Nigerian Pidgin", "pcm"],
}
language_aliases = {