1
Hello,
I have a problem with installing the XOOPS Multilanguage hack by marcan.
I followed the instructions given in ReadMe.txt and edited the file
module.textsanitizer.php as follows:
Quote:
// MT hack added by hsalazar //
// multi-lingual hack by chad
global $xoopsConfig;
// if english show english else show nothing
$patterns[] = "/\[en](.*)\[\/en\]/sU";
if ($xoopsConfig['language'] == "english") {
$replacements[] = '\\1';
} else {
$replacements[] = "";
}
// if dutch show dutch else show nothing
$patterns[] = "/\[nl](.*)\[\/nl\]/sU";
if ($xoopsConfig['language'] == "nederlands") {
$replacements[] = '\\1';
} else {
$replacements[] = "";
}
// if french show french else show nothing
$patterns[] = "/\[fr](.*)\[\/fr\]/sU";
if ($xoopsConfig['language'] == "french") {
$replacements[] = '\\1';
} else {
$replacements[] = "";
}
// if italian show italian else show nothing
$patterns[] = "/\[it](.*)\[\/it\]/sU";
if ($xoopsConfig['language'] == "italian") {
$replacements[] = '\\1';
} else {
$replacements[] = "";
}
// end multi-lingual hack
// MT hack added by hsalazar //
So, as you can see, I would like to use the languages English, French, Dutch and Italian.
You could find the result at
http://outdoors.jongerenprojecten.nl/ (default in English). Nevertheless I encounter one
big problem. When a user clicks one of the apropriate flags of the different countries, one does not see the website in the chosen language.
Could anyone help me solving this problem?
Thanks in advance,
yours sincerely,
Joris,
webmaster Jongerenprojecten.nl