From cb23d50f38ec9d1daed570aa2b89e6d4b3f45c3f Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Thu, 8 Oct 2020 13:39:40 +0200 Subject: Update CLDR to v37, adding Nigerian Pidgin as a new language MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- util/locale_database/README | 6 ++++++ util/locale_database/enumdata.py | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'util') 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 = { -- cgit v1.2.3