Skip to content

Commit

Permalink
Add support for numbered territories in CLDR
Browse files Browse the repository at this point in the history
The CLDR data contains eight locales with numeric territory codes, 001
for World, 150 for Europe and 419 for Latin America.  The last was
already known in our enumdata.py, but as "Latin America and The
Caribbean", which is not supported by the CLDR, so I've amended it
while adding the other two.  This gives us support for Esperanto and
Yiddish (among others).

[ChangeLog][QtCore][QLocale] Added support for World and Europe as
(numeric) "country" codes ("territory" in CLDR terms), thereby
enabling support for Yiddish and Esperanto, among other locales using
such codes.

Task-number: QTBUG-57802
Change-Id: Ibb1180fb720743a3a0589527649d10f3c9cd123d
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
ediosyncratic committed Aug 13, 2018
1 parent fd38c97 commit 44b6757
Show file tree
Hide file tree
Showing 5 changed files with 3,850 additions and 3,759 deletions.
7 changes: 5 additions & 2 deletions src/corelib/tools/qlocale.h
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ class Q_CORE_EXPORT QLocale
Serbia = 243,
SaintBarthelemy = 244,
SaintMartin = 245,
LatinAmericaAndTheCaribbean = 246,
LatinAmerica = 246,
AscensionIsland = 247,
AlandIslands = 248,
DiegoGarcia = 249,
Expand All @@ -865,6 +865,8 @@ class Q_CORE_EXPORT QLocale
Kosovo = 257,
EuropeanUnion = 258,
OutlyingOceania = 259,
World = 260,
Europe = 261,

Tokelau = TokelauCountry,
Tuvalu = TuvaluCountry,
Expand All @@ -874,8 +876,9 @@ class Q_CORE_EXPORT QLocale
RepublicOfKorea = SouthKorea,
RussianFederation = Russia,
SyrianArabRepublic = Syria,
LatinAmericaAndTheCaribbean = LatinAmerica,

LastCountry = OutlyingOceania
LastCountry = Europe
};
// GENERATED PART ENDS HERE

Expand Down
Loading

0 comments on commit 44b6757

Please sign in to comment.