Skip to content

Commit

Permalink
Rename util/locale_database/ to include the e that was missing
Browse files Browse the repository at this point in the history
It was misnamed local_database, quite missing the point of its name.

Change-Id: I73a4fdf24f53daac12304de1f443636d89afacb2
Reviewed-by: Lars Knoll <[email protected]>
Reviewed-by: Konstantin Ritt <[email protected]>
  • Loading branch information
ediosyncratic committed May 20, 2019
1 parent cf909f0 commit 248b675
Show file tree
Hide file tree
Showing 20 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/corelib/tools/qlocale_data_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static const int ImperialMeasurementSystemsCount =

Do not edit this section: instead regenerate it using
cldr2qlocalexml.py and qlocalexml2cpp.py on updated (or
edited) CLDR data; see qtbase/util/local_database/.
edited) CLDR data; see qtbase/util/locale_database/.
*/

static const QLocaleId likely_subtags[] = {
Expand Down
2 changes: 1 addition & 1 deletion src/corelib/tools/qlocale_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static QString macTimeToString(const QTime &time, bool short_format)

// Mac uses the Unicode CLDR format codes
// http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
// See also qtbase/util/local_database/dateconverter.py
// See also qtbase/util/locale_database/dateconverter.py
// Makes the assumption that input formats are always well formed and consecutive letters
// never exceed the maximum for the format code.
static QString macToQtFormat(QStringView sys_fmt)
Expand Down
2 changes: 1 addition & 1 deletion src/corelib/tools/qt_attribution.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"Name": "Unicode Common Locale Data Repository (CLDR)",
"QDocModule": "qtcore",
"QtUsage": "Used in Qt Core (QTimeZone, QLocale).",
"Files": "For update, see qtbase/util/local_database/cldr2qlocalexml.py",
"Files": "For update, see qtbase/util/locale_database/cldr2qlocalexml.py",
"Files": "qlocale_data_p.h qtimezoneprivate_data_p.h",

"Description": "The Unicode CLDR provides key building blocks for software to support the
Expand Down
4 changes: 2 additions & 2 deletions src/corelib/tools/qtimezoneprivate_data_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ QT_BEGIN_NAMESPACE
with a QT:Spec of OffsetFromUTC
These tables are automatically adapted from the CLDR supplemental/windowsZones.xml data file
using a script in qtbase/util/local_database. Please do not edit this data directly. In the
using a script in qtbase/util/locale_database. Please do not edit this data directly. In the
future if ICU is made a hard dependency then the ICU resource can be used directly and this
table removed
*/
Expand Down Expand Up @@ -120,7 +120,7 @@ struct QUtcData {
http://www.unicode.org/cldr/
Do not edit this code: run cldr2qtimezone.py on updated (or
edited) CLDR data; see qtbase/util/local_database/.
edited) CLDR data; see qtbase/util/locale_database/.
*/

// Windows ID Key, Country Enum, IANA ID Index
Expand Down
1 change: 0 additions & 1 deletion util/local_database/README

This file was deleted.

5 changes: 5 additions & 0 deletions util/locale_database/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
locale_database is used to generate qlocale data from CLDR.

CLDR is the Common Locale Data Repository, a database for localized
data (like date formats, country names etc). It is provided by the
Unicode consortium.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def usage():
http://www.unicode.org/cldr/
Do not edit this code: run cldr2qtimezone.py on updated (or
edited) CLDR data; see qtbase/util/local_database/.
edited) CLDR data; see qtbase/util/locale_database/.
*/
""" % (str(datetime.date.today()), cldr_version, versionNumber) )
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def main():
Do not edit this section: instead regenerate it using
cldr2qlocalexml.py and qlocalexml2cpp.py on updated (or
edited) CLDR data; see qtbase/util/local_database/.
edited) CLDR data; see qtbase/util/locale_database/.
*/
""" % (str(datetime.date.today()), cldr_version) )
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 248b675

Please sign in to comment.