Default language for my forum is Czech, all users use this. But I was trying to offer more languges (English, Slovak) and it works, all texts are fine except images/buttons. All of them are in Czech no matter which language I set in User Control Panel.
So I tracked source code and find following thing. In style.php file there is a section from line 92 to line 99 which start deciding language to modify CSS for using correct imageset
- Code: Select all
if (!$user)
{
$id = ($id) ? $id : $config['default_style'];
// Commented out because calls do not always include the SID anymore
// $recompile = false;
$user = array('user_id' => ANONYMOUS);
}
But if I print_r() content of $user it is empty before this check.
And lines 115 to 118 conatins this:
- Code: Select all
if ($user['user_id'] == ANONYMOUS)
{
$user['user_lang'] = $config['default_lang'];
}
So for the CSS purposes ANONYMOUS user is used and that's why all button are in default forum language. Can sombody confirm this? And how to fix it?
Note: Style changing is correct. Only deciding of imageset directory is wrong.

English |
French
