| Re: EMLH - System & others |
| by zyspec on 2009/3/23 13:14:04 I don't really know anything ablut the EMLH - System but the code above doesn't set the $xoopsConfig['language'] variable if neither the _COOKIE or _GET are set... I think you could simplify what you want to: le="color: #000000"><?php $xoopsConfig['language'] = 'english'; //sets the default language to english if (isset( $_GET['easiestml_lang'] ) { switch ($_GET['easiestml_lang']){ case 'pt': $xoopsConfig['language'] = 'portuguese'; break; } }elseif (isset($_COOKIE['easiestml_lang'])){ switch ($_COOKIE['easiestml_lang']){ case 'pt': $xoopsConfig['language'] = 'portuguese'; break; } } You could simplify the code even further if you don't plan to include any languages other than 'potruguesebr' and 'english'. |
| EMLH - System & others |
| by DonCurioso on 2009/3/23 8:19:39 Hi, i follow all instructions to use EMLH, but it doesn´t translate system or modules. I´ve got all modules with english&spanish folders languages, but changes doesn´t happend... I put this code as Rplima suggest over Gijoe´s page (replacing for code i´ll need it), but site goes crazy. All tags were showed & i was to did a new installation for it. le="color: #000000"><?php if (isset( $_GET['easiestml_lang'] ) && isset($_COOKIE['easiestml_lang'])){ switch ($_GET['easiestml_lang']){ case 'pt':$xoopsConfig['language'] = 'portuguese'; break; case 'us':$xoopsConfig['language'] = 'english'; break; } }elseif(isset($_COOKIE['easiestml_lang'])){ switch ($_COOKIE['easiestml_lang']){ case 'pt':$xoopsConfig['language'] = 'portuguese'; break; case 'us':$xoopsConfig['language'] = 'english'; break; } }elseif(isset($_GET['easiestml_lang'])){ switch ($_GET['easiestml_lang']){ case 'pt':$xoopsConfig['language'] = 'portuguese'; break; case 'us':$xoopsConfig['language'] = 'english'; break; } } Any idea? Thanks in advance. |