1
yeziha
Can't switch languages in javascript menu ! Nothing helped...
  • 2005/3/2 18:57

  • yeziha

  • Just popping in

  • Posts: 39

  • Since: 2005/2/22


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>
<!-- 
items structuremenu hierarchy and links are stored there -->
<{if 
$xoops_langcode == 'en'}>
<!-- 
Load English menu -->
<
script language="JavaScript" src="<{$xoops_url}>/themes/exnews/en_items.js"></script>
<{else}>
<!-- Else 
load Japanese menu -->
<
script language="JavaScript" src="<{$xoops_url}>/themes/exnews/jp_items.js"></script>
<{/if}>
<!-- 
files with geometry and styles structures -->
<
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!

2
yeziha
Re: Can't switch languages in tigra menu ! Nothing helped...
  • 2005/3/6 19:02

  • yeziha

  • Just popping in

  • Posts: 39

  • Since: 2005/2/22


Probably it won't work because I use multilanguage module 1.4 and not 1.4.4 on XOOPS 2.0.9.2. But why the rest works oK then?

3
yeziha
Re: Can't switch languages in tigra menu ! Nothing helped...
  • 2005/3/12 13:28

  • yeziha

  • Just popping in

  • Posts: 39

  • Since: 2005/2/22


Never mind, I fixed it. Still, thanx to all!

Login

Who's Online

160 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 160


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits