Commit b8d2c53f authored by Yusei Tahara's avatar Yusei Tahara

2008-06-17 yusei

* Revert previous changes of Base_doLanguage, because this causes another problem.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21640 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e6d76725
......@@ -65,28 +65,10 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
# XXX Localizer-dependent\n
<value> <string># XXX Localizer-dependent\n
portal = context.getPortalObject()\n
\n
# Make the URL for the redirection. The language is appended, because when HTTP caching is utilized,\n
# If-Modified-Since ignores Vary, so the URL must be different from another language. Note that this\n
# is still a kind of hack, because the language is not appended to other links.\n
\n
# XXX relying on the referer is a bad idea, but we don\'t have any other way to retrieve the original URL\n
# currently.\n
url = context.REQUEST[\'HTTP_REFERER\']\n
if \'?\' in url:\n
delimiter = \'&\'\n
else:\n
delimiter = \'?\'\n
url = \'%s%sLOCALIZER_LANGUAGE=%s\' % (url, delimiter, select_language)\n
\n
portal.Localizer.changeLanguage(select_language, goto=url)\n
]]></string> </value>
portal.Localizer.changeLanguage(select_language)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
......@@ -138,9 +120,6 @@ portal.Localizer.changeLanguage(select_language, goto=url)\n
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
<string>_getitem_</string>
<string>url</string>
<string>delimiter</string>
</tuple>
</value>
</item>
......
2008-06-17 yusei
* Revert previous changes of Base_doLanguage, because this causes another problem.
2008-06-16 yusei
* Fixed tabber_style.css to display border line under unselected tabs in the front page.
......
557
\ No newline at end of file
558
\ 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