Link to different pages depending on selected language? Link to different pages depending on selected language?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Link to different pages depending on selected language?

Started by mortenva, September 10, 2005, 01:15:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mortenva

Hi all!

I'm making my site bi-lingual, english and norwegian, with links to pages with contact info and other stuff. Is it possible to point these links to different pages in the two different language modes?

e.g.

For the link to my contact pages I would like it to point to contact.php when language is set to english and to kontakt.php when language is set to norwegian.

It should be doable by running som if testing when setting the link properties right? A suggestion would be something like this:


if($lang_settings==gb){
   <a href="{CONTACT_TGT_GB}" title="{CONTACT_TITLE}">{CONTACT_LNK}</a>
}else{
   <a href="{CONTACT_TGT_NO}" title="{CONTACT_TITLE}">{CONTACT_LNK}</a>
}


But I can't figure out which variable who contains the language settings. Can anybody help me out on this one? If any errors are found in my if-test, id be happy to know about that as well... :)

This is all in my main menu.

Regards, Morten

mortenva