Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-9537

Update ignores the selected language

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 3.0.7-PL1
    • None
    • Update system
    • 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";
      			}
      		}
      
      

      Attachments

        Activity

          People

            nickvergessen Joas Schilling
            leviatan21 leviatan21 [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: