Commit ce2c8fcc authored by Yusei Tahara's avatar Yusei Tahara

2008-10-2 yusei

* Fixed a bug on language selection. Remove country code from language tag.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23979 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6dc62dec
...@@ -63,9 +63,10 @@ if user_preferred_language is not None:\n ...@@ -63,9 +63,10 @@ if user_preferred_language is not None:\n
for item in context.WizardTool_getConfigurationLanguageList():\n for item in context.WizardTool_getConfigurationLanguageList():\n
configuration_language_list.append(item[1])\n configuration_language_list.append(item[1])\n
accept_language = context.REQUEST.get(\'HTTP_ACCEPT_LANGUAGE\', \'en\')\n accept_language = context.REQUEST.get(\'HTTP_ACCEPT_LANGUAGE\', \'en\')\n
accept_language = accept_language.split(\';\')[0].split(\',\')[0]\n accept_language_tag = accept_language.split(\';\')[0].split(\',\')[0]\n
if accept_language in configuration_language_list:\n primary_language = accept_language_tag.split(\'-\')[0]\n
return accept_language\n if primary_language in configuration_language_list:\n
return primary_language\n
return \'en\'\n return \'en\'\n
</string> </value> </string> </value>
</item> </item>
...@@ -113,6 +114,8 @@ return \'en\'\n ...@@ -113,6 +114,8 @@ return \'en\'\n
<string>item</string> <string>item</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>accept_language</string> <string>accept_language</string>
<string>accept_language_tag</string>
<string>primary_language</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
2008-10-2 yusei
* Fixed a bug on language selection. Remove country code from language tag.
2008-10-1 vincentd 2008-10-1 vincentd
* Add a js file for overwrite the js of normal access-tab (to access to the sales of Express products), and put a hight priority for * Add a js file for overwrite the js of normal access-tab (to access to the sales of Express products), and put a hight priority for
the skin folder the skin folder
......
105 106
\ No newline at end of file \ 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