Update util/locale_database/'s README and timezone script instructions

The script told me the wrong path to pass as first argument, so
correct that; and the README didn't mention the need to run it.
CLDR v37 makes no change to the actual generated data, though.
Tweaked wording of a comment in the script.

Task-number: QTBUG-84669
Change-Id: I56b510c666f414d9719cef650aeec6192c4fde6e
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Edward Welbourne 2020-10-08 14:02:18 +02:00
parent 4de97909b2
commit 48ab30e02a
2 changed files with 10 additions and 7 deletions

View File

@ -3,3 +3,6 @@ locale_database is used to generate qlocale data from CLDR.
CLDR is the Common Locale Data Repository, a database for localized CLDR is the Common Locale Data Repository, a database for localized
data (like date formats, country names etc). It is provided by the data (like date formats, country names etc). It is provided by the
Unicode consortium. Unicode consortium.
See cldr2qtimezone.py on how to update tables of Windows-specific
names for zones and UTC-offset zone names.

View File

@ -28,12 +28,12 @@
############################################################################# #############################################################################
"""Parse CLDR data for QTimeZone use with MS-Windows """Parse CLDR data for QTimeZone use with MS-Windows
Script to parse the CLDR supplemental/windowsZones.xml file and encode Script to parse the CLDR common/supplemental/windowsZones.xml file and
for use in QTimeZone. See ``./cldr2qlocalexml.py`` for where to get encode for use in QTimeZone. See ``./cldr2qlocalexml.py`` for where
the CLDR data. Pass its common/ directory as first parameter to this to get the CLDR data. Pass its root directory as first parameter to
script and the qtbase root directory as second parameter. It shall this script and the qtbase root directory as second parameter. It
update qtbase's src/corelib/time/qtimezoneprivate_data_p.h ready for shall update qtbase's src/corelib/time/qtimezoneprivate_data_p.h ready
use. for use.
""" """
import os import os
@ -45,7 +45,7 @@ from cldr import CldrAccess
### Data that may need updates in response to new entries in the CLDR file ### ### Data that may need updates in response to new entries in the CLDR file ###
# This script shall report the update you need, if this arises. # This script shall report the updates you need to make, if any arise.
# However, you may need to research the relevant zone's standard offset. # However, you may need to research the relevant zone's standard offset.
# List of currently known Windows IDs. # List of currently known Windows IDs.