summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2011-03-04 13:52:27 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2011-03-04 13:55:15 (GMT)
commit2a21c69a038c6aeee23b249ac70572a92f27ec1a (patch)
treea6eea2f971b162b8b1756c9e8f7c4a5bee2068d9 /util
parentdc2280dbcd27d3ff9cbcb230943cc1036e8a2761 (diff)
downloadQt-2a21c69a038c6aeee23b249ac70572a92f27ec1a.zip
Qt-2a21c69a038c6aeee23b249ac70572a92f27ec1a.tar.gz
Qt-2a21c69a038c6aeee23b249ac70572a92f27ec1a.tar.bz2
Added convenience script enum values to QLocale.
Apparently SimplifiedHan and TraditionalHan are not widely used terms, hence adding convenience names SimplifiedChineseScript and TraditionalChineseScript. Also added the missing documentation for the Script enum. Reviewed-by: trustme
Diffstat (limited to 'util')
-rwxr-xr-xutil/local_database/qlocalexml2cpp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/local_database/qlocalexml2cpp.py b/util/local_database/qlocalexml2cpp.py
index b8e4e89..cf1ced6 100755
--- a/util/local_database/qlocalexml2cpp.py
+++ b/util/local_database/qlocalexml2cpp.py
@@ -798,6 +798,8 @@ def main():
for key in script_map.keys():
script = fixedScriptName(script_map[key][0], dupes)
qlocaleh_temp_file.write(" " + script + " = " + str(key) + ",\n")
+ qlocaleh_temp_file.write(" SimplifiedChineseScript = SimplifiedHanScript,\n")
+ qlocaleh_temp_file.write(" TraditionalChineseScript = TraditionalHanScript,\n")
qlocaleh_temp_file.write(" LastScript = " + script + "\n")
qlocaleh_temp_file.write(" };\n")