1
Good Xoopies! I'm making a multilanguage site. I installed the multi language module 1.4 (XOOPS 2.0.9.2). The content switches into languages perfectly. But I cannot do it with my javascript menu. At one of the threads (unfortunately, can't find it now) I picked up this code for multilanguage java, it is placed before body closure in the theme.
<script language="JavaScript" src="<{$xoops_url}>/themes/exnews/menu.js">script>
<{if $xoops_langcode == 'en'}>
<script language="JavaScript" src="<{$xoops_url}>/themes/exnews/en_items.js">script>
<{else}>
<script language="JavaScript" src="<{$xoops_url}>/themes/exnews/jp_items.js">script>
<{/if}>
<script language="JavaScript" src="<{$xoops_url}>/themes/exnews/menu_tpl.js">script>
<script language="JavaScript">
But in my case XOOPS always loads only the menu items file that goes first in the code (e.g., if i swap in the code 'en_items' and 'jp_items' it loads Japan menu only). I'm no expert in java syntax and have no idea why it won't work
Can anyone help make it work (desirably - for a 3-language site)?
Lots of thanx in advance!