diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-05-14 15:51:15 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-05-18 12:45:51 (GMT) |
commit | b40e5271102bf0dcbaffff393797c0122dcf29d2 (patch) | |
tree | 09ade076a6cdf613438697465a81958659423cc8 /util/local_database/qlocalexml2cpp.py | |
parent | d4dae6afef39a5ea94a0164b44e3b57394c7dbbc (diff) | |
download | Qt-b40e5271102bf0dcbaffff393797c0122dcf29d2.zip Qt-b40e5271102bf0dcbaffff393797c0122dcf29d2.tar.gz Qt-b40e5271102bf0dcbaffff393797c0122dcf29d2.tar.bz2 |
Added support for es_419 locale.
Added a new country code "419" which stands for "Latin America and the
Caribbean". This is the first three-letter country code (from UN M.49).
Task-number: QT-3312
Reviewed-by: Thiago Macieira
Diffstat (limited to 'util/local_database/qlocalexml2cpp.py')
-rwxr-xr-x | util/local_database/qlocalexml2cpp.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 ";" |