sys.path.insert(0, possible_topdir)
from cinder.openstack.common import gettextutils
-gettextutils.install('cinder')
+gettextutils.enable_lazy()
# Need to register global_opts
from cinder.common import config # noqa
sys.path.insert(0, possible_topdir)
from cinder.openstack.common import gettextutils
-gettextutils.install('cinder')
+gettextutils.enable_lazy()
# Need to register global_opts
from cinder.common import config # noqa
sys.path.insert(0, possible_topdir)
from cinder.openstack.common import gettextutils
-gettextutils.install('cinder')
+gettextutils.enable_lazy()
# Need to register global_opts
from cinder.common import config # noqa
sys.path.insert(0, POSSIBLE_TOPDIR)
from cinder.openstack.common import gettextutils
-gettextutils.install('cinder')
+gettextutils.enable_lazy()
# Need to register global_opts
from cinder.common import config # noqa
sys.path.insert(0, POSSIBLE_TOPDIR)
from cinder.openstack.common import gettextutils
-gettextutils.install('cinder')
+gettextutils.enable_lazy()
# Need to register global_opts
from cinder.common import config # noqa
import rtslib
gettext.install('cinder-rtstool', unicode=1)
+gettext.enable_lazy()
class RtstoolError(Exception):
sys.path.insert(0, possible_topdir)
from cinder.openstack.common import gettextutils
-gettextutils.install('cinder')
+gettextutils.enable_lazy()
# Need to register global_opts
from cinder.common import config # noqa
sys.path.insert(0, possible_topdir)
from cinder.openstack.common import gettextutils
-gettextutils.install('cinder')
+gettextutils.enable_lazy()
# Need to register global_opts
from cinder.common import config # noqa
sys.path.insert(0, POSSIBLE_TOPDIR)
from cinder.openstack.common import gettextutils
-gettextutils.install('cinder')
+gettextutils.enable_lazy()
from cinder import context
from cinder import db
from oslo.config import cfg
from cinder.openstack.common import gettextutils
-gettextutils.install('cinder')
+gettextutils.enable_lazy()
from cinder.db.sqlalchemy import migrate_repo
from cinder import version
import datetime
+from cinder.openstack.common.gettextutils import _
from cinder.openstack.common import log as logging
from oslo.config import cfg
from sqlalchemy import MetaData, Table