]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
changes in CLDR data
authorAlex Morega <alex@grep.ro>
Thu, 4 Jul 2013 17:26:38 +0000 (19:26 +0200)
committerAlex Morega <alex@grep.ro>
Thu, 4 Jul 2013 18:19:45 +0000 (20:19 +0200)
babel/core.py
babel/dates.py
babel/support.py
babel/tests/dates.py

index 0d1a751d65ae8d4247de29f14b992d7de12ad60d..4d5a636729d5c2fde92687bced33732e101f3ca2 100644 (file)
@@ -252,7 +252,7 @@ class Locale(object):
         variant, if those are specified.
         
         >>> Locale('zh', 'CN', script='Hans').get_display_name('en')
-        u'Chinese (Simplified Han, China)'
+        u'Chinese (Simplified, China)'
         
         :param locale: the locale to use
         :return: the display name
@@ -481,7 +481,7 @@ class Locale(object):
         >>> Locale('en', 'US').time_zones['Europe/London']['long']['daylight']
         u'British Summer Time'
         >>> Locale('en', 'US').time_zones['America/St_Johns']['city']
-        u"St. John's"
+        u'St. John\u2019s'
         
         :type: `dict`"""
         return self._data['time_zones']
index 856ea95fe1018017f1b0b726a7afc5e6d2d41c7e..9b1214fa2ba4a9c281e3012dc37ca9ecbf778be1 100644 (file)
@@ -226,17 +226,17 @@ def get_timezone_location(dt_or_tzinfo=None, locale=LC_TIME):
     >>> from pytz import timezone
     >>> tz = timezone('America/St_Johns')
     >>> get_timezone_location(tz, locale='de_DE')
-    u"Kanada (St. John's)"
+    u"Kanada (St. John's) Zeit"
     >>> tz = timezone('America/Mexico_City')
     >>> get_timezone_location(tz, locale='de_DE')
-    u'Mexiko (Mexiko-Stadt)'
+    u'Mexiko (Mexiko-Stadt) Zeit'
     
     If the timezone is associated with a country that uses only a single
     timezone, just the localized country name is returned:
     
     >>> tz = timezone('Europe/Berlin')
     >>> get_timezone_name(tz, locale='de_DE')
-    u'Deutschland'
+    u'Mitteleurop\\xe4ische Zeit'
     
     :param dt_or_tzinfo: the ``datetime`` or ``tzinfo`` object that determines
                          the timezone; if `None`, the current date and time in
@@ -453,7 +453,7 @@ def format_datetime(datetime=None, format='medium', tzinfo=None,
     
     >>> dt = datetime(2007, 04, 01, 15, 30)
     >>> format_datetime(dt, locale='en_US')
-    u'Apr 1, 2007 3:30:00 PM'
+    u'Apr 1, 2007, 3:30:00 PM'
     
     For any pattern requiring the display of the time-zone, the third-party
     ``pytz`` package is needed to explicitly specify the time-zone:
@@ -461,7 +461,7 @@ def format_datetime(datetime=None, format='medium', tzinfo=None,
     >>> from pytz import timezone
     >>> format_datetime(dt, 'full', tzinfo=timezone('Europe/Paris'),
     ...                 locale='fr_FR')
-    u'dimanche 1 avril 2007 17:30:00 Heure avanc\xe9e de l\u2019Europe centrale'
+    u'dimanche 1 avril 2007 17:30:00 heure avanc\xe9e d\u2019Europe centrale'
     >>> format_datetime(dt, "yyyy.MM.dd G 'at' HH:mm:ss zzz",
     ...                 tzinfo=timezone('US/Eastern'), locale='en')
     u'2007.04.01 AD at 11:30:00 EDT'
index eeac110d116c0ea85d99ff886c1e86717917c99b..f6e66439a1daf2be8622c3a8df81a2177c3c8635 100644 (file)
@@ -69,7 +69,7 @@ class Format(object):
         >>> from pytz import timezone
         >>> fmt = Format('en_US', tzinfo=timezone('US/Eastern'))
         >>> fmt.datetime(datetime(2007, 4, 1, 15, 30))
-        u'Apr 1, 2007 11:30:00 AM'
+        u'Apr 1, 2007, 11:30:00 AM'
         
         :see: `babel.dates.format_datetime`
         """
index 457a17f025437878243a6c3ac096200c43c2957a..eff7a956c396d4c921cfe272bfca49bafce7050a 100644 (file)
@@ -209,7 +209,7 @@ class DateTimeFormatTestCase(unittest.TestCase):
         tz = timezone('Europe/Paris')
         t = time(15, 30, tzinfo=tz)
         fmt = dates.DateTimeFormat(t, locale='fr_FR')
-        self.assertEqual(u'Heure de l\u2019Europe centrale', fmt['vvvv'])
+        self.assertEqual(u'heure de l\u2019Europe centrale', fmt['vvvv'])
 
     def test_hour_formatting(self):
         l = 'en_US'