Update to CLDR v34
This only updates data on languages already present in 5.12; once it has merged up to dev, the scripts need to be run again to pick up a few more languages and possibly add any more new languages present in v34. Change some tests to match changes in en_AU's abbreviated day and month names. [ChangeLog][ThirdParty][CLDR] Update locale data to CLDR v34. Task-number: QTBUG-71144 Change-Id: I68402b5e7e9d3dba669b8ba31b9a8abd86675c6e Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
5f3518d0bf
commit
3fbf8fbc85
@ -92,7 +92,7 @@
|
|||||||
\note For the current keyboard input locale take a look at
|
\note For the current keyboard input locale take a look at
|
||||||
QInputMethod::locale().
|
QInputMethod::locale().
|
||||||
|
|
||||||
QLocale's data is based on Common Locale Data Repository v33.1.
|
QLocale's data is based on Common Locale Data Repository v34.
|
||||||
|
|
||||||
\sa QString::arg(), QString::toInt(), QString::toDouble(),
|
\sa QString::arg(), QString::toInt(), QString::toDouble(),
|
||||||
QInputMethod::locale()
|
QInputMethod::locale()
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -408,9 +408,10 @@ inline char QLocaleData::digitToCLocale(QChar in) const
|
|||||||
if (in == m_exponential || in == QChar::toUpper(m_exponential))
|
if (in == m_exponential || in == QChar::toUpper(m_exponential))
|
||||||
return 'e';
|
return 'e';
|
||||||
|
|
||||||
// In several languages group() is the char 0xA0, which looks like a space.
|
// In several languages group() is a non-breaking space (U+00A0) or its thin
|
||||||
// People use a regular space instead of it and complain it doesn't work.
|
// version (U+202f), which look like spaces. People (and thus some of our
|
||||||
if (m_group == 0xA0 && in.unicode() == ' ')
|
// tests) use a regular space instead and complain if it doesn't work.
|
||||||
|
if ((m_group == 0xA0 || m_group == 0x202f) && in.unicode() == ' ')
|
||||||
return ',';
|
return ',';
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -20,13 +20,14 @@
|
|||||||
"Name": "Unicode Common Locale Data Repository (CLDR)",
|
"Name": "Unicode Common Locale Data Repository (CLDR)",
|
||||||
"QDocModule": "qtcore",
|
"QDocModule": "qtcore",
|
||||||
"QtUsage": "Used in Qt Core (QTimeZone, QLocale).",
|
"QtUsage": "Used in Qt Core (QTimeZone, QLocale).",
|
||||||
|
"Files": "For update, see qtbase/util/local_database/cldr2qlocalexml.py",
|
||||||
"Files": "qlocale_data_p.h qtimezoneprivate_data_p.h",
|
"Files": "qlocale_data_p.h qtimezoneprivate_data_p.h",
|
||||||
|
|
||||||
"Description": "The Unicode CLDR provides key building blocks for software to support the
|
"Description": "The Unicode CLDR provides key building blocks for software to support the
|
||||||
world's languages, with the largest and most extensive standard repository of locale data
|
world's languages, with the largest and most extensive standard repository of locale data
|
||||||
available.",
|
available.",
|
||||||
"Homepage": "http://cldr.unicode.org/",
|
"Homepage": "http://cldr.unicode.org/",
|
||||||
"Version": "v33.1",
|
"Version": "v34",
|
||||||
"License": "// as specified in https://spdx.org/licenses/Unicode-DFS-2016.html",
|
"License": "// as specified in https://spdx.org/licenses/Unicode-DFS-2016.html",
|
||||||
"License": "Unicode License Agreement - Data Files and Software (2016)",
|
"License": "Unicode License Agreement - Data Files and Software (2016)",
|
||||||
"LicenseId": "Unicode-DFS-2016",
|
"LicenseId": "Unicode-DFS-2016",
|
||||||
|
@ -3848,7 +3848,7 @@ void tst_QDateTimeEdit::dateEditCorrectSectionSize_data()
|
|||||||
<< threeDigitDayIssueKeypresses_DayName << QString::fromLatin1("00/2/Tuesday");
|
<< threeDigitDayIssueKeypresses_DayName << QString::fromLatin1("00/2/Tuesday");
|
||||||
|
|
||||||
QTest::newRow("no fixday, leap, yy/M/ddd") << defaultLocale << defaultDate << QString::fromLatin1("yy/M/ddd")
|
QTest::newRow("no fixday, leap, yy/M/ddd") << defaultLocale << defaultDate << QString::fromLatin1("yy/M/ddd")
|
||||||
<< threeDigitDayIssueKeypresses_DayName << QString::fromLatin1("00/2/Tue.");
|
<< threeDigitDayIssueKeypresses_DayName << QString::fromLatin1("00/2/Tue");
|
||||||
|
|
||||||
QTest::newRow("no fixday, leap, yy/MM/dddd") << defaultLocale << defaultDate << QString::fromLatin1("yy/MM/dddd")
|
QTest::newRow("no fixday, leap, yy/MM/dddd") << defaultLocale << defaultDate << QString::fromLatin1("yy/MM/dddd")
|
||||||
<< threeDigitDayIssueKeypresses_DayName << QString::fromLatin1("00/02/Tuesday");
|
<< threeDigitDayIssueKeypresses_DayName << QString::fromLatin1("00/02/Tuesday");
|
||||||
@ -3896,13 +3896,13 @@ void tst_QDateTimeEdit::dateEditCorrectSectionSize_data()
|
|||||||
<< threeDigitDayIssueKeypresses_YearDayMonth << QString::fromLatin1("2000/29/2");
|
<< threeDigitDayIssueKeypresses_YearDayMonth << QString::fromLatin1("2000/29/2");
|
||||||
|
|
||||||
QTest::newRow("fixday, leap, yyyy/MMM/dd") << defaultLocale << defaultDate << QString::fromLatin1("yyyy/MMM/dd")
|
QTest::newRow("fixday, leap, yyyy/MMM/dd") << defaultLocale << defaultDate << QString::fromLatin1("yyyy/MMM/dd")
|
||||||
<< threeDigitDayIssueKeypresses_ShortMonthName << QString::fromLatin1("2000/Feb./29");
|
<< threeDigitDayIssueKeypresses_ShortMonthName << QString::fromLatin1("2000/Feb/29");
|
||||||
|
|
||||||
QTest::newRow("fixday, leap, yyyy/MMM/d") << defaultLocale << defaultDate << QString::fromLatin1("yyyy/MMM/d")
|
QTest::newRow("fixday, leap, yyyy/MMM/d") << defaultLocale << defaultDate << QString::fromLatin1("yyyy/MMM/d")
|
||||||
<< threeDigitDayIssueKeypresses_ShortMonthName << QString::fromLatin1("2000/Feb./29");
|
<< threeDigitDayIssueKeypresses_ShortMonthName << QString::fromLatin1("2000/Feb/29");
|
||||||
|
|
||||||
QTest::newRow("fixday, leap, yy/MMM/dd") << defaultLocale << defaultDate << QString::fromLatin1("yy/MMM/dd")
|
QTest::newRow("fixday, leap, yy/MMM/dd") << defaultLocale << defaultDate << QString::fromLatin1("yy/MMM/dd")
|
||||||
<< threeDigitDayIssueKeypresses_ShortMonthName << QString::fromLatin1("00/Feb./29");
|
<< threeDigitDayIssueKeypresses_ShortMonthName << QString::fromLatin1("00/Feb/29");
|
||||||
|
|
||||||
QTest::newRow("fixday, leap, yyyy/dddd/M") << defaultLocale << defaultDate << QString::fromLatin1("yyyy/dddd/M")
|
QTest::newRow("fixday, leap, yyyy/dddd/M") << defaultLocale << defaultDate << QString::fromLatin1("yyyy/dddd/M")
|
||||||
<< threeDigitDayIssueKeypresses_DayName_YearDayMonth << QString::fromLatin1("2000/Tuesday/2");
|
<< threeDigitDayIssueKeypresses_DayName_YearDayMonth << QString::fromLatin1("2000/Tuesday/2");
|
||||||
@ -3977,16 +3977,16 @@ void tst_QDateTimeEdit::dateEditCorrectSectionSize_data()
|
|||||||
<< threeDigitDayIssueKeypresses_MonthYearDay << QString::fromLatin1("02/2000/29");
|
<< threeDigitDayIssueKeypresses_MonthYearDay << QString::fromLatin1("02/2000/29");
|
||||||
|
|
||||||
QTest::newRow("fixday, leap, MMM/yy/d") << defaultLocale << defaultDate << QString::fromLatin1("MMM/yy/d")
|
QTest::newRow("fixday, leap, MMM/yy/d") << defaultLocale << defaultDate << QString::fromLatin1("MMM/yy/d")
|
||||||
<< threeDigitDayIssueKeypresses_ShortMonthName_MonthYearDay << QString::fromLatin1("Feb./00/29");
|
<< threeDigitDayIssueKeypresses_ShortMonthName_MonthYearDay << QString::fromLatin1("Feb/00/29");
|
||||||
|
|
||||||
QTest::newRow("fixday, leap, MMM/yyyy/d") << defaultLocale << defaultDate << QString::fromLatin1("MMM/yyyy/d")
|
QTest::newRow("fixday, leap, MMM/yyyy/d") << defaultLocale << defaultDate << QString::fromLatin1("MMM/yyyy/d")
|
||||||
<< threeDigitDayIssueKeypresses_ShortMonthName_MonthYearDay << QString::fromLatin1("Feb./2000/29");
|
<< threeDigitDayIssueKeypresses_ShortMonthName_MonthYearDay << QString::fromLatin1("Feb/2000/29");
|
||||||
|
|
||||||
QTest::newRow("fixday, MMM/yyyy/d") << defaultLocale << defaultDate.addYears(1) << QString::fromLatin1("MMM/yyyy/d")
|
QTest::newRow("fixday, MMM/yyyy/d") << defaultLocale << defaultDate.addYears(1) << QString::fromLatin1("MMM/yyyy/d")
|
||||||
<< threeDigitDayIssueKeypresses_ShortMonthName_MonthYearDay << QString::fromLatin1("Feb./2001/28");
|
<< threeDigitDayIssueKeypresses_ShortMonthName_MonthYearDay << QString::fromLatin1("Feb/2001/28");
|
||||||
|
|
||||||
QTest::newRow("fixday, leap, MMM/yyyy/dd") << defaultLocale << defaultDate << QString::fromLatin1("MMM/yyyy/dd")
|
QTest::newRow("fixday, leap, MMM/yyyy/dd") << defaultLocale << defaultDate << QString::fromLatin1("MMM/yyyy/dd")
|
||||||
<< threeDigitDayIssueKeypresses_ShortMonthName_MonthYearDay << QString::fromLatin1("Feb./2000/29");
|
<< threeDigitDayIssueKeypresses_ShortMonthName_MonthYearDay << QString::fromLatin1("Feb/2000/29");
|
||||||
|
|
||||||
QTest::newRow("fixday, leap, dddd, dd. MMMM yyyy") << defaultLocale
|
QTest::newRow("fixday, leap, dddd, dd. MMMM yyyy") << defaultLocale
|
||||||
<< defaultDate << QString::fromLatin1("dddd, dd. MMMM yyyy")
|
<< defaultDate << QString::fromLatin1("dddd, dd. MMMM yyyy")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user