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:
parent
37bc7bbf91
commit
7def236718
openstackclient/volume/v2
@ -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
|
||||
|
||||
|
@ -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",
|
||||
|
@ -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"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user