1
xlanguage suddenly not working in my site..
my environment_________________
xLanguage 3.02
XOOPS 2.5.0
PHP Version
5.3.4
mySQL Version
5.0.91-community
all the language tags [] are displayed in my site
as example
[en]name[en] [my]nama[/my]
instead of nama
as far as i know there is no file to be modified to make xlanguage works in xoops 2.5
in old xoops and xlanguage version we need to put some line in include/common.php
i tried to paste this code in include/common.php somewhere in line 200
include_once XOOPS_ROOT_PATH. '/modules/xlanguage/api.php';
if ( !
@include_once XOOPS_ROOT_PATH . "/language/" . $xoopsConfig['language'] . "/global.php" ) {
include_once XOOPS_ROOT_PATH . "/language/english/global.php";
}
and the code works..site display the text but the default language is english instead of malay
(my default language setup in pref is malay)
i tried to changed this line
include_once XOOPS_ROOT_PATH . "/language/english/global.php";
to
include_once XOOPS_ROOT_PATH . "/language/" . $xoopsConfig['language'] . "/global.php";
but the default of my language is still english
i have cleared all cache and i still have the same problem