summaryrefslogtreecommitdiffstats
path: root/util/local_database/qlocalexml2cpp.py
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2012-11-21 15:45:18 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-21 18:23:59 +0100
commite7c79face6ec361e4ad0ff8303f1becafac8b2b6 (patch)
tree1218fa5b00471fa4ed4d9416e0e637081de2e46a /util/local_database/qlocalexml2cpp.py
parent7a49d8dc06f1cf0d0c12cce9d12747df397c7fe2 (diff)
[SIC/BIC] QLocale: update enums up to CLRD 1.9.1
This patch adds some missing codes (two-letter ones only), removes an outdated ones, and updates some names. The legacy language codes are handled in QLocalePrivate::codeToLanguage() (fortunately, there are only 4 of such codes). Change-Id: Iff50aecd1c762b6399cd151aebb955f341d366c6 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'util/local_database/qlocalexml2cpp.py')
-rwxr-xr-xutil/local_database/qlocalexml2cpp.py24
1 files changed, 21 insertions, 3 deletions
diff --git a/util/local_database/qlocalexml2cpp.py b/util/local_database/qlocalexml2cpp.py
index b225d4fba5..b82e1516b4 100755
--- a/util/local_database/qlocalexml2cpp.py
+++ b/util/local_database/qlocalexml2cpp.py
@@ -803,9 +803,19 @@ def main():
for key in language_map.keys():
language = fixedLanguageName(language_map[key][0], dupes)
qlocaleh_temp_file.write(" " + language + " = " + str(key) + ",\n")
- # special cases for norwegian. we really need to make it right at some point.
- qlocaleh_temp_file.write(" NorwegianBokmal = Norwegian,\n")
- qlocaleh_temp_file.write(" NorwegianNynorsk = Nynorsk,\n")
+ # legacy. should disappear at some point
+ qlocaleh_temp_file.write(" Norwegian = NorwegianBokmal,\n")
+ qlocaleh_temp_file.write(" Moldavian = Romanian,\n")
+ qlocaleh_temp_file.write(" SerboCroatian = Serbian,\n")
+ qlocaleh_temp_file.write(" Tagalog = Filipino,\n")
+ qlocaleh_temp_file.write(" Twi = Akan,\n")
+ # renamings
+ qlocaleh_temp_file.write(" Afan = Oromo,\n")
+ qlocaleh_temp_file.write(" Byelorussian = Belarusian,\n")
+ qlocaleh_temp_file.write(" Bhutani = Dzongkha,\n")
+ qlocaleh_temp_file.write(" Cambodian = Khmer,\n")
+ qlocaleh_temp_file.write(" Kurundi = Rundi,\n")
+ qlocaleh_temp_file.write(" RhaetoRomance = Romansh,\n")
qlocaleh_temp_file.write(" LastLanguage = " + language + "\n")
qlocaleh_temp_file.write(" };\n")
@@ -817,6 +827,7 @@ def main():
for key in script_map.keys():
script = fixedScriptName(script_map[key][0], dupes)
qlocaleh_temp_file.write(" " + script + " = " + str(key) + ",\n")
+ # renamings
qlocaleh_temp_file.write(" SimplifiedChineseScript = SimplifiedHanScript,\n")
qlocaleh_temp_file.write(" TraditionalChineseScript = TraditionalHanScript,\n")
qlocaleh_temp_file.write(" LastScript = " + script + "\n")
@@ -828,6 +839,13 @@ def main():
for key in country_map.keys():
country = fixedCountryName(country_map[key][0], dupes)
qlocaleh_temp_file.write(" " + country + " = " + str(key) + ",\n")
+ # renamings
+ qlocaleh_temp_file.write(" DemocraticRepublicOfCongo = CongoKinshasa,\n")
+ qlocaleh_temp_file.write(" PeoplesRepublicOfCongo = CongoBrazzaville,\n")
+ qlocaleh_temp_file.write(" DemocraticRepublicOfKorea = NorthKorea,\n")
+ qlocaleh_temp_file.write(" RepublicOfKorea = SouthKorea,\n")
+ qlocaleh_temp_file.write(" RussianFederation = Russia,\n")
+ qlocaleh_temp_file.write(" SyrianArabRepublic = Syria,\n")
qlocaleh_temp_file.write(" LastCountry = " + country + "\n")
qlocaleh_temp_file.write(" };\n")