diff options
| author | Xiaoyang Zhang <xiaoyang.zhang@easystack.cn> | 2016-05-19 13:56:34 +0800 |
|---|---|---|
| committer | Xiaoyang Zhang <xiaoyang.zhang@easystack.cn> | 2016-05-19 20:34:46 +0800 |
| commit | 6c8e0dc1dfc026644e1da894b52d102c32168d9c (patch) | |
| tree | cb21ae9d240e1ddd50e7b043ae10e079c46d92b1 /openstackclient/image/client.py | |
| parent | 795656184e2d864c30b8e42d13a12d5021680e8b (diff) | |
| download | python-openstackclient-6c8e0dc1dfc026644e1da894b52d102c32168d9c.tar.gz | |
Fix i18n support for help and log.warning in image
Change-Id: I6e2764aaf4b8c0efa78872646a7b3482ba044dc8
Diffstat (limited to 'openstackclient/image/client.py')
| -rw-r--r-- | openstackclient/image/client.py | 7 |
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 |
