From 53e05e7c2d36ab2ff1ba05a8334286d41c5f40e4 Mon Sep 17 00:00:00 2001 From: Sheel Rana Date: Mon, 23 May 2016 22:26:24 +0530 Subject: i18n support for help and error messages in cinder Change-Id: I98fbc959034fe0530966291643b381855801de20 --- openstackclient/volume/v2/service.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'openstackclient/volume/v2/service.py') 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="", - help="List services on specified host (name only)") + help=_("List services on specified host (name only)") + ) parser.add_argument( "--service", metavar="", - 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 -- cgit v1.2.1