]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Use CLDR47 (#1210) master
authorTomas R. <tomas.roun8@gmail.com>
Tue, 8 Jul 2025 10:16:34 +0000 (12:16 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Jul 2025 10:16:34 +0000 (10:16 +0000)
babel/dates.py
scripts/download_import_cldr.py
tests/test_day_periods.py

index 6988e5433cf862b37798682386874558ed97f8e9..f4d264347ea222cab6e7a06ae9359a34da21eb81 100644 (file)
@@ -1162,7 +1162,7 @@ def get_period_id(
     'midnight'
 
     >>> get_period_id(time(0), type="selection", locale="en_US")
-    'night1'
+    'morning1'
 
     :param time: The time to inspect.
     :param tzinfo: The timezone for the time. See ``format_time``.
index 9fb0ab58035cd75d41eeb4917656b35e5b5c98e9..85308aec8f4eb052fe1c7efa50f6a1bf817510e2 100755 (executable)
@@ -9,10 +9,10 @@ import sys
 import zipfile
 from urllib.request import urlretrieve
 
-URL = 'https://unicode.org/Public/cldr/46/cldr-common-46.0.zip'
-FILENAME = 'cldr-common-46.0.zip'
+URL = 'https://unicode.org/Public/cldr/47/cldr-common-47.zip'
+FILENAME = 'cldr-common-47.0.zip'
 # Via https://unicode.org/Public/cldr/45/hashes/SHASUM512.txt
-FILESUM = '316d644b79a4976d4da57d59ca57c689b339908fe61bb49110bfe1a9269c94144cb27322a0ea080398e6dc4c54a16752fd1ca837e14c054b3a6806b1ef9d3ec3'
+FILESUM = '3b1eb2a046dae23cf16f611f452833e2a95affb1aa2ae3fa599753d229d152577114c2ff44ca98a7f369fa41dc6f45b0d7a6647653ca79694aacfd3f3be59801'
 BLKSIZE = 131072
 
 
index 9b51e1dd993f5498b85c0d1cf16164b9c4327878..b3494cd0ce43a92668f6487b74e082f090a6e180 100644 (file)
@@ -11,7 +11,7 @@ import babel.dates as dates
     ("fi", time(0), "midnight"),  # (at)
     ("en_US", time(12), "noon"),  # (at)
     ("en_US", time(21), "night1"),  # (from, before) across 0:00
-    ("en_US", time(5), "night1"),  # (from, before) across 0:00
+    ("en_US", time(5), "morning1"),  # (from, before) across 0:00
     ("en_US", time(6), "morning1"),  # (from, before)
     ("agq", time(10), "am"),  # no periods defined
     ("agq", time(22), "pm"),  # no periods defined