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:
prashkre 2017-03-24 13:44:00 -04:00
parent 62a0d2f295
commit 2126bd5765
2 changed files with 10 additions and 6 deletions

View File

@ -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

View 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.