Hi,
I made some changes in this hack and i would like to share with you.
With this changes, the hack translate the system and module language too.
To do this only insert in the include/commom.php this code:
Quote:
if (isset( $_GET['easiestml_lang'] ) && isset($_COOKIE['easiestml_lang'])){
switch ($_GET['easiestml_lang']){
case 'pt':$xoopsConfig['language'] = 'portuguesebr'; break;
case 'us':$xoopsConfig['language'] = 'english'; break;
}
}elseif(isset($_COOKIE['easiestml_lang'])){
switch ($_COOKIE['easiestml_lang']){
case 'pt':$xoopsConfig['language'] = 'portuguesebr'; break;
case 'us':$xoopsConfig['language'] = 'english'; break;
}
}elseif(isset($_GET['easiestml_lang'])){
switch ($_GET['easiestml_lang']){
case 'pt':$xoopsConfig['language'] = 'portuguesebr'; break;
case 'us':$xoopsConfig['language'] = 'english'; break;
}
}
before this:
Quote:
// #################### Include site-wide lang file ##################
if ( file_exists(XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/global.php") ) {
include_once XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/global.php";
} else {
include_once XOOPS_ROOT_PATH."/language/english/global.php";
}
Sorry my poor english, if have questions, please contact me by pm here