ADD i18n file

Change-Id: I178f3144bb1850c62bb2ad06e2e88cd7713af58d
This commit is contained in:
wangxiyuan 2018-07-23 17:03:24 +08:00
parent 88684c2074
commit 5e34861854
3 changed files with 27 additions and 0 deletions

View File

@ -1,5 +1,6 @@
bandit==1.4.0
hacking==0.12.0
oslo.i18n==3.15.3
openstackdocstheme==1.20.0
oslotest==3.2.0
reno==2.5.0

25
oslo_limit/_i18n.py Normal file
View File

@ -0,0 +1,25 @@
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
"""oslo.i18n integration module.
See https://docs.openstack.org/oslo.i18n/latest/user/index.html .
"""
import oslo_i18n
_translators = oslo_i18n.TranslatorFactory(domain='oslo_limit')
# The primary translation function using the well-known name "_"
_ = _translators.primary

View File

@ -1,3 +1,4 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
oslo.i18n>=3.15.3 # Apache-2.0