diff options
| author | Jenkins <jenkins@review.openstack.org> | 2014-10-12 18:50:27 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2014-10-12 18:50:27 +0000 |
| commit | 49c74229b4073b1572357b074e78e2c4674632e7 (patch) | |
| tree | 50fd739380768302e434834f5965b5e5dd17876e /openstackclient/identity/v2_0/endpoint.py | |
| parent | 4a34e7d0e6bcfe89b4cfa97f72279dc539e00790 (diff) | |
| parent | bb71df9ced18f343911fb90e745b4d875672cf27 (diff) | |
| download | python-openstackclient-49c74229b4073b1572357b074e78e2c4674632e7.tar.gz | |
Merge "Mark identity v2 resources for translation"
Diffstat (limited to 'openstackclient/identity/v2_0/endpoint.py')
| -rw-r--r-- | openstackclient/identity/v2_0/endpoint.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/openstackclient/identity/v2_0/endpoint.py b/openstackclient/identity/v2_0/endpoint.py index 36f52cad..f7d78831 100644 --- a/openstackclient/identity/v2_0/endpoint.py +++ b/openstackclient/identity/v2_0/endpoint.py @@ -23,6 +23,7 @@ from cliff import lister from cliff import show from openstackclient.common import utils +from openstackclient.i18n import _ # noqa from openstackclient.identity import common @@ -36,24 +37,24 @@ class CreateEndpoint(show.ShowOne): parser.add_argument( 'service', metavar='<endpoint-service>', - help='New endpoint service') + help=_('New endpoint service')) parser.add_argument( '--region', metavar='<region>', - help='New endpoint region') + help=_('New endpoint region')) parser.add_argument( '--publicurl', metavar='<public-url>', required=True, - help='New endpoint public URL') + help=_('New endpoint public URL')) parser.add_argument( '--adminurl', metavar='<admin-url>', - help='New endpoint admin URL') + help=_('New endpoint admin URL')) parser.add_argument( '--internalurl', metavar='<internal-url>', - help='New endpoint internal URL') + help=_('New endpoint internal URL')) return parser def take_action(self, parsed_args): @@ -84,7 +85,7 @@ class DeleteEndpoint(command.Command): parser.add_argument( 'endpoint', metavar='<endpoint-id>', - help='ID of endpoint to delete') + help=_('ID of endpoint to delete')) return parser def take_action(self, parsed_args): @@ -105,7 +106,7 @@ class ListEndpoint(lister.Lister): '--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): @@ -139,7 +140,7 @@ class ShowEndpoint(show.ShowOne): parser.add_argument( 'endpoint_or_service', metavar='<endpoint_or_service>', - help='Endpoint ID or name, type or ID of service to display') + help=_('Endpoint ID or name, type or ID of service to display')) return parser def take_action(self, parsed_args): |
