Multi-Language Menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
vengavenga
Beginner
Beginner
Posts: 7
Joined: Sat May 29, 2004 1:21 pm
Contact:

Multi-Language Menu

Post by vengavenga »

Hi all,

I'm building an osCommerce based store that will use the Milonic menu in the header area.
Problem I've got is that the store is in two languages. and I can't figure out how to get the Milonic menu to switch from one to the other.

The code in the header.php file of osCommerce allows me to identify language and choose what to do, so really what I want is something along the lines of:

if (language == 'english') {
<script type="text/javascript" src="menu_data_english.js"></script>
}

if (language == 'espanol') {
<script type="text/javascript" src="menu_data_espanol.js"></script>
}

or at least something along those lines.

The above doesn't seem to work, and I've also tried putting all the milonic files in separate language folders to no avail.

Can anyone point me in the right direction please?

Thanks,
Ali.
vengavenga
Beginner
Beginner
Posts: 7
Joined: Sat May 29, 2004 1:21 pm
Contact:

Re: Multi-Language Menu

Post by vengavenga »

Actually, ignore all of that nonsense above. It helps if you upload files to the correct server! Doh!
Ali.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Multi-Language Menu

Post by Ruth »

Hi,

Well, I have to say you have just made my day since I have just spent an hour trying to install a program which wouldn't install. It helps if you click the correct button, so with you I say DOH :!:

Ruth
Post Reply