The CLDR's "IANA" IDs may (for the sake of stability) date back to before IANA's own naming has been updated. As a result, the "IANA" IDs we were using were in some cases out of date. CLDR does provide a mapping from its stable IDs to all aliases and the current IANA name for each (which I shall soon be needing in other work), so use that to map the CLDR IDs to contemporary IANA ones. Revise the documentation of CldrAccess.readWindowsTimeZones() to take this into account, pass it the alias mapping from the table, use that to map IDs internally and, in passing, rename a variable. Update cldr2qtimezone.py to match the new CldrAccess methods and regenerate the data. Change-Id: I23d8a7d048d76392099d125376b544a41faf7eb3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Mate Barany <mate.barany@qt.io> |
||
|---|---|---|
| .. | ||
| testlocales | ||
| README | ||
| cldr.py | ||
| cldr2qlocalexml.py | ||
| cldr2qtimezone.py | ||
| dateconverter.py | ||
| enumdata.py | ||
| formattags.txt | ||
| iso639_3.py | ||
| ldml.py | ||
| localetools.py | ||
| qlocalexml.py | ||
| qlocalexml.rnc | ||
| qlocalexml2cpp.py | ||
| zonedata.py | ||
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.