diff options
| author | Huanxuan Ao <huanxuan.ao@easystack.cn> | 2016-06-07 19:16:24 +0800 |
|---|---|---|
| committer | Huanxuan Ao <huanxuan.ao@easystack.cn> | 2016-06-07 19:56:00 +0800 |
| commit | b36d521ff6d4f7a994d4472c25f8267b6e268d41 (patch) | |
| tree | 7b9abcef7d9e5308f5ec481fd66814588cbcf00f /openstackclient/common/quota.py | |
| parent | 5293bb103e75542d9defb9d0d5ed3c144f0657fe (diff) | |
| download | python-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/quota.py')
| -rw-r--r-- | openstackclient/common/quota.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/openstackclient/common/quota.py b/openstackclient/common/quota.py index f85d550b..67e442b3 100644 --- a/openstackclient/common/quota.py +++ b/openstackclient/common/quota.py @@ -21,6 +21,7 @@ import sys from openstackclient.common import command from openstackclient.common import utils +from openstackclient.i18n import _ # List the quota items, map the internal argument name to the option @@ -84,14 +85,14 @@ class SetQuota(command.Command): parser.add_argument( 'project', metavar='<project/class>', - help='Set quotas for this project or class (name/ID)', + help=_('Set quotas for this project or class (name/ID)'), ) parser.add_argument( '--class', dest='quota_class', action='store_true', default=False, - help='Set quotas for <class>', + help=_('Set quotas for <class>'), ) for k, v in self._build_options_list(): parser.add_argument( @@ -99,12 +100,12 @@ class SetQuota(command.Command): metavar='<%s>' % v, dest=k, type=int, - help='New value for the %s quota' % v, + help=_('New value for the %s quota') % v, ) parser.add_argument( '--volume-type', metavar='<volume-type>', - help='Set quotas for a specific <volume-type>', + help=_('Set quotas for a specific <volume-type>'), ) return parser @@ -187,7 +188,7 @@ class ShowQuota(command.ShowOne): 'project', metavar='<project/class>', nargs='?', - help='Show quotas for this project or class (name or ID)', + help=_('Show quotas for this project or class (name or ID)'), ) type_group = parser.add_mutually_exclusive_group() type_group.add_argument( @@ -195,14 +196,14 @@ class ShowQuota(command.ShowOne): dest='quota_class', action='store_true', default=False, - help='Show quotas for <class>', + help=_('Show quotas for <class>'), ) type_group.add_argument( '--default', dest='default', action='store_true', default=False, - help='Show default quotas for <project>' + help=_('Show default quotas for <project>') ) return parser |
