summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2010-05-20 09:43:37 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2010-05-20 09:43:37 (GMT)
commit30ffe43f826baae366b6e745d077ade316512d3b (patch)
tree3e8c020ec99a5d69b9787a8d164a2f326936eebc /util
parente7989aeb09f7c597edf3498183bd97bd0122382b (diff)
parent99f6250a4ac031b70757442715b226bc339ab699 (diff)
downloadQt-30ffe43f826baae366b6e745d077ade316512d3b.zip
Qt-30ffe43f826baae366b6e745d077ade316512d3b.tar.gz
Qt-30ffe43f826baae366b6e745d077ade316512d3b.tar.bz2
Merge remote branch 'origin/4.7' into qt-master-from-4.7
Diffstat (limited to 'util')
-rwxr-xr-xutil/local_database/cldr2qlocalexml.py8
-rw-r--r--util/local_database/enumdata.py3
-rwxr-xr-xutil/local_database/qlocalexml2cpp.py5
3 files changed, 14 insertions, 2 deletions
diff --git a/util/local_database/cldr2qlocalexml.py b/util/local_database/cldr2qlocalexml.py
index fa9ab47..20a7d34 100755
--- a/util/local_database/cldr2qlocalexml.py
+++ b/util/local_database/cldr2qlocalexml.py
@@ -459,6 +459,14 @@ print \
<language>Persian</language>\n\
<country>Iran</country>\n\
</defaultCountry>\n\
+ <defaultCountry>\n\
+ <language>Mongolian</language>\n\
+ <country>Mongolia</country>\n\
+ </defaultCountry>\n\
+ <defaultCountry>\n\
+ <language>Nepali</language>\n\
+ <country>Nepal</country>\n\
+ </defaultCountry>\n\
</defaultCountryList>"
print " <localeList>"
diff --git a/util/local_database/enumdata.py b/util/local_database/enumdata.py
index b742272..f6b145d 100644
--- a/util/local_database/enumdata.py
+++ b/util/local_database/enumdata.py
@@ -507,7 +507,8 @@ country_list = {
242 : [ "Montenegro", "ME" ],
243 : [ "Serbia", "RS" ],
244 : [ "Saint Barthelemy", "BL" ],
- 245 : [ "Saint Martin", "MF" ]
+ 245 : [ "Saint Martin", "MF" ],
+ 246 : [ "LatinAmericaAndTheCaribbean", "419" ]
}
def countryCodeToId(code):
diff --git a/util/local_database/qlocalexml2cpp.py b/util/local_database/qlocalexml2cpp.py
index da2da32..b6523af 100755
--- a/util/local_database/qlocalexml2cpp.py
+++ b/util/local_database/qlocalexml2cpp.py
@@ -549,7 +549,10 @@ def main():
# Country code list
print "static const unsigned char country_code_list[] ="
for key in country_map.keys():
- print "\"%2s\" // %s" % (country_map[key][1], country_map[key][0])
+ code = country_map[key][1]
+ if len(code) == 2:
+ code += "\\0"
+ print "\"%2s\" // %s" % (code, country_map[key][0])
print ";"