The Arcive of vBulletin Modifications Site. |
|
[MOD] Multilanguage v2.6.1 Details »»
|
|||||||||||||||||||||||||
Tihis is a simple code for multilanguage support:
Open Arcade.php Search this code: Code:
$langfile="lang_Arcade_".$ibforums->langid; replace with: Code:
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";
}
![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
nice idea to "auto-select" it
![]() but this needs to be adapted in some other places, too. Would you mind if I try to put this completely in v2.6.2+ ? |
|
#3
|
|||
|
|||
|
It looks like this mod only works with the browser auto detect the default language, I would prefer if it works with VB especially the quick language selector, that would be perfect for that
because most the forum nowaday provide multi-languages for users to choose in the forum rather than the browser setting. Anyway, its a great mod. Thank you for sharing.
|
![]() |
|
|