diff options
author | Edward Welbourne <eddy@chaos.org.uk> | 2020-03-17 12:09:30 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-04-02 20:43:34 +0200 |
commit | 89bd12b9ad3e4c265ddf537e845330f76ca2d399 (patch) | |
tree | 68b5fde9b7fe011e4cbf9ae71db9247134adfb49 /util/locale_database | |
parent | 81cf23c7a75eeee5c10e108571fb4222552da5d3 (diff) |
Change QLocale to use CLDR's accounting formats for currencies
In particular, this changed the US currency formats for negative
amounts to be parenthesised versions of the positive amount forms,
rather than having a minus sign after the $ sign. Test updated.
[ChangeLog][QtCore][QLocale] Currency formats are now based on CLDR's
accounting formats, where they were previously mostly based (more or
less by accident) on standard formats. In particular, this now means
negative currency formats are specified, where available, where they
(mostly) were not previously.
Task-number: QTBUG-79902
Change-Id: Ie0c07515ece8bd518a74a6956bf97ca85e9894eb
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'util/locale_database')
-rw-r--r-- | util/locale_database/ldml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/locale_database/ldml.py b/util/locale_database/ldml.py index 940264674b..8ed756fd8e 100644 --- a/util/locale_database/ldml.py +++ b/util/locale_database/ldml.py @@ -348,7 +348,7 @@ class LocaleScanner (object): yield 'minus', minus # Currency formatting: - xpath = 'numbers/currencyFormats/currencyFormatLength/currencyFormat[standard]/pattern' + xpath = 'numbers/currencyFormats/currencyFormatLength/currencyFormat[accounting]/pattern' try: money = self.find(xpath.replace('Formats/', 'Formats[numberSystem={}]/'.format(system))) |