diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/locale_database/ldml.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/util/locale_database/ldml.py b/util/locale_database/ldml.py index ff94f3da73..a4a8448a43 100644 --- a/util/locale_database/ldml.py +++ b/util/locale_database/ldml.py @@ -323,7 +323,12 @@ class LocaleScanner (object): yield 'minus', minus # Currency formatting (currencyFormat may have a type field): - money = self.find('numbers/currencyFormats/currencyFormatLength/currencyFormat/pattern') + xpath = 'numbers/currencyFormats/currencyFormatLength/currencyFormat/pattern' + try: + money = self.find(xpath.replace('Formats/', + 'Formats[numberSystem={}]/'.format(system))) + except Error: + money = self.find(xpath) money = self.__currencyFormats(money, plus, minus) yield 'currencyFormat', money.next() neg = '' |