diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2011-03-04 14:52:27 +0100 |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2011-03-04 14:55:15 +0100 |
commit | 2a21c69a038c6aeee23b249ac70572a92f27ec1a (patch) | |
tree | a6eea2f971b162b8b1756c9e8f7c4a5bee2068d9 /util | |
parent | dc2280dbcd27d3ff9cbcb230943cc1036e8a2761 (diff) | |
download | qt4-tools-2a21c69a038c6aeee23b249ac70572a92f27ec1a.tar.gz |
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-x | util/local_database/qlocalexml2cpp.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/local_database/qlocalexml2cpp.py b/util/local_database/qlocalexml2cpp.py index b8e4e896da..cf1ced6509 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") |