diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2018-08-13 14:32:18 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2018-08-16 10:10:04 +0000 |
commit | cd0a76a1503668155f67d7243e6e9aa8c4d77377 (patch) | |
tree | f944ef47442d78b853065431b66f0bb1f08ef9c0 /src/corelib | |
parent | d363113745edab3a52da009837f0f940409234aa (diff) |
Tidy up generation of aliases in locale-related enums
Replace lines of formatted output with dictionaries from which that
output can be generated efficiently (in sorted order). Tidy up the
python code, in the process.
Change-Id: Ifb74eb69342646c5dbabc3247b3a8ddef602e934
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/tools/qlocale.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/corelib/tools/qlocale.h b/src/corelib/tools/qlocale.h index e3d6c84c50..8e6c5c503b 100644 --- a/src/corelib/tools/qlocale.h +++ b/src/corelib/tools/qlocale.h @@ -437,19 +437,19 @@ public: Osage = 358, Tangut = 359, - Norwegian = NorwegianBokmal, - Moldavian = Romanian, - SerboCroatian = Serbian, - Tagalog = Filipino, - Twi = Akan, Afan = Oromo, - Byelorussian = Belarusian, Bhutani = Dzongkha, + Byelorussian = Belarusian, Cambodian = Khmer, - Kurundi = Rundi, - RhaetoRomance = Romansh, Chewa = Nyanja, Frisian = WesternFrisian, + Kurundi = Rundi, + Moldavian = Romanian, + Norwegian = NorwegianBokmal, + RhaetoRomance = Romansh, + SerboCroatian = Serbian, + Tagalog = Filipino, + Twi = Akan, Uigur = Uighur, LastLanguage = Tangut @@ -868,15 +868,15 @@ public: World = 260, Europe = 261, - Tokelau = TokelauCountry, - Tuvalu = TuvaluCountry, DemocraticRepublicOfCongo = CongoKinshasa, - PeoplesRepublicOfCongo = CongoBrazzaville, DemocraticRepublicOfKorea = NorthKorea, + LatinAmericaAndTheCaribbean = LatinAmerica, + PeoplesRepublicOfCongo = CongoBrazzaville, RepublicOfKorea = SouthKorea, RussianFederation = Russia, SyrianArabRepublic = Syria, - LatinAmericaAndTheCaribbean = LatinAmerica, + Tokelau = TokelauCountry, + Tuvalu = TuvaluCountry, LastCountry = Europe }; |