← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1674415] Re: keystone exception messages are not translating when locale is passed

 

Reviewed:  https://review.openstack.org/449769
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=2126bd576550a68284e05fc8eadedce072531563
Submitter: Jenkins
Branch:    master

commit 2126bd576550a68284e05fc8eadedce072531563
Author: prashkre <prashkre@xxxxxxxxxx>
Date:   Fri Mar 24 13:44:00 2017 -0400

    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


** Changed in: keystone
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1674415

Title:
  keystone exception messages are not translating when locale is passed

Status in OpenStack Identity (keystone):
  Fix Released

Bug description:
  When user invokes identity API's on an environment with locale being
  passed, keystone.exception messages are not getting translated in case
  of any error messages from identity API.

  From observation, we found error_message at [0] is of type <unicode>
  and in oslo_i18n module [1], it is expecting
  oslo_i18n._message.Message type for translation.

  [0]https://github.com/openstack/keystone/blob/master/keystone/common/wsgi.py#L790
  [1] https://github.com/openstack/oslo.i18n/blob/master/oslo_i18n/_translate.py#L45

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1674415/+subscriptions


References