Static messages are not localized when requested
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Low
|
Brant Knudson |
Bug Description
Messages created at import-time are not being translated when
the request is made with Accept-Language.
Note that messages created a run-time are being translated.
Since not many messages are translated at this point, to recreate
can set a translated message yourself. For example, update
keystone/
#: keystone/
msgid "The request you have made requires authentication."
msgstr "Wonderful Italian rendition of this"
before running `python setup.py compile_catalog`
Then run Keystone and request a resource that requires authentication.
curl -s -H "Accept-Language: it" http://
{
"error": {
"code": 401,
"message": "The request you have made requires authentication.",
"title": "Unauthorized"
}
}
-- this should return
{
"error": {
"code": 401,
"message": "Wonderful Italian rendition of this",
"title": "Unauthorized"
}
}
Changed in keystone: | |
assignee: | nobody → Brant Knudson (blk-u) |
Changed in keystone: | |
importance: | Undecided → Low |
Changed in keystone: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | havana-3 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/43208
Review: https:/