1
I'm trying to figure out how and where should I look for a language file if it exists. Let say if english is default then script has to look if another language is there. Something like this, but it doesn't seem to work. Where should I put it.
if ( file_exists("language/".$xoopsConfig['language']."/main.php") ) {
include_once "language/".$xoopsConfig['language']."/main.php";
} else {
include_once "language/english/main.php";
}
Thanks.
Gediminas