Commit fdbe1639 authored by Yusei Tahara's avatar Yusei Tahara

2008-10-2 yusei

* Use cookie to store user's preferred language and set the language value to REQUEST so that next page after login can use correct language.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23985 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4e5d1c2a
......@@ -70,6 +70,8 @@ accept_language = REQUEST.get(\'HTTP_ACCEPT_LANGUAGE\', \'en\')\n
accept_language_tag = accept_language.split(\';\')[0].split(\',\')[0]\n
primary_language = accept_language_tag.split(\'-\')[0]\n
if primary_language in configuration_language_list:\n
# Set language to REQUEST so that next page will use the correct language.\n
REQUEST.RESPONSE.set(COOKIE_NAME, primary_language)\n
return primary_language\n
return \'en\'\n
</string> </value>
......
2008-10-2 yusei
* Use cookie to store user's preferred language and set the language value to REQUEST so that next page after login can use correct language.
2008-10-2 yusei
* Update xml format.
......
109
\ No newline at end of file
115
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment