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
..
2013-02-18 12:38:10 +00:00
2013-01-07 15:10:34 -06:00
2013-02-18 12:38:10 +00:00
2013-01-19 16:57:57 +11:00
2013-02-20 12:35:54 -05:00