Merge "Make import clearly in i18n.py"

This commit is contained in:
Jenkins 2017-03-09 03:01:24 +00:00 committed by Gerrit Code Review
commit 50fed653b7
1 changed files with 8 additions and 2 deletions

View File

@ -13,9 +13,15 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_i18n import * # noqa
"""oslo.i18n integration module.
_translators = TranslatorFactory(domain='zaqar')
See http://docs.openstack.org/developer/oslo.i18n/usage.html .
"""
import oslo_i18n as i18n
_translators = i18n.TranslatorFactory(domain='zaqar')
# The primary translation function using the well-known name "_"
_ = _translators.primary