qt5base-lts/util/locale_database
Edward Welbourne 615047e98f Ignore parentLocales nodes with component="..." attributes
From CLDR v43, "The parentLocale elements now have an optional
component attribute, with a value of segmentations or
collations. These should be used for inheritance for those respective
elements." Since we aren't extracting collation or segmentation data
for the present, omit these elements from the scan for parentLocale
information.

Task-number: QTBUG-111550
Change-Id: I42871929f539c1852471812801953f2fc8be0e8a
Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
2023-08-01 15:36:06 +02:00
..
testlocales Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
cldr2qlocalexml.py Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
cldr2qtimezone.py LocaleDB: Make passing qtbase root dir on command-lines optional 2022-11-01 19:14:14 +02:00
cldr.py Ignore parentLocales nodes with component="..." attributes 2023-08-01 15:36:06 +02:00
dateconverter.py Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
enumdata.py Correct enumdata.py's new-at-v42 entries to match generated data 2023-08-01 15:35:48 +02:00
formattags.txt Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00
iso639_3.py Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
ldml.py Ignore parentLocales nodes with component="..." attributes 2023-08-01 15:36:06 +02:00
localetools.py LocaleDB: Make passing qtbase root dir on command-lines optional 2022-11-01 19:14:14 +02:00
qlocalexml2cpp.py Pack languageCodeList tighter 2023-03-15 19:48:30 +01:00
qlocalexml.py Fix typos in QLocaleXmlWriter 2023-08-01 15:35:57 +02:00
qlocalexml.rnc Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
README Update CLDR to v37, adding Nigerian Pidgin as a new language 2020-10-26 15:28:59 +02:00

locale_database is used to generate qlocale data from CLDR.

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.