localised API message responses - possible?
Hi all, I'm just going through old questions on Ask OpenStack, and thought we might have an answer for this one: https://ask.openstack.org/en/question/4346/is-there-a-way-of-passing-the-lan... I wanted to know if it is possible to get the localized openstack messages when I make a openstack REST API call? If so how can I pass the language header? Regards, Tom
Hi, http://httpd.apache.org/docs/2.2/en/content-negotiation.html This article is help you. Regards, Sungjin. 2015-07-03 13:06 GMT+09:00 Tom Fifield <tom@openstack.org>:
Hi all,
I'm just going through old questions on Ask OpenStack, and thought we might have an answer for this one:
https://ask.openstack.org/en/question/4346/is-there-a-way-of-passing-the-lan...
I wanted to know if it is possible to get the localized openstack messages when I make a openstack REST API call? If so how can I pass the language header?
Regards,
Tom
_______________________________________________ Openstack-i18n mailing list Openstack-i18n@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-i18n
As far as I look the neutron code, it seems WSGI framework honors Accept-Language header in a request, and the API layer tries to generate translated messages. I think other projects have a similar mechanism. I think translated messages can be returned by REST API, AFAIK nobody checks the behavior. Akihiro 2015-07-03 13:06 GMT+09:00 Tom Fifield <tom@openstack.org>:
Hi all,
I'm just going through old questions on Ask OpenStack, and thought we might have an answer for this one:
https://ask.openstack.org/en/question/4346/is-there-a-way-of-passing-the-lan...
I wanted to know if it is possible to get the localized openstack messages when I make a openstack REST API call? If so how can I pass the language header?
Regards,
Tom
_______________________________________________ Openstack-i18n mailing list Openstack-i18n@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-i18n
participants (3)
-
Akihiro Motoki
-
SungJin Kang
-
Tom Fifield