From 89bd12b9ad3e4c265ddf537e845330f76ca2d399 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Tue, 17 Mar 2020 12:09:30 +0100 Subject: 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 --- util/locale_database/ldml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') 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))) -- cgit v1.2.3