qt6-bb10/util/locale_database
Edward Welbourne bb6a73260e Support digit-grouping correctly
Read three more values from CLDR and add a byte to the bit-fields at
the end of QLocaleData, indicating the three group sizes. This adds
three new parameters to various low-level formatting functions. At the
same time, rename ThousandsGroup to GroupDigits, more faithfully
expressing what this (internal) option means.

This replaces commit 27d1391280 with a
fuller implementation that handles digit-grouping in any of the ways
that CLDR supports. The formerly "Indian" formatting now also applies
to at least some locales for Bangladesh, Bhutan and Sri Lanka.

Fixed Costa Rica currency formatting test that wrongly put a separator
after the first digit; the locale (in common with several Spanish
locales) requires at least two digits before the first separator.

[ChangeLog][QtCore][Important Behavior Changes] Some locales require
more than one digit before the first grouping separator; others use
group sizes other than three. The latter was partially supported (only
for India) at 5.15 but is now systematically supported; the former is
now also supported.

Task-number: QTBUG-24301
Fixes: QTBUG-81050
Change-Id: I4ea4e331f3254d1f34801cddf51f3c65d3815573
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-07-14 14:52:08 +02:00
..
testlocales Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00
README Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00
cldr.py Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
cldr2qlocalexml.py Remove unused imports 2020-07-10 02:36:54 +02:00
cldr2qtimezone.py Remove unused imports 2020-07-10 02:36:54 +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 Update CLDR to v36 2019-10-25 11:44:48 +02:00
formattags.txt Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00
ldml.py Support digit-grouping correctly 2020-07-14 14:52:08 +02:00
localetools.py Add tools to localetools to facilitate source file recreation 2020-04-02 19:42:45 +01:00
qlocalexml.py Support digit-grouping correctly 2020-07-14 14:52:08 +02:00
qlocalexml2cpp.py Support digit-grouping correctly 2020-07-14 14:52:08 +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.