The QLocale XML reader was passing datetime formats through a format conversion despite the data being converted at the point where we read it from CLDR. It turns out this was needed because the long date and time formats in our hard-coded data for the C Locale object used CLDR format strings, unlike all other Locale objects. Fix those two formats in the C locale and remove the redundant processing step. This, in turn, enables the parser to include the date and time formats in its general handling of most fields that it reads. This does not result in any change to the generated data QLocale uses (although it does change the intermediate QLocale XML file). Task-number: QTBUG-115158 Change-Id: Iaf9da206158043dda2e9e5a3790f009b100e46b4 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 | ||
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.