summaryrefslogtreecommitdiff
path: root/openstackclient/image/client.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-05-19 20:19:36 +0000
committerGerrit Code Review <review@openstack.org>2016-05-19 20:19:36 +0000
commitbe081ebb44b9a040cc177e0021219a9eb42402f6 (patch)
treed9e09e997fa388f2c2751b57d62474b45ce1ebdf /openstackclient/image/client.py
parent35ea7a9baa498812e6f0d6e70a2f24ad6a360730 (diff)
parent6c8e0dc1dfc026644e1da894b52d102c32168d9c (diff)
downloadpython-openstackclient-be081ebb44b9a040cc177e0021219a9eb42402f6.tar.gz
Merge "Fix i18n support for help and log.warning in image"
Diffstat (limited to 'openstackclient/image/client.py')
-rw-r--r--openstackclient/image/client.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/openstackclient/image/client.py b/openstackclient/image/client.py
index 8dd146e9..9c45a63f 100644
--- a/openstackclient/image/client.py
+++ b/openstackclient/image/client.py
@@ -16,6 +16,7 @@
import logging
from openstackclient.common import utils
+from openstackclient.i18n import _
LOG = logging.getLogger(__name__)
@@ -82,7 +83,7 @@ def build_option_parser(parser):
'--os-image-api-version',
metavar='<image-api-version>',
default=utils.env('OS_IMAGE_API_VERSION'),
- help='Image API version, default=' +
- DEFAULT_API_VERSION +
- ' (Env: OS_IMAGE_API_VERSION)')
+ help=_('Image API version, default=%s (Env: OS_IMAGE_API_VERSION)') %
+ DEFAULT_API_VERSION,
+ )
return parser