diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2017-05-23 15:24:35 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2017-06-08 13:36:48 +0000 |
commit | 99dd95f3c236bb48481199a1162bfefce3e31966 (patch) | |
tree | 5a48e81164ca4da966de6773c09ea72d290f386d /util/local_database/qlocalexml2cpp.py | |
parent | 0caaf33d2f089ad70b8d8a6952dc2a5f44505acc (diff) |
Document how to use the CLDR-related scripts
Say where to find the data, how to unpack it and how to run the
scripts to update our source tree from it.
Change-Id: I5b680090bb5850f29c1e7d61efd1d450856b9949
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'util/local_database/qlocalexml2cpp.py')
-rwxr-xr-x | util/local_database/qlocalexml2cpp.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/util/local_database/qlocalexml2cpp.py b/util/local_database/qlocalexml2cpp.py index 9fd88c46fe..3a2db1580d 100755 --- a/util/local_database/qlocalexml2cpp.py +++ b/util/local_database/qlocalexml2cpp.py @@ -26,6 +26,12 @@ ## $QT_END_LICENSE$ ## ############################################################################# +"""Script to generate C++ code from CLDR data in qLocaleXML form + +See ``cldr2qlocalexml.py`` for how to generate the qLocaleXML data itself. +Pass the output file from that as first parameter to this script; pass +the root of the qtbase check-out as second parameter. +""" import os import sys @@ -454,7 +460,7 @@ def currencyIsoCodeData(s): return "0,0,0" def usage(): - print "Usage: qlocalexml2cpp.py <path-to-locale.xml> <path-to-qt-src-tree>" + print "Usage: qlocalexml2cpp.py <path-to-locale.xml> <path-to-qtbase-src-tree>" sys.exit(1) GENERATED_BLOCK_START = "// GENERATED PART STARTS HERE\n" |