Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Link to different pages depending on selected language?  (Read 3518 times)

0 Members and 1 Guest are viewing this topic.

mortenva

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Link to different pages depending on selected language?
« on: September 10, 2005, 01:15:03 pm »

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
« Last Edit: September 10, 2005, 05:26:07 pm by TranzNDance »
Logged

mortenva

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Link to different pages depending on selected language?
« Reply #1 on: September 10, 2005, 05:00:35 pm »

No worry, I found out how to do it...


regards, Morten
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.