diff options
| author | Huanxuan Ao <huanxuan.ao@easystack.cn> | 2016-06-07 19:16:24 +0800 |
|---|---|---|
| committer | Huanxuan Ao <huanxuan.ao@easystack.cn> | 2016-06-07 19:56:00 +0800 |
| commit | b36d521ff6d4f7a994d4472c25f8267b6e268d41 (patch) | |
| tree | 7b9abcef7d9e5308f5ec481fd66814588cbcf00f /openstackclient/common/extension.py | |
| parent | 5293bb103e75542d9defb9d0d5ed3c144f0657fe (diff) | |
| download | python-openstackclient-b36d521ff6d4f7a994d4472c25f8267b6e268d41.tar.gz | |
Fix i18n supports in commom
I checked all the files in openstackclient/common
and fixed the missing i18n supprots.
Change-Id: Id7f76a24aae663f5832ef9bcf1bd5a6b7081af24
Partial-bug: #1574965
Diffstat (limited to 'openstackclient/common/extension.py')
| -rw-r--r-- | openstackclient/common/extension.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/openstackclient/common/extension.py b/openstackclient/common/extension.py index 8b556b4c..ab46e7d8 100644 --- a/openstackclient/common/extension.py +++ b/openstackclient/common/extension.py @@ -19,6 +19,7 @@ import itertools from openstackclient.common import command from openstackclient.common import utils +from openstackclient.i18n import _ class ListExtension(command.Lister): @@ -30,27 +31,32 @@ class ListExtension(command.Lister): '--compute', action='store_true', default=False, - help='List extensions for the Compute API') + help=_('List extensions for the Compute API'), + ) parser.add_argument( '--identity', action='store_true', default=False, - help='List extensions for the Identity API') + help=_('List extensions for the Identity API'), + ) parser.add_argument( '--network', action='store_true', default=False, - help='List extensions for the Network API') + help=_('List extensions for the Network API'), + ) parser.add_argument( '--volume', action='store_true', default=False, - help='List extensions for the Block Storage API') + help=_('List extensions for the Block Storage API'), + ) parser.add_argument( '--long', action='store_true', default=False, - help='List additional fields in output') + help=_('List additional fields in output'), + ) return parser def take_action(self, parsed_args): |
