summaryrefslogtreecommitdiff
path: root/openstackclient/volume/v2
diff options
context:
space:
mode:
authorHuanxuan Ao <huanxuan.ao@easystack.cn>2016-05-30 15:39:12 +0800
committerHuanxuan Ao <huanxuan.ao@easystack.cn>2016-05-30 17:00:35 +0800
commit7def236718b4c68aec4d9532f9556a8800b64106 (patch)
treea8aae00e13fd5215ea0b9f46710ac7eeef378140 /openstackclient/volume/v2
parent37bc7bbf91583684b8b1ad2cff9f28e3b4e7bea7 (diff)
downloadpython-openstackclient-7def236718b4c68aec4d9532f9556a8800b64106.tar.gz
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
Diffstat (limited to 'openstackclient/volume/v2')
-rw-r--r--openstackclient/volume/v2/qos_specs.py4
-rw-r--r--openstackclient/volume/v2/snapshot.py2
-rw-r--r--openstackclient/volume/v2/volume_type.py8
3 files changed, 7 insertions, 7 deletions
diff --git a/openstackclient/volume/v2/qos_specs.py b/openstackclient/volume/v2/qos_specs.py
index aa2059d7..3cea3303 100644
--- a/openstackclient/volume/v2/qos_specs.py
+++ b/openstackclient/volume/v2/qos_specs.py
@@ -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
diff --git a/openstackclient/volume/v2/snapshot.py b/openstackclient/volume/v2/snapshot.py
index db4ce6c3..2886aaef 100644
--- a/openstackclient/volume/v2/snapshot.py
+++ b/openstackclient/volume/v2/snapshot.py
@@ -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",
diff --git a/openstackclient/volume/v2/volume_type.py b/openstackclient/volume/v2/volume_type.py
index 2261f4c3..96f13c83 100644
--- a/openstackclient/volume/v2/volume_type.py
+++ b/openstackclient/volume/v2/volume_type.py
@@ -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"))