Error messages are not translating with locale.
Fixed issue with translation of keystone error messages which was not happening in case of any error messages from identity API with locale being set. Change-Id: Idc73e86647f2adce9e39387b0c3124431dcac255 Closes-Bug: #1674415
This commit is contained in:
parent
62a0d2f295
commit
2126bd5765
@ -17,18 +17,15 @@ import os
|
||||
import oslo_i18n
|
||||
from oslo_log import log
|
||||
|
||||
from keystone.common import profiler
|
||||
import keystone.conf
|
||||
from keystone import exception
|
||||
|
||||
|
||||
# NOTE(dstanek): i18n.enable_lazy() must be called before
|
||||
# keystone.i18n._() is called to ensure it has the desired lazy lookup
|
||||
# behavior. This includes cases, like keystone.exceptions, where
|
||||
# keystone.i18n._() is called at import time.
|
||||
oslo_i18n.enable_lazy()
|
||||
|
||||
|
||||
from keystone.common import profiler
|
||||
import keystone.conf
|
||||
from keystone import exception
|
||||
from keystone.server import common
|
||||
from keystone.version import service as keystone_service
|
||||
|
||||
|
7
releasenotes/notes/bug_1674415-e8a7345aa2b05ab7.yaml
Normal file
7
releasenotes/notes/bug_1674415-e8a7345aa2b05ab7.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
[`bug 1674415 <https://bugs.launchpad.net/keystone/+bug/1674415>`_]
|
||||
Fixed issue with translation of keystone error messages which was not
|
||||
happening in case of any error messages from identity API with locale
|
||||
being set.
|
Loading…
Reference in New Issue
Block a user