From 99dd95f3c236bb48481199a1162bfefce3e31966 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Tue, 23 May 2017 15:24:35 +0200 Subject: 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 --- util/local_database/cldr2qtimezone.py | 45 ++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 19 deletions(-) (limited to 'util/local_database/cldr2qtimezone.py') diff --git a/util/local_database/cldr2qtimezone.py b/util/local_database/cldr2qtimezone.py index 502ab92fd5..bf30e39910 100644 --- a/util/local_database/cldr2qtimezone.py +++ b/util/local_database/cldr2qtimezone.py @@ -26,25 +26,32 @@ ## $QT_END_LICENSE$ ## ############################################################################# - - -# Script to parse the CLDR supplemental/windowsZones.xml file and encode for use in QTimeZone -# XML structure is as follows: -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# +"""Parse CLDR data for QTimeZone use with MS-Windows + +Script to parse the CLDR supplemental/windowsZones.xml file and encode +for use in QTimeZone. See ``./cldr2qlocalexml.py`` for where to get +the CLDR data. Pass its common/ directory as first parameter to this +script and the qtbase root directory as second parameter. It shall +update qtbase's src/corelib/tools/qtimezoneprivate_data_p.h ready for +use. + +The XML structure is as follows: + + + + + + + + + + + + + + + +""" import os import sys -- cgit v1.2.3