Fix i18n support in cinder

I checked all the cinder files and found some small issues
of i18n support.So I fix them.

Change-Id: I2df06cb9db4643bd734105664d83299726f7b4e9
Partial-bug: #1574965
This commit is contained in:
Huanxuan Ao 2016-05-30 15:39:12 +08:00
parent 37bc7bbf91
commit 7def236718
3 changed files with 7 additions and 7 deletions
openstackclient/volume/v2

@ -250,8 +250,8 @@ class UnsetQos(command.Command):
metavar='<key>', metavar='<key>',
action='append', action='append',
default=[], default=[],
help=('Property to remove from the QoS specification. ' help=_('Property to remove from the QoS specification. '
'(repeat option to unset multiple properties)'), '(repeat option to unset multiple properties)'),
) )
return parser return parser

@ -37,7 +37,7 @@ class CreateSnapshot(command.ShowOne):
parser.add_argument( parser.add_argument(
"--name", "--name",
metavar="<name>", metavar="<name>",
help=("Name of the snapshot") help=_("Name of the snapshot")
) )
parser.add_argument( parser.add_argument(
"--description", "--description",

@ -225,8 +225,8 @@ class SetVolumeType(command.Command):
result += 1 result += 1
if result > 0: if result > 0:
raise exceptions.CommandError("Command Failed: One or more of the" raise exceptions.CommandError(_("Command Failed: One or more of"
" operations failed") " the operations failed"))
class ShowVolumeType(command.ShowOne): class ShowVolumeType(command.ShowOne):
@ -315,5 +315,5 @@ class UnsetVolumeType(command.Command):
result += 1 result += 1
if result > 0: if result > 0:
raise exceptions.CommandError("Command Failed: One or more of the" raise exceptions.CommandError(_("Command Failed: One or more of"
" operations failed") " the operations failed"))