diff --git a/AUTHORS b/AUTHORS index cfea92e37..67335b7a3 100644 --- a/AUTHORS +++ b/AUTHORS @@ -49,6 +49,8 @@ Babel is written and maintained by the Babel team and various contributors: - Arturas Moskvinas - Leonardo Pistone - Hyunjun Kim +- Ronan Amicel +- Christian Clauss - Best Olunusi - Teo - Ivan Koldakov diff --git a/CHANGES.rst b/CHANGES.rst index 31b1bd543..d3a7b00b3 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,28 @@ Babel Changelog =============== +Version 2.15.0 +-------------- + +Python version support +~~~~~~~~~~~~~~~~~~~~~~ + +* Babel 2.15.0 will require Python 3.8 or newer. (:gh:`1048`) + +Features +~~~~~~~~ + +* CLDR: Upgrade to CLDR 44 (:gh:`1071`) (@akx) +* Dates: Support for the "fall back to short format" logic for time delta formatting (:gh:`1075`) (@akx) +* Message: More versatile .po IO functions (:gh:`1068`) (@akx) +* Numbers: Improved support for alternate spaces when parsing numbers (:gh:`1007`) (@ronnix's first contribution) + +Infrastructure +~~~~~~~~~~~~~~ + +* Upgrade GitHub Actions (:gh:`1054`) (@cclauss's first contribution) +* The Unicode license is now included in `locale-data` and in the documentation (:gh:`1074`) (@akx) + Version 2.14.0 -------------- diff --git a/LICENSE b/LICENSE index 41a1e593b..83b6e513d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2013-2023 by the Babel Team, see AUTHORS for more information. +Copyright (c) 2013-2024 by the Babel Team, see AUTHORS for more information. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions diff --git a/babel/__init__.py b/babel/__init__.py index ff986e9ce..6a9789c52 100644 --- a/babel/__init__.py +++ b/babel/__init__.py @@ -12,7 +12,7 @@ access to various locale display names, localized number and date formatting, etc. - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ @@ -25,7 +25,7 @@ parse_locale, ) -__version__ = '2.14.0' +__version__ = '2.15.0' __all__ = [ 'Locale', diff --git a/babel/core.py b/babel/core.py index 207c13b92..56a4ee503 100644 --- a/babel/core.py +++ b/babel/core.py @@ -4,7 +4,7 @@ Core locale representation and locale data access. - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/dates.py b/babel/dates.py index c2e4f0cc7..df129604a 100644 --- a/babel/dates.py +++ b/babel/dates.py @@ -11,7 +11,7 @@ * ``LC_ALL``, and * ``LANG`` - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/lists.py b/babel/lists.py index a8471fd1e..376bc963e 100644 --- a/babel/lists.py +++ b/babel/lists.py @@ -10,7 +10,7 @@ * ``LC_ALL``, and * ``LANG`` - :copyright: (c) 2015-2023 by the Babel Team. + :copyright: (c) 2015-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ from __future__ import annotations diff --git a/babel/localedata.py b/babel/localedata.py index f1e8a1291..a9f7d4bf9 100644 --- a/babel/localedata.py +++ b/babel/localedata.py @@ -7,7 +7,7 @@ :note: The `Locale` class, which uses this module under the hood, provides a more convenient interface for accessing the locale data. - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/localtime/__init__.py b/babel/localtime/__init__.py index e1ece7342..1066c9511 100644 --- a/babel/localtime/__init__.py +++ b/babel/localtime/__init__.py @@ -5,7 +5,7 @@ Babel specific fork of tzlocal to determine the local timezone of the system. - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/localtime/_fallback.py b/babel/localtime/_fallback.py index 14979a53b..7c99f488c 100644 --- a/babel/localtime/_fallback.py +++ b/babel/localtime/_fallback.py @@ -4,7 +4,7 @@ Emulated fallback local timezone when all else fails. - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/messages/__init__.py b/babel/messages/__init__.py index 883a2e055..5a81b910f 100644 --- a/babel/messages/__init__.py +++ b/babel/messages/__init__.py @@ -4,7 +4,7 @@ Support for ``gettext`` message catalogs. - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/messages/catalog.py b/babel/messages/catalog.py index 41adfaeee..9f215cf18 100644 --- a/babel/messages/catalog.py +++ b/babel/messages/catalog.py @@ -4,7 +4,7 @@ Data structures for message catalogs. - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ from __future__ import annotations diff --git a/babel/messages/checkers.py b/babel/messages/checkers.py index e5448e06b..df1159ded 100644 --- a/babel/messages/checkers.py +++ b/babel/messages/checkers.py @@ -6,7 +6,7 @@ :since: version 0.9 - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ from __future__ import annotations diff --git a/babel/messages/extract.py b/babel/messages/extract.py index 8e3779871..862e63743 100644 --- a/babel/messages/extract.py +++ b/babel/messages/extract.py @@ -12,7 +12,7 @@ The main entry points into the extraction functionality are the functions `extract_from_dir` and `extract_from_file`. - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ from __future__ import annotations diff --git a/babel/messages/frontend.py b/babel/messages/frontend.py index 34f9e8902..aeda9763b 100644 --- a/babel/messages/frontend.py +++ b/babel/messages/frontend.py @@ -4,7 +4,7 @@ Frontends for the message extraction functionality. - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/messages/jslexer.py b/babel/messages/jslexer.py index 6456bd038..31f0582e3 100644 --- a/babel/messages/jslexer.py +++ b/babel/messages/jslexer.py @@ -5,7 +5,7 @@ A simple JavaScript 1.5 lexer which is used for the JavaScript extractor. - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ from __future__ import annotations diff --git a/babel/messages/mofile.py b/babel/messages/mofile.py index ca02e6837..0291b07cc 100644 --- a/babel/messages/mofile.py +++ b/babel/messages/mofile.py @@ -4,7 +4,7 @@ Writing of files in the ``gettext`` MO (machine object) format. - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ from __future__ import annotations diff --git a/babel/messages/plurals.py b/babel/messages/plurals.py index fa3f03ed8..01c38f4cd 100644 --- a/babel/messages/plurals.py +++ b/babel/messages/plurals.py @@ -4,7 +4,7 @@ Plural form definitions. - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ from __future__ import annotations diff --git a/babel/messages/pofile.py b/babel/messages/pofile.py index 6e9dbdf03..89a924255 100644 --- a/babel/messages/pofile.py +++ b/babel/messages/pofile.py @@ -5,7 +5,7 @@ Reading and writing of files in the ``gettext`` PO (portable object) format. - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ from __future__ import annotations diff --git a/babel/numbers.py b/babel/numbers.py index 6df1db8cb..624e8d61e 100644 --- a/babel/numbers.py +++ b/babel/numbers.py @@ -11,7 +11,7 @@ * ``LC_ALL``, and * ``LANG`` - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ # TODO: diff --git a/babel/plural.py b/babel/plural.py index 01df16c6d..3be412f69 100644 --- a/babel/plural.py +++ b/babel/plural.py @@ -4,7 +4,7 @@ CLDR Plural support. See UTS #35. - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ from __future__ import annotations diff --git a/babel/support.py b/babel/support.py index 1774d9d85..e6ee37805 100644 --- a/babel/support.py +++ b/babel/support.py @@ -7,7 +7,7 @@ .. note: the code in this module is not used by Babel itself - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ from __future__ import annotations diff --git a/babel/util.py b/babel/util.py index 093197f9f..605695b1f 100644 --- a/babel/util.py +++ b/babel/util.py @@ -4,7 +4,7 @@ Various utility classes and functions. - :copyright: (c) 2013-2023 by the Babel Team. + :copyright: (c) 2013-2024 by the Babel Team. :license: BSD, see LICENSE for more details. """ from __future__ import annotations diff --git a/docs/conf.py b/docs/conf.py index 3be498181..128eacd7d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -44,16 +44,16 @@ # General information about the project. project = 'Babel' -copyright = '2023, The Babel Team' +copyright = '2024, The Babel Team' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = '2.14' +version = '2.15' # The full version, including alpha/beta/rc tags. -release = '2.14.0' +release = '2.15.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/scripts/dump_data.py b/scripts/dump_data.py index b17beb7be..639c14d43 100755 --- a/scripts/dump_data.py +++ b/scripts/dump_data.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/scripts/dump_global.py b/scripts/dump_global.py index 1018a5392..8b8294014 100755 --- a/scripts/dump_global.py +++ b/scripts/dump_global.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/scripts/import_cldr.py b/scripts/import_cldr.py index 1ff39a8d9..633ca9a01 100755 --- a/scripts/import_cldr.py +++ b/scripts/import_cldr.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/messages/test_catalog.py b/tests/messages/test_catalog.py index 4e133304f..2df85debb 100644 --- a/tests/messages/test_catalog.py +++ b/tests/messages/test_catalog.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/messages/test_checkers.py b/tests/messages/test_checkers.py index ac1e1bc46..b2dc9dc4e 100644 --- a/tests/messages/test_checkers.py +++ b/tests/messages/test_checkers.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/messages/test_extract.py b/tests/messages/test_extract.py index 086702ed7..7d3a05aa7 100644 --- a/tests/messages/test_extract.py +++ b/tests/messages/test_extract.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/messages/test_frontend.py b/tests/messages/test_frontend.py index 225d6b358..448dd7357 100644 --- a/tests/messages/test_frontend.py +++ b/tests/messages/test_frontend.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/messages/test_mofile.py b/tests/messages/test_mofile.py index 986a74d6c..7a699041d 100644 --- a/tests/messages/test_mofile.py +++ b/tests/messages/test_mofile.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/messages/test_plurals.py b/tests/messages/test_plurals.py index 41438f58d..e9f8e80fd 100644 --- a/tests/messages/test_plurals.py +++ b/tests/messages/test_plurals.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/messages/test_pofile.py b/tests/messages/test_pofile.py index d322857d5..99958b7b7 100644 --- a/tests/messages/test_pofile.py +++ b/tests/messages/test_pofile.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/test_core.py b/tests/test_core.py index 2e7846214..1bec2155d 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/test_dates.py b/tests/test_dates.py index f25dd6146..fb9013143 100644 --- a/tests/test_dates.py +++ b/tests/test_dates.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/test_localedata.py b/tests/test_localedata.py index d4eb4e597..8a4fbef1c 100644 --- a/tests/test_localedata.py +++ b/tests/test_localedata.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/test_numbers.py b/tests/test_numbers.py index eeb71a2fc..ed0531c27 100644 --- a/tests/test_numbers.py +++ b/tests/test_numbers.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/test_plural.py b/tests/test_plural.py index 2fa56cf4e..b10ccf5ad 100644 --- a/tests/test_plural.py +++ b/tests/test_plural.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/test_support.py b/tests/test_support.py index ccd8fe60b..126272051 100644 --- a/tests/test_support.py +++ b/tests/test_support.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/test_util.py b/tests/test_util.py index 8ea68b2bb..c661894c8 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2023 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which