qt5base-lts/util/locale_database
Soroush Rabiei aa8393c94f Add support for calendars beside Gregorian
Add QCalendarBackend as a base class for calendar implementations and
QCalendar as a facade via which to access it.

QDate's implicit implementation of the Gregorian calendar becomes
QGregorianCalendar and QDate methods now support choice of calendar.

Convert QLocale's CLDR data for month names to a locale-data component
of each supported calendar and relevant QLocale methods now support
choice of calendar. Adapt Python scripts for locale data generation to
extract month name data from CLDR (keeping on version v35.1) into the
new calendar-locale files. The locale data for the Gregorian calendar
is held in a Roman calendar base, for sharing with other calendars.

Add tests for basic uses of the new API.

[ChangeLog][QtCore][QCalendar] Added QCalendar to support diverse
calendars, supported by implementing QCalendarBackend.

[ChangeLog][QtCore][QDate] Allow choice of calendar in various
operations, with Gregorian remaining the default.

Done-with: Lars Knoll <lars.knoll@qt.io>
Done-with: Edward Welbourne <edward.welbourne@qt.io>
Fixes: QTBUG-17110
Fixes: QTBUG-950
Change-Id: I9d6278f394269a183aee8156e990cec4d5198ab8
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2019-08-20 13:41:21 +02:00
..
testlocales Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00
cldr2qlocalexml.py Add support for calendars beside Gregorian 2019-08-20 13:41:21 +02:00
cldr2qtimezone.py Add data for Windows Time-Zone IDs added in the last two years 2019-07-01 17:48:53 +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 Add locale support for Cebuano and Erzya languages (new in CLDR v35.1) 2019-05-20 20:42:11 +02:00
formattags.txt Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00
localexml.py Add support for calendars beside Gregorian 2019-08-20 13:41:21 +02:00
qlocalexml2cpp.py Add support for calendars beside Gregorian 2019-08-20 13:41:21 +02:00
README Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00
xpathlite.py Suggest name, when available, for unknown codes 2019-05-20 20:42:11 +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.