From 6c8e0dc1dfc026644e1da894b52d102c32168d9c Mon Sep 17 00:00:00 2001 From: Xiaoyang Zhang Date: Thu, 19 May 2016 13:56:34 +0800 Subject: Fix i18n support for help and log.warning in image Change-Id: I6e2764aaf4b8c0efa78872646a7b3482ba044dc8 --- openstackclient/image/client.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'openstackclient/image/client.py') 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='', 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 -- cgit v1.2.1