Commit 5163d16b authored by Nicolas Delaby's avatar Nicolas Delaby

Do not try to display more languages than the one configured on WebSite level

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41749 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3cf6d59a
...@@ -37,11 +37,12 @@ ...@@ -37,11 +37,12 @@
<value> <unicode encoding="cdata"><![CDATA[ <value> <unicode encoding="cdata"><![CDATA[
<tal:block tal:define="language_list here/Localizer/get_languages_map;\n <tal:block tal:define="language_list here/Localizer/get_languages_map;\n
available_language_list here/getAvailableLanguageList;\n
absolute_url here/absolute_url">\n absolute_url here/absolute_url">\n
<tal:block tal:repeat="language language_list" tal:condition="python:len(language_list) > 1">\n <tal:block tal:repeat="language language_list" tal:condition="python:len(available_language_list) > 1">\n
<b tal:condition="language/selected"><u tal:content="language/id"/></b>\n <b tal:condition="language/selected"><u tal:content="language/id"/></b>\n
<a tal:attributes="href python:\'%s/Base_doLanguage?select_language=%s\' % (absolute_url, language[\'id\'])"\n <a tal:attributes="href python:\'%s/Base_doLanguage?select_language=%s\' % (absolute_url, language[\'id\'])"\n
tal:content="language/id" tal:condition="not:language/selected"/>\n tal:content="language/id" tal:condition="python: language[\'id\'] in available_language_list and not language.get(\'selected\')"/>\n
</tal:block>\n </tal:block>\n
</tal:block> </tal:block>
......
1011 1014
\ 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