summaryrefslogtreecommitdiff
path: root/openstackclient/common/limits.py
diff options
context:
space:
mode:
authorHuanxuan Ao <huanxuan.ao@easystack.cn>2016-06-07 19:16:24 +0800
committerHuanxuan Ao <huanxuan.ao@easystack.cn>2016-06-07 19:56:00 +0800
commitb36d521ff6d4f7a994d4472c25f8267b6e268d41 (patch)
tree7b9abcef7d9e5308f5ec481fd66814588cbcf00f /openstackclient/common/limits.py
parent5293bb103e75542d9defb9d0d5ed3c144f0657fe (diff)
downloadpython-openstackclient-b36d521ff6d4f7a994d4472c25f8267b6e268d41.tar.gz
Fix i18n supports in commom
I checked all the files in openstackclient/common and fixed the missing i18n supprots. Change-Id: Id7f76a24aae663f5832ef9bcf1bd5a6b7081af24 Partial-bug: #1574965
Diffstat (limited to 'openstackclient/common/limits.py')
-rw-r--r--openstackclient/common/limits.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/openstackclient/common/limits.py b/openstackclient/common/limits.py
index 1f87abf3..939b9efb 100644
--- a/openstackclient/common/limits.py
+++ b/openstackclient/common/limits.py
@@ -19,6 +19,7 @@ import itertools
from openstackclient.common import command
from openstackclient.common import utils
+from openstackclient.i18n import _
from openstackclient.identity import common as identity_common
@@ -33,30 +34,33 @@ class ShowLimits(command.Lister):
dest="is_absolute",
action="store_true",
default=False,
- help="Show absolute limits")
+ help=_("Show absolute limits"),
+ )
type_group.add_argument(
"--rate",
dest="is_rate",
action="store_true",
default=False,
- help="Show rate limits")
+ help=_("Show rate limits"),
+ )
parser.add_argument(
"--reserved",
dest="is_reserved",
action="store_true",
default=False,
- help="Include reservations count [only valid with --absolute]")
+ help=_("Include reservations count [only valid with --absolute]"),
+ )
parser.add_argument(
'--project',
metavar='<project>',
- help='Show limits for a specific project (name or ID)'
- ' [only valid with --absolute]',
+ help=_('Show limits for a specific project (name or ID)'
+ ' [only valid with --absolute]'),
)
parser.add_argument(
'--domain',
metavar='<domain>',
- help='Domain the project belongs to (name or ID)'
- ' [only valid with --absolute]',
+ help=_('Domain the project belongs to (name or ID)'
+ ' [only valid with --absolute]'),
)
return parser