OpenStack Telemetry (Ceilometer)
Go to file
Lianhao Lu 6bd416dfaa Remove gettext.install from ceilometer/__init__.py
The gettext.install() installs a builtin _() function for translation
purpose. If it is called multiple times, the last call will win and the
translation domain set by the last call will be used.

When the ceilometer.compute.nova_notifier driver used within nova, the
gettext.install() call in ceilometer/__init__.py would change the
previous translation domain set by nova. This is not what we want.

We have to remove this shortcut, and put the gettext.install() call
early on in a top level script.

Instead of directly calling gettext.install(), we leverage the
gettextutils.install() in openstack.common, so we can specifiy the
localedir for ceilometer through the environment variable
CEILOMETER_LOCALEDIR.

This is part of the blueprint gettext-i18n-issue.

Change-Id: Icb2dcfb319778042cf569dcb607f579d1e0fda3a
2013-04-03 22:59:44 +08:00
bin Remove gettext.install from ceilometer/__init__.py 2013-04-03 22:59:44 +08:00
ceilometer Remove gettext.install from ceilometer/__init__.py 2013-04-03 22:59:44 +08:00
doc add v2 query examples 2013-04-01 10:42:58 -04:00
etc Add sample configuration files for mod_wsgi 2013-03-08 16:10:37 -05:00
nova_tests Adpated to nova's gettext changes. 2013-04-02 13:43:50 +08:00
tests storage: remove get_volume_sum and get_volume_max 2013-03-30 21:44:14 +01:00
tools Remove gettext.install from ceilometer/__init__.py 2013-04-03 22:59:44 +08:00
.gitignore Update manual installation instructions 2013-03-07 13:53:04 -05:00
.gitreview Update .gitreview for openstack. 2012-11-11 19:13:08 +00:00
babel.cfg Ground work for transifex-ify ceilometer. 2012-12-18 10:14:03 +08:00
LICENSE include a copy of the ASL 2.0 2013-03-15 14:25:48 +00:00
MANIFEST.in Add the etc directory to the sdist manifest 2013-03-05 16:20:09 -05:00
openstack-common.conf Use oslo-config-2013.1b3 2013-02-18 12:38:10 +00:00
README.md Update readme and create release notes 2012-10-05 20:26:51 +02:00
ReleaseNotes Update documentation URL 2012-12-05 10:22:43 +01:00
setup.cfg Set where=tests 2013-03-01 15:49:32 +01:00
setup.py Adpated to nova's gettext changes. 2013-04-02 13:43:50 +08:00
tox.ini Split and fix live db tests 2013-03-29 09:46:22 +01:00

ceilometer

See the ReleaseNotes document and the project home for more info.

http://launchpad.net/ceilometer