qt6-bb10/util/locale_database
Edward Welbourne bcadcb029e Use CLDR alias data to find canonical IANA IDs
There are various legacy IANA IDs that we should recognize as aliases
for their contemporary equivalents. Later work shall also take these
into account in the Windows IDs. Scan CLDR's data about these aliases
and use it when constructing QTimeZone. This adds aliasMappingTable
and aliasIdData arrays to QTZP_data_p.h and an AliasData type to its
QtTimeZoneCldr namespace.

Change-Id: I1bbfce62959a7e1b7a0bc4a320c32f5a174a2ff2
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2024-05-21 17:23:21 +02:00
..
testlocales Modernise testlocales/ program and make it compile 2024-04-26 07:36:16 +02:00
README
cldr.py Use CLDR alias data to find canonical IANA IDs 2024-05-21 17:23:21 +02:00
cldr2qlocalexml.py Apply a common style to the main()s of locale database programs 2024-04-26 07:36:16 +02:00
cldr2qtimezone.py Use CLDR alias data to find canonical IANA IDs 2024-05-21 17:23:21 +02:00
dateconverter.py Improve fidelity of approximation to CLDR zone representations 2024-04-22 11:58:25 +02:00
enumdata.py Fix spacing inconsistencies brought to light by flake8 2024-04-23 20:51:19 +02:00
formattags.txt
iso639_3.py Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
ldml.py Fix spacing inconsistencies brought to light by flake8 2024-04-23 20:51:19 +02:00
localetools.py Use CLDR's names in QLocale::*ToName() for language, script, territory 2023-08-09 17:53:42 +02:00
qlocalexml.py Purge an almost-redundant duplicate datetime format conversion 2024-04-30 18:30:15 +02:00
qlocalexml.rnc Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qlocalexml2cpp.py Apply a common style to the main()s of locale database programs 2024-04-26 07:36:16 +02:00
zonedata.py Break out timezone data from cldr2qtimezone.py 2024-05-06 20:27:41 +02:00

README

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.