From 28b66459dba0357e91e8f0035db04f817b2272c2 Mon Sep 17 00:00:00 2001 From: Rajasi Kulkarni Date: Tue, 20 Sep 2016 20:10:09 +0530 Subject: Add translation markers for object commands None of the help messages for the object commands are marked for translation. This patch adds the necessary support. Co-Authored-By: Steve Martinelli Change-Id: Ibf472d8f7d5ab6c876f60cddcab8833b28f042e0 --- openstackclient/object/v1/container.py | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'openstackclient/object/v1/container.py') diff --git a/openstackclient/object/v1/container.py b/openstackclient/object/v1/container.py index 2f0d4ac2..01964d0c 100644 --- a/openstackclient/object/v1/container.py +++ b/openstackclient/object/v1/container.py @@ -37,7 +37,7 @@ class CreateContainer(command.Lister): 'containers', metavar='', nargs="+", - help='New container name(s)', + help=_('New container name(s)'), ) return parser @@ -71,13 +71,13 @@ class DeleteContainer(command.Command): '--recursive', '-r', action='store_true', default=False, - help='Recursively delete objects and container', + help=_('Recursively delete objects and container'), ) parser.add_argument( 'containers', metavar='', nargs="+", - help='Container(s) to delete', + help=_('Container(s) to delete'), ) return parser @@ -105,35 +105,35 @@ class ListContainer(command.Lister): parser.add_argument( "--prefix", metavar="", - help="Filter list using ", + help=_("Filter list using "), ) parser.add_argument( "--marker", metavar="", - help="Anchor for paging", + help=_("Anchor for paging"), ) parser.add_argument( "--end-marker", metavar="", - help="End anchor for paging", + help=_("End anchor for paging"), ) parser.add_argument( "--limit", metavar="", type=int, - help="Limit the number of containers returned", + help=_("Limit the number of containers returned"), ) parser.add_argument( '--long', action='store_true', default=False, - help='List additional fields in output', + help=_('List additional fields in output'), ) parser.add_argument( '--all', action='store_true', default=False, - help='List all containers (default is 10000)', + help=_('List all containers (default is 10000)'), ) return parser @@ -175,7 +175,7 @@ class SaveContainer(command.Command): parser.add_argument( 'container', metavar='', - help='Container to save', + help=_('Container to save'), ) return parser @@ -193,15 +193,15 @@ class SetContainer(command.Command): parser.add_argument( 'container', metavar='', - help='Container to modify', + help=_('Container to modify'), ) parser.add_argument( "--property", metavar="", required=True, action=parseractions.KeyValueAction, - help="Set a property on this container " - "(repeat option to set multiple properties)" + help=_("Set a property on this container " + "(repeat option to set multiple properties)") ) return parser @@ -220,7 +220,7 @@ class ShowContainer(command.ShowOne): parser.add_argument( 'container', metavar='', - help='Container to display', + help=_('Container to display'), ) return parser @@ -243,7 +243,7 @@ class UnsetContainer(command.Command): parser.add_argument( 'container', metavar='', - help='Container to modify', + help=_('Container to modify'), ) parser.add_argument( '--property', @@ -251,8 +251,8 @@ class UnsetContainer(command.Command): required=True, action='append', default=[], - help='Property to remove from container ' - '(repeat option to remove multiple properties)', + help=_('Property to remove from container ' + '(repeat option to remove multiple properties)'), ) return parser -- cgit v1.2.1