diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-10-08 16:00:36 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-11-08 13:01:18 +0100 |
commit | 4ab6358039309b7a3610db5f960d5311e8c57627 (patch) | |
tree | 771a453d95bbf9eb740ba392f81d5b5fa934cb5c /util/locale_database/cldr2qtimezone.py | |
parent | 73ceb715767ea43d9243f1888661d835cf3c33e9 (diff) |
Reorder locale enums alphabetically
Binary-incompatible change: change the numeric values of QLocale's
Language, Script and Country enums, as encouraged by a comment in the
generator script enumdata.py and clarify documentation around that.
In the process (since I was changing almost every line anyway),
convert the dictionary values from (mutable) lists of length two to
tuples, since they are (and should be) immutable data.
Change-Id: I26222bce45b9f5074b1d81ed70015a75ac34adcd
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'util/locale_database/cldr2qtimezone.py')
-rwxr-xr-x | util/locale_database/cldr2qtimezone.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/locale_database/cldr2qtimezone.py b/util/locale_database/cldr2qtimezone.py index 4695c0d162..98076e2ec1 100755 --- a/util/locale_database/cldr2qtimezone.py +++ b/util/locale_database/cldr2qtimezone.py @@ -324,7 +324,7 @@ class ZoneIdWriter (SourceFileEditor): return windowsIdData, ianaIdData def usage(err, name, message=''): - err.write("""Usage: {} path/to/cldr/core/common path/to/qtbase + err.write("""Usage: {} path/to/cldr/root path/to/qtbase """.format(name)) # TODO: more interesting message if message: err.write('\n' + message + '\n') |