diff options
| author | Sheel Rana <ranasheel2000@gmail.com> | 2016-05-23 22:26:24 +0530 |
|---|---|---|
| committer | Sheel Rana <ranasheel2000@gmail.com> | 2016-05-23 18:04:36 +0000 |
| commit | 53e05e7c2d36ab2ff1ba05a8334286d41c5f40e4 (patch) | |
| tree | 658edbf0d29fc44f2939041ac7256802be92e184 /openstackclient/volume/client.py | |
| parent | 17bc850440045128871c381244540eeedaa569a7 (diff) | |
| download | python-openstackclient-53e05e7c2d36ab2ff1ba05a8334286d41c5f40e4.tar.gz | |
i18n support for help and error messages in cinder
Change-Id: I98fbc959034fe0530966291643b381855801de20
Diffstat (limited to 'openstackclient/volume/client.py')
| -rw-r--r-- | openstackclient/volume/client.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/openstackclient/volume/client.py b/openstackclient/volume/client.py index 0973868b..a60f4b0e 100644 --- a/openstackclient/volume/client.py +++ b/openstackclient/volume/client.py @@ -16,6 +16,7 @@ import logging from openstackclient.common import utils +from openstackclient.i18n import _ LOG = logging.getLogger(__name__) @@ -73,7 +74,7 @@ def build_option_parser(parser): '--os-volume-api-version', metavar='<volume-api-version>', default=utils.env('OS_VOLUME_API_VERSION'), - help='Volume API version, default=' + - DEFAULT_API_VERSION + - ' (Env: OS_VOLUME_API_VERSION)') + help=_('Volume API version, default=%s ' + '(Env: OS_VOLUME_API_VERSION)') % DEFAULT_API_VERSION + ) return parser |
