annotate babel/__init__.py @ 550:3c306c1f842f

test refactoring: clear global babel logger handlers to decrease test interdependencies (follow-up on #227)
author fschwarz
date Sat, 19 Mar 2011 21:13:34 +0000
parents e93f68837913
children
rev   line source
3
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
1 # -*- coding: utf-8 -*-
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
2 #
532
e93f68837913 Update the copyright line.
jruigrok
parents: 390
diff changeset
3 # Copyright (C) 2007-2011 Edgewall Software
3
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
4 # All rights reserved.
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
5 #
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
6 # This software is licensed as described in the file COPYING, which
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
7 # you should have received as part of this distribution. The terms
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
8 # are also available at http://babel.edgewall.org/wiki/License.
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
9 #
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
10 # This software consists of voluntary contributions made by many
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
11 # individuals. For the exact contribution history, see the revision
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
12 # history and logs, available at http://babel.edgewall.org/log/.
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
13
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
14 """Integrated collection of utilities that assist in internationalizing and
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
15 localizing applications.
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
16
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
17 This package is basically composed of two major parts:
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
18
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
19 * tools to build and work with ``gettext`` message catalogs
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
20 * a Python interface to the CLDR (Common Locale Data Repository), providing
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
21 access to various locale display names, localized number and date
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
22 formatting, etc.
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
23
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
24 :see: http://www.gnu.org/software/gettext/
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
25 :see: http://docs.python.org/lib/module-gettext.html
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
26 :see: http://www.unicode.org/cldr/
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
27 """
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
28
6
04527ede83d0 Fixes for the extended translations class.
cmlenz
parents: 3
diff changeset
29 from babel.core import *
3
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
30
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
31 __docformat__ = 'restructuredtext en'
14
29ef15a6fd75 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 6
diff changeset
32 try:
390
d21f92883d82 More graceful `__version__` initialization when Babel is not installed in a way Setuptools knows about it.
cmlenz
parents: 14
diff changeset
33 from pkg_resources import get_distribution, ResolutionError
d21f92883d82 More graceful `__version__` initialization when Babel is not installed in a way Setuptools knows about it.
cmlenz
parents: 14
diff changeset
34 try:
d21f92883d82 More graceful `__version__` initialization when Babel is not installed in a way Setuptools knows about it.
cmlenz
parents: 14
diff changeset
35 __version__ = get_distribution('Babel').version
d21f92883d82 More graceful `__version__` initialization when Babel is not installed in a way Setuptools knows about it.
cmlenz
parents: 14
diff changeset
36 except ResolutionError:
d21f92883d82 More graceful `__version__` initialization when Babel is not installed in a way Setuptools knows about it.
cmlenz
parents: 14
diff changeset
37 __version__ = None # unknown
14
29ef15a6fd75 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 6
diff changeset
38 except ImportError:
390
d21f92883d82 More graceful `__version__` initialization when Babel is not installed in a way Setuptools knows about it.
cmlenz
parents: 14
diff changeset
39 __version__ = None # unknown
Copyright (C) 2012-2017 Edgewall Software