diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-06-07 18:52:37 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-06-07 18:52:37 +0000 |
| commit | 817f5f3196441540ef5b6d092984240d554dd20b (patch) | |
| tree | f1efdd3c5411b5d7b920f22e8a3a60360fdf7640 /openstackclient/common/extension.py | |
| parent | 7dc2e1dc08b0692a3accb343c62451fb3d83f4cd (diff) | |
| parent | b36d521ff6d4f7a994d4472c25f8267b6e268d41 (diff) | |
| download | python-openstackclient-817f5f3196441540ef5b6d092984240d554dd20b.tar.gz | |
Merge "Fix i18n supports in commom"
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): |
