]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Re-enable lazy translation
authorJay S. Bryant <jsbryant@us.ibm.com>
Fri, 31 Jan 2014 22:46:29 +0000 (16:46 -0600)
committerGerrit Code Review <review@openstack.org>
Thu, 6 Mar 2014 16:08:25 +0000 (16:08 +0000)
commit6338d4656cb71aeeee2e1a9facb22278e208aa00
treea1046774ab97f86d1e8bd53026a13d6c27b66d27
parent9550b6b6b486559b7c89b94e7ffb20b794aaa795
Re-enable lazy translation

This patch re-enables lazy translation to enable REST API
responses to be translated to the requested locale (I.E. setting
'Accept-Language: zh-CN'.)

This patch also removes the unnecessary manual import of
'cinder.openstack.common.gettextutils _' in Cinder code.  Since _ is
still being imported in the cinder.openstack.common files from Oslo
we still need to set gettexttutils.enable_lazy().  enable_lazy will
be able to be removed once the manual imports of _ have been removed
from Oslo.

implements-bp: i18n-messages
Change-Id: I0b5a35a2cc28d97d12ceccccd58565b487fef428
22 files changed:
bin/cinder-all
bin/cinder-api
bin/cinder-backup
bin/cinder-clear-rabbit-queues
bin/cinder-manage
bin/cinder-rtstool
bin/cinder-scheduler
bin/cinder-volume
bin/cinder-volume-usage-audit
cinder/api/contrib/quotas.py
cinder/api/v1/limits.py
cinder/brick/exception.py
cinder/brick/initiator/connector.py
cinder/brick/initiator/linuxfc.py
cinder/brick/initiator/linuxscsi.py
cinder/brick/local_dev/lvm.py
cinder/brick/remotefs/remotefs.py
cinder/common/config.py
cinder/db/sqlalchemy/migrate_repo/manage.py
cinder/exception.py
cinder/keymgr/conf_key_mgr.py
cinder/policy.py