qt5base-lts/util/locale_database
JiDe Zhang 50a7eb8cf7 Add the "Territory" enumerated type for QLocale
The use of "Country" is misleading as some entries in the enumeration
are not countries (eg, HongKong), for all that most are. The Unicode
Consortium's Common Locale Data Repository (CLDR, from which QLocale's
data is taken) calls these territories, so introduce territory-based
names and prepare to deprecate the country-based ones in due course.

[ChangeLog][QtCore][QLocale] QLocale now has Territory as an alias for
its Country enumeration, and associated territory-based names to match
its country-named methods, to better match the usage in relevant
standards. The country-based names shall in due course be deprecated
in favor of the territory-based names.

Fixes: QTBUG-91686
Change-Id: Ia1ae1ad7323867016186fb775c9600cd5113aa42
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2021-04-15 20:17:49 +08:00
..
testlocales Add the "Territory" enumerated type for QLocale 2021-04-15 20:17:49 +08:00
cldr2qlocalexml.py
cldr2qtimezone.py
cldr.py Add the "Territory" enumerated type for QLocale 2021-04-15 20:17:49 +08:00
dateconverter.py
enumdata.py Add the "Territory" enumerated type for QLocale 2021-04-15 20:17:49 +08:00
formattags.txt
ldml.py
localetools.py
qlocalexml2cpp.py Add the "Territory" enumerated type for QLocale 2021-04-15 20:17:49 +08:00
qlocalexml.py Add the "Territory" enumerated type for QLocale 2021-04-15 20:17:49 +08: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.