Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
3.0.7-PL1
-
None
-
None
Description
At the fist page of the update process you are able to choose the language in a selector.
Once you change it, only the left menu change to the desire language, meanwhile the main block remain in a default language ( according the $_SERVER environment or use the first one in the language dir )
This works for me
In the install_update.php file
Before :
$user->setup('install');
|
Add :
|
// Try and load an appropriate language if required
|
if ($language = basename(request_var('language', '')))
|
{
|
// Not the english way, but works ;)
|
if (is_dir($phpbb_root_path . 'language/' . $language) && file_exists($phpbb_root_path . 'language/' . $language . "/common.$phpEx") )
|
{
|
$user->data['user_lang'] = $language;
|
$this->p_master->module_url .= "?language=$language";
|
}
|
}
|
|