summaryrefslogtreecommitdiff
path: root/scripts/download_import_cldr.py
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2017-08-18 13:14:46 +0300
committerAarni Koskela <akx@iki.fi>2018-01-17 09:18:50 +0200
commita43d46486746b270f44e5412fc227d5f803bdf9e (patch)
tree8c99e304afcc52fb0ca8f29bfd5e7033a4ab9bf6 /scripts/download_import_cldr.py
parent77849ec967f9ff6f8470753abc2976c94b22aa2e (diff)
downloadbabel-a43d46486746b270f44e5412fc227d5f803bdf9e.tar.gz
cldr: use CLDR 31.0.1 (and fix test changes); see below!cldr-30
CLDR 31.0 separated the GMT and UTC time zones, so formatting of that time zone has changed. Most notably, "UTC" replaces "+0000" when formatting the timezone. This could break code that expects +0000. A subset (the parts supported by Babel) of the migration guide from http://cldr.unicode.org/index/downloads/cldr-31: * The locales in the language-territory population tables have been changed to be the canonical format, dropping the script where it is the default. So "ku_Latn" changes to "ku". * Plural rules: The Portuguese plural rules have changed so that all (and only) integers and decimal fractions < 2 are singular. * Timezones: The GMT timezone has been split from the UTC timezone. * Timezones: New timezone bcp47 codes have been added. * Languages "hr" and "sr" are no longer a short distance apart, for political reasons. * The primary names for CZ changed from "Czech Republic" to "Czechia", with the longer name now the alternate.
Diffstat (limited to 'scripts/download_import_cldr.py')
-rwxr-xr-xscripts/download_import_cldr.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/download_import_cldr.py b/scripts/download_import_cldr.py
index 9914a11..61b2773 100755
--- a/scripts/download_import_cldr.py
+++ b/scripts/download_import_cldr.py
@@ -13,9 +13,9 @@ except ImportError:
from urllib import urlretrieve
-URL = 'http://unicode.org/Public/cldr/30.0.2/core.zip'
-FILENAME = 'core-30.0.2.zip'
-FILESUM = '7d21d5f34a2b94f78f737d9279bcaae85ccc5332'
+URL = 'http://www.unicode.org/Public/cldr/31.0.1/core.zip'
+FILENAME = 'core-31.0.1.zip'
+FILESUM = '01ade6c2d1f358e63c2ab6e2861d4caa7114ff45'
BLKSIZE = 131072
@@ -82,7 +82,7 @@ def main():
os.remove(zip_path)
urlretrieve(URL, zip_path, reporthook)
changed = True
- print
+ print()
common_path = os.path.join(cldr_path, 'common')
if changed or not os.path.isdir(common_path):