[phpBB Debug] PHP Warning: in file [ROOT]/ext/tas2580/seourls/event/listener.php on line 213: Undefined array key "FORUM_NAME"
REDAXO Forum • How to add 2 or more languages (Front-end)?
Seite 1 von 1

How to add 2 or more languages (Front-end)?

Verfasst: 3. Nov 2009, 16:46
von Pezz
Hi there,

I know how to add languages inside the system.
The question is how to show them on the front-end?

I downloaded Max-CLang http://www.redaxo.de/180-0-addon-detail ... don_id=581 AddOn, but there is no explanation how to use it really.

Any help?


Thanx!

Verfasst: 6. Nov 2009, 15:42
von Cheffchen
Hello,

Code: Alles auswählen

<?php
if ($REX['CUR_CLANG']==1)  {
    $lang .= '<img src="files/en1.gif" alt="English" />&nbsp;<a href="'.rex_getUrl($this->getValue("article_id"),"0").'"><img src="files/de2.gif" alt="Deutsch" /></a>';
    }
elseif ($REX['CUR_CLANG']==0)  {
    $lang .= '<a href="'.rex_getUrl($this->getValue("article_id"),"1").'"><img src="files/en2.gif" alt="English" /></a>&nbsp;<img src="files/de1.gif" alt="Deutsch" />';
    }
#usw.
Cheffchen