diff --git a/karborclient/osc/v1/plans.py b/karborclient/osc/v1/plans.py index 9ce8085..0d222a5 100644 --- a/karborclient/osc/v1/plans.py +++ b/karborclient/osc/v1/plans.py @@ -112,7 +112,7 @@ class ShowPlan(command.ShowOne): parser.add_argument( 'plan', metavar="", - help="ID of plan." + help=_('The UUID of the plan.') ) return parser @@ -132,19 +132,19 @@ class CreatePlan(command.ShowOne): parser.add_argument( 'name', metavar='', - help='Plan name.' + help=_('The name of the plan.') ) parser.add_argument( 'provider_id', metavar='', - help='ID of provider.' + help=_('The UUID of the provider.') ) parser.add_argument( 'resources', metavar='', - help='Resource in list must be a dict when creating' - ' a plan. The keys of resource are id ,type, name and ' - 'extra_info. The extra_info field is optional.' + help=_('Resource in list must be a dict when creating' + ' a plan. The keys of resource are id ,type, name and ' + 'extra_info. The extra_info field is optional.') ) parser.add_argument( '--parameters-json', @@ -152,23 +152,23 @@ class CreatePlan(command.ShowOne): dest='parameters_json', metavar='', default=None, - help='Plan parameters in json format.' + help=_('Plan parameters in json format.') ) parser.add_argument( '--parameters', action='append', metavar='resource_type=[,resource_id=,key=val,...]', default=[], - help='Plan parameters, may be specified multiple times. ' - 'resource_type: type of resource to apply parameters. ' - 'resource_id: limit the parameters to a specific resource. ' - 'Other keys and values: according to provider\'s protect ' - 'schema.' + help=_('Plan parameters, may be specified multiple times. ' + 'resource_type: type of resource to apply parameters. ' + 'resource_id: limit the parameters to a specific resource. ' + 'Other keys and values: according to provider\'s protect ' + 'schema.') ) parser.add_argument( '--description', metavar='', - help='The description of a plan.' + help=_('The description of the plan.') ) return parser @@ -196,22 +196,22 @@ class UpdatePlan(command.ShowOne): parser.add_argument( "plan_id", metavar="", - help="Id of plan to update." + help=_("Id of plan to update.") ) parser.add_argument( "--name", metavar="", - help="A name to which the plan will be renamed." + help=_("A name to which the plan will be renamed.") ) parser.add_argument( "--resources", metavar="", - help="Resources to which the plan will be updated." + help=_("Resources to which the plan will be updated.") ) parser.add_argument( "--status", metavar="", - help="status to which the plan will be updated." + help=_("status to which the plan will be updated.") ) return parser @@ -246,7 +246,7 @@ class DeletePlan(command.Command): 'plan', metavar='', nargs="+", - help='ID of plan.' + help=_('ID of plan.') ) return parser