diff options
author | Christopher Lenz <cmlenz@gmail.com> | 2007-06-18 16:19:50 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@gmail.com> | 2007-06-18 16:19:50 +0000 |
commit | e9775542800459751c70716b08a1e8efb13a38a5 (patch) | |
tree | e6522efbe69cd0ece971f2da234c56b81d1a7e76 /scripts | |
parent | b48a3385537dd14eade22daa8f2d2220f947a8cd (diff) | |
download | babel-e9775542800459751c70716b08a1e8efb13a38a5.tar.gz |
Add currency formatting.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/import_cldr.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/import_cldr.py b/scripts/import_cldr.py index d5c5d22..8f3bed4 100755 --- a/scripts/import_cldr.py +++ b/scripts/import_cldr.py @@ -277,15 +277,15 @@ def main(): for elem in tree.findall('//scientificFormats/scientificFormatLength'): if 'draft' in elem.attrib and elem.attrib.get('type') in scientific_formats: continue - # FIXME: should use numbers.parse_pattern - scientific_formats[elem.attrib.get('type')] = unicode(elem.findtext('scientificFormat/pattern')) + pattern = unicode(elem.findtext('scientificFormat/pattern')) + scientific_formats[elem.attrib.get('type')] = numbers.parse_pattern(pattern) currency_formats = data.setdefault('currency_formats', {}) for elem in tree.findall('//currencyFormats/currencyFormatLength'): if 'draft' in elem.attrib and elem.attrib.get('type') in currency_formats: continue - # FIXME: should use numbers.parse_pattern - currency_formats[elem.attrib.get('type')] = unicode(elem.findtext('currencyFormat/pattern')) + pattern = unicode(elem.findtext('currencyFormat/pattern')) + currency_formats[elem.attrib.get('type')] = numbers.parse_pattern(pattern) percent_formats = data.setdefault('percent_formats', {}) for elem in tree.findall('//percentFormats/percentFormatLength'): |