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
This commit is contained in:
parent
2350cc7496
commit
29ed778793
@ -18,7 +18,3 @@ _translators = oslo_i18n.TranslatorFactory(domain='tacker')
|
||||
|
||||
# The primary translation function using the well-known name "_"
|
||||
_ = _translators.primary
|
||||
|
||||
|
||||
def enable_lazy(enable=True):
|
||||
return oslo_i18n.enable_lazy(enable)
|
||||
|
@ -24,8 +24,6 @@ from oslo_config import cfg
|
||||
import oslo_i18n
|
||||
from oslo_service import service as common_service
|
||||
|
||||
from tacker import _i18n
|
||||
_i18n.enable_lazy()
|
||||
from tacker.common import config
|
||||
from tacker import service
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user