summaryrefslogtreecommitdiff
path: root/openstackclient/common/limits.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-06-07 18:52:37 +0000
committerGerrit Code Review <review@openstack.org>2016-06-07 18:52:37 +0000
commit817f5f3196441540ef5b6d092984240d554dd20b (patch)
treef1efdd3c5411b5d7b920f22e8a3a60360fdf7640 /openstackclient/common/limits.py
parent7dc2e1dc08b0692a3accb343c62451fb3d83f4cd (diff)
parentb36d521ff6d4f7a994d4472c25f8267b6e268d41 (diff)
downloadpython-openstackclient-817f5f3196441540ef5b6d092984240d554dd20b.tar.gz
Merge "Fix i18n supports in commom"
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