-Copyright (C) 2013 by the Babel Team, see AUTHORS for more information.
+Copyright (c) 2013-2018 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 by the Babel Team.
+ :copyright: (c) 2013-2018 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
Core locale representation and locale data access.
- :copyright: (c) 2013 by the Babel Team.
+ :copyright: (c) 2013-2018 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
* ``LC_ALL``, and
* ``LANG``
- :copyright: (c) 2013 by the Babel Team.
+ :copyright: (c) 2013-2018 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 by the Babel Team.
+ :copyright: (c) 2013-2018 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 by the Babel Team.
+ :copyright: (c) 2013-2018 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
+# -*- coding: utf-8 -*-
from __future__ import with_statement
import os
import re
Support for ``gettext`` message catalogs.
- :copyright: (c) 2013 by the Babel Team.
+ :copyright: (c) 2013-2018 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
Data structures for message catalogs.
- :copyright: (c) 2013 by the Babel Team.
+ :copyright: (c) 2013-2018 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
:since: version 0.9
- :copyright: (c) 2013 by the Babel Team.
+ :copyright: (c) 2013-2018 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 by the Babel Team.
+ :copyright: (c) 2013-2018 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
Frontends for the message extraction functionality.
- :copyright: (c) 2013 by the Babel Team.
+ :copyright: (c) 2013-2018 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 by the Babel Team.
+ :copyright: (c) 2013-2018 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 by the Babel Team.
+ :copyright: (c) 2013-2018 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
Plural form definitions.
- :copyright: (c) 2013 by the Babel Team.
+ :copyright: (c) 2013-2018 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 by the Babel Team.
+ :copyright: (c) 2013-2018 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
* ``LC_ALL``, and
* ``LANG``
- :copyright: (c) 2013 by the Babel Team.
+ :copyright: (c) 2013-2018 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
# TODO:
CLDR Plural support. See UTS #35.
- :copyright: (c) 2013 by the Babel Team.
+ :copyright: (c) 2013-2018 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 by the Babel Team.
+ :copyright: (c) 2013-2018 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
Various utility classes and functions.
- :copyright: (c) 2013 by the Babel Team.
+ :copyright: (c) 2013-2018 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
# General information about the project.
project = u'Babel'
-copyright = u'2017, The Babel Team'
+copyright = u'2018, 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2008-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2008-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# See https://github.com/python-babel/babel/issues/485
v = date(2017, 1, 1)
assert dates.format_date(v, format='YYYY-ww',locale='ru_RU') == '2016-52' # This would have returned 2017-01 prior to CLDR 32
- assert dates.format_date(v, format='YYYY-ww',locale='de_DE') == '2016-52'
\ No newline at end of file
+ assert dates.format_date(v, format='YYYY-ww',locale='de_DE') == '2016-52'
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2008-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-2011 Edgewall Software
+# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which