Fix some translator mistakes

Change some "_" into "_LE" or "_LW" accordingly.

Closes-Bug: #1426617
Change-Id: I4c3413df7cf35b2bdc9f441a93198bc06e70c21f
This commit is contained in:
Ken Chen 2015-02-28 11:39:48 +08:00
parent 9c6510f2cc
commit 0f59c13278
3 changed files with 10 additions and 10 deletions

View File

@ -21,7 +21,7 @@ from oslo_config import cfg
from oslo_log import log as logging from oslo_log import log as logging
from sahara import context from sahara import context
from sahara.i18n import _ from sahara.i18n import _LW
from sahara.utils.openstack import base from sahara.utils.openstack import base
@ -50,14 +50,14 @@ CONF.register_opts(opts, group=cinder_group)
def validate_config(): def validate_config():
if CONF.cinder.api_version == 1: if CONF.cinder.api_version == 1:
LOG.warn(_('The Cinder v1 API is deprecated and will be removed after ' LOG.warn(_LW('The Cinder v1 API is deprecated and will be removed '
'the Juno release. You should set cinder.api_version=2 in ' 'after the Juno release. You should set '
'your sahara.conf file.')) 'cinder.api_version=2 in your sahara.conf file.'))
elif CONF.cinder.api_version != 2: elif CONF.cinder.api_version != 2:
LOG.warn(_('Unsupported Cinder API version: %(bad)s. Please set a ' LOG.warn(_LW('Unsupported Cinder API version: %(bad)s. Please set a '
'correct value for cinder.api_version in your sahara.conf ' 'correct value for cinder.api_version in your sahara.conf'
'file (currently supported versions are: %(supported)s). ' ' file (currently supported versions are: %(supported)s).'
'Falling back to Cinder API version 2.'), ' Falling back to Cinder API version 2.'),
{'bad': CONF.cinder.api_version, 'supported': [1, 2]}) {'bad': CONF.cinder.api_version, 'supported': [1, 2]})
CONF.set_override('api_version', 2, group='cinder') CONF.set_override('api_version', 2, group='cinder')

View File

@ -263,7 +263,7 @@ def proxy_user_create(username):
domain = domain_for_proxy() domain = domain_for_proxy()
password = six.text_type(uuid.uuid4()) password = six.text_type(uuid.uuid4())
admin.users.create(name=username, password=password, domain=domain.id) admin.users.create(name=username, password=password, domain=domain.id)
LOG.debug(_('created proxy user {0}').format(username)) LOG.debug('created proxy user {0}'.format(username))
return password return password

View File

@ -571,7 +571,7 @@ class InstanceInteropHelper(remote.Remote):
try: try:
command = command.format(**keywords) command = command.format(**keywords)
except KeyError as e: except KeyError as e:
LOG.error(_('Invalid keyword in proxy_command: %s'), str(e)) LOG.error(_LE('Invalid keyword in proxy_command: %s'), str(e))
# Do not give more details to the end-user # Do not give more details to the end-user
raise ex.SystemError('Misconfiguration') raise ex.SystemError('Misconfiguration')
if rootwrap_command: if rootwrap_command: