Skip to content

Commit 7def236

Browse files
author
Huanxuan Ao
committed
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
1 parent 37bc7bb commit 7def236

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

openstackclient/volume/v2/qos_specs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ def get_parser(self, prog_name):
250250
metavar='<key>',
251251
action='append',
252252
default=[],
253-
help=('Property to remove from the QoS specification. '
254-
'(repeat option to unset multiple properties)'),
253+
help=_('Property to remove from the QoS specification. '
254+
'(repeat option to unset multiple properties)'),
255255
)
256256
return parser
257257

openstackclient/volume/v2/snapshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def get_parser(self, prog_name):
3737
parser.add_argument(
3838
"--name",
3939
metavar="<name>",
40-
help=("Name of the snapshot")
40+
help=_("Name of the snapshot")
4141
)
4242
parser.add_argument(
4343
"--description",

openstackclient/volume/v2/volume_type.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ def take_action(self, parsed_args):
225225
result += 1
226226

227227
if result > 0:
228-
raise exceptions.CommandError("Command Failed: One or more of the"
229-
" operations failed")
228+
raise exceptions.CommandError(_("Command Failed: One or more of"
229+
" the operations failed"))
230230

231231

232232
class ShowVolumeType(command.ShowOne):
@@ -315,5 +315,5 @@ def take_action(self, parsed_args):
315315
result += 1
316316

317317
if result > 0:
318-
raise exceptions.CommandError("Command Failed: One or more of the"
319-
" operations failed")
318+
raise exceptions.CommandError(_("Command Failed: One or more of"
319+
" the operations failed"))

0 commit comments

Comments
 (0)