tacker/tacker/_i18n.py
akhiljain23 29ed778793 Remove i18n.enable_lazy() call from tacker.cmd
Lazy translation of messages is not used in OpenStack. This
causes problems for commands which use translatable messages.
The lazy translation effort was abandoned several years ago.
For more information refer [1]

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-November/136289.html

Change-Id: I42cde2be3a5507861989c8e20eee416f06c79351
2018-11-14 14:56:52 +05:30

21 lines
767 B
Python

# All Rights Reserved.
#
# 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.
import oslo_i18n
_translators = oslo_i18n.TranslatorFactory(domain='tacker')
# The primary translation function using the well-known name "_"
_ = _translators.primary