robb9
07-14-2007, 09:56 AM
Tihis is a simple code for multilanguage support:
Open Arcade.php
Search this code:
$langfile="lang_Arcade_".$ibforums->langid;
replace with:
if ( (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) && (stristr($_SERVER["HTTP_ACCEPT_LANGUAGE"], "it"))) {
$langfile="lang_Arcade_it";
}
else if ( (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) && (stristr($_SERVER["HTTP_ACCEPT_LANGUAGE"], "de")))
{
$langfile="lang_Arcade_de";
}
else if ( (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) && (stristr($_SERVER["HTTP_ACCEPT_LANGUAGE"], "fr")))
{
$langfile="lang_Arcade_fr";
}
else {
$langfile="lang_Arcade_en";
}
that's all. :)
Open Arcade.php
Search this code:
$langfile="lang_Arcade_".$ibforums->langid;
replace with:
if ( (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) && (stristr($_SERVER["HTTP_ACCEPT_LANGUAGE"], "it"))) {
$langfile="lang_Arcade_it";
}
else if ( (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) && (stristr($_SERVER["HTTP_ACCEPT_LANGUAGE"], "de")))
{
$langfile="lang_Arcade_de";
}
else if ( (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) && (stristr($_SERVER["HTTP_ACCEPT_LANGUAGE"], "fr")))
{
$langfile="lang_Arcade_fr";
}
else {
$langfile="lang_Arcade_en";
}
that's all. :)