Babel Changelog
===============
+Version 2.9.1
+-------------
+
+Bugfixes
+~~~~~~~~
+
+* The internal locale-data loading functions now validate the name of the locale file to be loaded and only
+ allow files within Babel's data directory. Thank you to Chris Lyne of Tenable, Inc. for discovering the issue!
+
Version 2.9.0
-------------
-Copyright (c) 2013-2020 by the Babel Team, see AUTHORS for more information.
+Copyright (c) 2013-2021 by the Babel Team, see AUTHORS for more information.
All rights reserved.
access to various locale display names, localized number and date
formatting, etc.
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
negotiate_locale, parse_locale, get_locale_identifier
-__version__ = '2.9.0'
+__version__ = '2.9.1'
Core locale representation and locale data access.
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
* ``LC_ALL``, and
* ``LANG``
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
* ``LC_ALL``, and
* ``LANG``
- :copyright: (c) 2015-2020 by the Babel Team.
+ :copyright: (c) 2015-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
:note: The `Locale` class, which uses this module under the hood, provides a
more convenient interface for accessing the locale data.
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
Babel specific fork of tzlocal to determine the local timezone
of the system.
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
Support for ``gettext`` message catalogs.
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
Data structures for message catalogs.
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
:since: version 0.9
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
The main entry points into the extraction functionality are the functions
`extract_from_dir` and `extract_from_file`.
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
Frontends for the message extraction functionality.
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
from __future__ import print_function
A simple JavaScript 1.5 lexer which is used for the JavaScript
extractor.
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
from collections import namedtuple
Writing of files in the ``gettext`` MO (machine object) format.
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
Plural form definitions.
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
Reading and writing of files in the ``gettext`` PO (portable object)
format.
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
* ``LC_ALL``, and
* ``LANG``
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
# TODO:
CLDR Plural support. See UTS #35.
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
import re
.. note: the code in this module is not used by Babel itself
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
Various utility classes and functions.
- :copyright: (c) 2013-2020 by the Babel Team.
+ :copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
# General information about the project.
project = u'Babel'
-copyright = u'2020, The Babel Team'
+copyright = u'2021, 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
# The short X.Y version.
version = '2.9'
# The full version, including alpha/beta/rc tags.
-release = '2.9.0'
+release = '2.9.1'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software, 2013-2020 the Babel team
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which