from oslo.config import cfg
import paste.urlmap
-from cinder.openstack.common.gettextutils import _
+from cinder.i18n import _
from cinder.openstack.common import log as logging
"\(\s*_\(\s*('|\")")
string_translation = re.compile(r"(.)*_\(\s*('|\")")
vi_header_re = re.compile(r"^#\s+vim?:.+")
-underscore_import_check = re.compile(r"(.)*import _(.)*")
+underscore_import_check = re.compile(r"(.)*i18n\s+import\s+_(.)*")
# We need this for cases where they have created their own _ function.
custom_underscore_check = re.compile(r"(.)*_\s*=\s*(.)*")
no_audit_log = re.compile(r"(.)*LOG\.audit(.)*")
from oslo.config import cfg
from cinder import exception
+from cinder.i18n import _
from cinder.keymgr import key as keymgr_key
from cinder.keymgr import key_mgr
from cinder.openstack.common import excutils
-from cinder.openstack.common.gettextutils import _ # noqa
from cinder.openstack.common import log as logging
CONF = cfg.CONF
import six
from cinder import exception
-from cinder.openstack.common.gettextutils import _
+from cinder.i18n import _
from cinder.openstack.common import log as logging
from cinder.volume import driver
from cinder.volume.drivers.prophetstor import dplcommon
import errno
from cinder import exception
-from cinder.openstack.common.gettextutils import _
+from cinder.i18n import _
from cinder.openstack.common import log as logging
import cinder.volume.driver
from cinder.volume.drivers.prophetstor import dplcommon
import six
from cinder import exception
-from cinder.openstack.common.gettextutils import _
+from cinder.i18n import _
from cinder.openstack.common import log as logging
from cinder.openstack.common import loopingcall
from cinder.openstack.common import units
from oslo.config import cfg
from cinder import exception
+from cinder.i18n import _
from cinder.image import image_utils
-from cinder.openstack.common.gettextutils import _
from cinder.openstack.common import log as logging
from cinder.openstack.common import processutils as putils
from cinder.openstack.common import units
from cinder.brick.remotefs import remotefs
from cinder import exception
+from cinder.i18n import _
from cinder.image import image_utils
-from cinder.openstack.common.gettextutils import _
from cinder.openstack.common import log as logging
from cinder.openstack.common import processutils as putils
from cinder.openstack.common import units
Classes and utility methods for datastore selection.
"""
+from cinder.i18n import _
from cinder.openstack.common import excutils
-from cinder.openstack.common.gettextutils import _
from cinder.openstack.common import log as logging
from cinder.volume.drivers.vmware import error_util
from cinder.volume.drivers.vmware import vim_util
from cinder.brick.remotefs import remotefs
from cinder import exception
-from cinder.openstack.common.gettextutils import _
+from cinder.i18n import _
from cinder.openstack.common import log as logging
LOG = logging.getLogger(__name__)
from oslo.config import cfg
from cinder import exception
+from cinder.i18n import _
from cinder.image import image_utils
from cinder.openstack.common import fileutils
-from cinder.openstack.common.gettextutils import _
from cinder.openstack.common import log as logging
from cinder.openstack.common import units
from cinder import utils