summaryrefslogtreecommitdiff
path: root/openstackclient/network/v2/network.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-05-16 23:33:23 +0000
committerGerrit Code Review <review@openstack.org>2016-05-16 23:33:23 +0000
commitcb068d8c6829879144ef7d43a43e113674ab295c (patch)
treedc744f329f0e9b303851d74e084eed79f91e5c79 /openstackclient/network/v2/network.py
parent948c76b0a42640ef7705214c6c2b6c7616dbe606 (diff)
parent40f51c32ace92d9f3afae8df83a06ca5056c9f06 (diff)
downloadpython-openstackclient-cb068d8c6829879144ef7d43a43e113674ab295c.tar.gz
Merge "Fix i18n support for help and error msg in network"
Diffstat (limited to 'openstackclient/network/v2/network.py')
-rw-r--r--openstackclient/network/v2/network.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/openstackclient/network/v2/network.py b/openstackclient/network/v2/network.py
index 6730ce85..bdde9173 100644
--- a/openstackclient/network/v2/network.py
+++ b/openstackclient/network/v2/network.py
@@ -219,7 +219,7 @@ class CreateNetwork(common.NetworkAndComputeShowOne):
default_router_grp.add_argument(
'--no-default',
action='store_true',
- help=_("Do not use the network as the default external network. "
+ help=_("Do not use the network as the default external network "
"(default)")
)
_add_additional_network_options(parser)
@@ -256,7 +256,7 @@ class DeleteNetwork(common.NetworkAndComputeCommand):
'network',
metavar="<network>",
nargs="+",
- help=("Network(s) to delete (name or ID)")
+ help=_("Network(s) to delete (name or ID)")
)
return parser
@@ -282,13 +282,13 @@ class ListNetwork(common.NetworkAndComputeLister):
'--external',
action='store_true',
default=False,
- help='List external networks',
+ help=_("List external networks")
)
parser.add_argument(
'--long',
action='store_true',
default=False,
- help='List additional fields in output',
+ help=_("List additional fields in output")
)
return parser
@@ -435,7 +435,7 @@ class SetNetwork(command.Command):
attrs = _get_attrs(self.app.client_manager, parsed_args)
if attrs == {}:
- msg = "Nothing specified to be set"
+ msg = _("Nothing specified to be set")
raise exceptions.CommandError(msg)
client.update_network(obj, **attrs)