some API responses which should be translated when using accept-language header are not
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Luis A. Garcia | ||
OpenStack Heat |
Fix Released
|
Undecided
|
Luis A. Garcia | ||
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Luis A. Garcia | ||
neutron |
Fix Released
|
Medium
|
Luis A. Garcia |
Bug Description
1. Update cinder.po file
# vim /usr/lib/
#: cinder/
#, python-format
msgid "Volume size %(size)s must be an integer and greater than 0"
msgstr "memo memo memo memo memo %(size)s memo memo memo memo memo memo memo memo memo memo memo memo memomemomeo meomeomeomeo 0."
2. Compile new .mo file, install
# msgfmt -o cinder.mo /usr/lib/
# cp cinder.mo /usr/share/
# cp cinder.mo /usr/share/
3. Restart cinder services
# service openstack-
# service openstack-
# service openstack-
4. API call to trigger translated message
# curl -i http://
5. Response still in "english'
HTTP/1.1 400
Content-Length: 119
Content-Type: application/json; charset=UTF-8
X-Compute-
Date: Tue, 27 Aug 2013 03:21:05 GMT
{"badRequest": {"message": "Invalid input received: Volume size 0 must be an integer and greater than 0", "code": 400}}
6. Update system locale to make sure error message is properly translated
# cat /etc/sysconfig/i18n
LANG="ja_JP.UTF-8"
#LANG="en_US.UTF-8"
SYSFONT=
7. Restart servers
# service openstack-
# service openstack-
# service openstack-
8. Response is partial "translated".
[root@localhost locale]# curl -i http://
HTTP/1.1 400
Content-Length: 182
Content-Type: application/json; charset=UTF-8
X-Compute-
Date: Tue, 27 Aug 2013 03:28:00 GMT
{"badRequest": {"message": "Invalid input received: memo memo memo memo memo 0 memo memo memo memo memo memo memo memo memo memo memo memo memomemomeo meomeomeomeo 0.", "code": 400}}
9. Expected results:
The response in message should be "translated" without changing system local to ja
10. Actual results:
The response in message has not "translated".
Changed in cinder: | |
assignee: | nobody → Luis A. Garcia (luisg-8) |
Changed in neutron: | |
importance: | Undecided → Medium |
milestone: | none → havana-rc1 |
tags: | added: translation |
Changed in keystone: | |
importance: | Undecided → Medium |
Changed in keystone: | |
milestone: | none → havana-rc1 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | none → havana-rc1 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | none → havana-rc1 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | havana-rc1 → 2013.2 |
Changed in cinder: | |
milestone: | havana-rc1 → 2013.2 |
Changed in neutron: | |
milestone: | havana-rc1 → 2013.2 |
Changed in keystone: | |
milestone: | havana-rc1 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/45496
Review: https:/