]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Enable lazy translation for Cinder
authorJay S. Bryant <jsbryant@us.ibm.com>
Tue, 8 Jul 2014 19:04:56 +0000 (14:04 -0500)
committerJay Bryant <jsbryant@us.ibm.com>
Thu, 17 Jul 2014 13:40:10 +0000 (13:40 +0000)
commitce86dbaa96e555c696c1306833e3d0717dfaf2d2
tree4efb17b53e7088d7d8a56865c97f295e651709de
parenteafcc41e82ced6d72d1cfe0105e44c383f28a23a
Enable lazy translation for Cinder

This patch is the final step for getting lazy translation
re-enabled for Cinder.  It removes the use of gettextutils.install()
which is no longer needed with the addition of the explicit import
of _() in all of Cinder's files.  The configuration of 'cinder' catalog
is handled by gettextutils.

The install() function is replaced by gettextutils.enable_lazy() which
properly enables lazy translation when _() or _LX() is used.

Change-Id: I79e705f3852e8aa34034015199d56a8b23aeb8ef
Implements-Blueprint: i18n-enablement
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/db/sqlalchemy/migrate_repo/manage.py
cinder/db/sqlalchemy/migrate_repo/versions/021_add_default_quota_class.py