summaryrefslogtreecommitdiff
path: root/openstackclient/identity/client.py
diff options
context:
space:
mode:
authorTang Chen <chen.tang@easystack.cn>2016-06-13 16:44:21 +0800
committerTang Chen <chen.tang@easystack.cn>2016-06-14 09:50:23 +0800
commit304f565439c5950587f7ad31a2f799076e702036 (patch)
treeb0228ad1f68d27d1b1ebb5fcc8bda2575a2af8d3 /openstackclient/identity/client.py
parente5e29a8fef7ba2396015918545a49e717fe75d15 (diff)
downloadpython-openstackclient-304f565439c5950587f7ad31a2f799076e702036.tar.gz
Fix i18n problems for common files in identity
Some missing parts in identity. Change-Id: I8777b845613d7d7df36ac3c198da552e11aaad1b Partial-bug: #1574965
Diffstat (limited to 'openstackclient/identity/client.py')
-rw-r--r--openstackclient/identity/client.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/openstackclient/identity/client.py b/openstackclient/identity/client.py
index 1868b224..be7b643f 100644
--- a/openstackclient/identity/client.py
+++ b/openstackclient/identity/client.py
@@ -19,6 +19,7 @@ from keystoneclient.v2_0 import client as identity_client_v2
from osc_lib import utils
from openstackclient.api import auth
+from openstackclient.i18n import _
LOG = logging.getLogger(__name__)
@@ -65,9 +66,9 @@ def build_option_parser(parser):
'--os-identity-api-version',
metavar='<identity-api-version>',
default=utils.env('OS_IDENTITY_API_VERSION'),
- help='Identity API version, default=' +
- DEFAULT_API_VERSION +
- ' (Env: OS_IDENTITY_API_VERSION)')
+ help=_('Identity API version, default=%s '
+ '(Env: OS_IDENTITY_API_VERSION)') % DEFAULT_API_VERSION,
+ )
return auth.build_auth_plugins_option_parser(parser)