summaryrefslogtreecommitdiff
path: root/openstackclient/volume/v2/service.py
diff options
context:
space:
mode:
authorSheel Rana <ranasheel2000@gmail.com>2016-05-23 22:26:24 +0530
committerSheel Rana <ranasheel2000@gmail.com>2016-05-23 18:04:36 +0000
commit53e05e7c2d36ab2ff1ba05a8334286d41c5f40e4 (patch)
tree658edbf0d29fc44f2939041ac7256802be92e184 /openstackclient/volume/v2/service.py
parent17bc850440045128871c381244540eeedaa569a7 (diff)
downloadpython-openstackclient-53e05e7c2d36ab2ff1ba05a8334286d41c5f40e4.tar.gz
i18n support for help and error messages in cinder
Change-Id: I98fbc959034fe0530966291643b381855801de20
Diffstat (limited to 'openstackclient/volume/v2/service.py')
-rw-r--r--openstackclient/volume/v2/service.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/openstackclient/volume/v2/service.py b/openstackclient/volume/v2/service.py
index f26be13e..023dda98 100644
--- a/openstackclient/volume/v2/service.py
+++ b/openstackclient/volume/v2/service.py
@@ -16,6 +16,7 @@
from openstackclient.common import command
from openstackclient.common import utils
+from openstackclient.i18n import _
class ListService(command.Lister):
@@ -26,16 +27,18 @@ class ListService(command.Lister):
parser.add_argument(
"--host",
metavar="<host>",
- help="List services on specified host (name only)")
+ help=_("List services on specified host (name only)")
+ )
parser.add_argument(
"--service",
metavar="<service>",
- help="List only specified service (name only)")
+ help=_("List only specified service (name only)")
+ )
parser.add_argument(
"--long",
action="store_true",
default=False,
- help="List additional fields in output"
+ help=_("List additional fields in output")
)
return parser