diff 0.9.x/scripts/import_cldr.py @ 512:f29b2dadd9fc stable

merge r478 from trunk: Fix the import script to skip alt or draft items in the numbers/symbols subtree of a locale (ticket #217)
author fschwarz
date Fri, 04 Mar 2011 16:19:46 +0000
parents 4f39b6e38540
children
line wrap: on
line diff
--- a/0.9.x/scripts/import_cldr.py
+++ b/0.9.x/scripts/import_cldr.py
@@ -404,6 +404,8 @@
 
         number_symbols = data.setdefault('number_symbols', {})
         for elem in tree.findall('.//numbers/symbols/*'):
+            if ('draft' in elem.attrib or 'alt' in elem.attrib):
+                continue
             number_symbols[elem.tag] = unicode(elem.text)
 
         decimal_formats = data.setdefault('decimal_formats', {})
Copyright (C) 2012-2017 Edgewall Software