]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Download CLDR 34.0
authorAlberto Mardegan <mardy@users.sourceforge.net>
Thu, 24 Jan 2019 19:32:25 +0000 (22:32 +0300)
committerAarni Koskela <akx@iki.fi>
Thu, 24 Jan 2019 21:32:05 +0000 (23:32 +0200)
babel/numbers.py
babel/units.py
scripts/download_import_cldr.py
tests/test_numbers.py

index 4306e936020924e8830b89a7a462044bb788a971..e5650dd52627793dcead2ab74b2cfd597578dbb8 100644 (file)
@@ -448,7 +448,7 @@ def format_currency(
     >>> format_currency(1099.98, 'JPY', locale='en_US')
     u'\\xa51,100'
     >>> format_currency(1099.98, 'COP', u'#,##0.00', locale='es_ES')
-    u'1.100'
+    u'1.099,98'
 
     However, the number of decimal digits can be overriden from the currency
     information, by setting the last parameter to ``False``:
index be851c230cc6f650ba94010a03164c520bded6c8..e58bf81c2f1d1a221bcc8efdc4ca3ee5f48f760f 100644 (file)
@@ -82,7 +82,7 @@ def format_unit(value, measurement_unit, length='long', format=None, locale=LC_N
 
     >>> from babel._compat import decimal
     >>> format_unit(decimal.Decimal("-42.774"), 'temperature-celsius', 'short', format='#.0', locale='fr')
-    u'-42,8 \\xb0C'
+    u'-42,8\\u202f\\xb0C'
 
     The locale's usual pluralization rules are respected.
 
index b6e6f430151057e2e9dd1afe0b028e9c28ca91b7..f0d9b10bcf1f0c6d4db98f1be9c397b05c0616a3 100755 (executable)
@@ -13,9 +13,9 @@ except ImportError:
     from urllib import urlretrieve
 
 
-URL = 'https://unicode.org/Public/cldr/33/core.zip'
-FILENAME = 'core-33.0.zip'
-FILESUM = 'fa3490082c086d21257153609642f54fcf788fcfda4966fe67f3f6daca0d58b9'
+URL = 'https://unicode.org/Public/cldr/34/core.zip'
+FILENAME = 'cldr-core-34.0.zip'
+FILESUM = '1d79f6ce294ff350a3ee59d7dd69451fd24776f7105fd6a55c255ffb813c03ba'
 BLKSIZE = 131072
 
 
index d0f24bd5487ccdebd98b010dab01937ab35101d5..29bdc2447b55225f90aaea85dd14636fefd26790 100644 (file)
@@ -209,7 +209,7 @@ def test_list_currencies():
 
     assert list_currencies(locale='pa_Arab') == {'PKR', 'INR', 'EUR'}
 
-    assert len(list_currencies()) == 300
+    assert len(list_currencies()) == 303
 
 
 def test_validate_currency():
@@ -412,7 +412,7 @@ def test_format_currency_format_type():
     assert (numbers.format_currency(1099.98, 'JPY', locale='en_US')
             == u'\xa51,100')
     assert (numbers.format_currency(1099.98, 'COP', u'#,##0.00', locale='es_ES')
-            == u'1.100')
+            == u'1.099,98')
     assert (numbers.format_currency(1099.98, 'JPY', locale='en_US',
                                     currency_digits=False)
             == u'\xa51,099.98')