qt5base-lts/util/locale_database
Edward Welbourne 3a1bc4bad5 Purge deprecated language and country codes from QLocale
Requires subsequent re-numbering of the enum tables to eliminate gaps,
before locale data can be regenerated. However, it will work with the
present locale data, since it merely loses the means to use some names
for which the available data was just the name and code. This implies
a transient issue of recognising some codes for which there is no
actual enum member; but relevant code will work as before, finding
nothing but the code and its name. This shall be resolved by a coming
BiC change to resort the language, country and script codes, changing
the numbering (almost) completely.

[ChangeLog][QtCore][QLocale] Various obsolete language and country
codes have been removed. Some lacked locale data, others were obsolete
aliases. All have been deprecated in 5.15.

Task-number: QTBUG-84669
Change-Id: I45fc76a5f2f6c3b0ea3c1bb61e917da984183783
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2020-10-29 10:44:38 +00:00
..
testlocales Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
cldr2qlocalexml.py Remove unused imports 2020-07-10 02:36:54 +02:00
cldr2qtimezone.py Update util/locale_database/'s README and timezone script instructions 2020-10-09 14:39:55 +02:00
cldr.py Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
dateconverter.py Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00
enumdata.py Purge deprecated language and country codes from QLocale 2020-10-29 10:44:38 +00:00
formattags.txt Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00
ldml.py Fix handling of Suzhou numbering system 2020-07-17 12:19:01 +02:00
localetools.py Add tools to localetools to facilitate source file recreation 2020-04-02 19:42:45 +01:00
qlocalexml2cpp.py Mark QLocale's Language, Country and Script enums as ushort 2020-10-12 16:53:40 +02:00
qlocalexml.py Support digit-grouping correctly 2020-07-14 14:52:08 +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.