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

View File

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

View File

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

View File

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