Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-11062

In Automatic Update, new language strings from install.php are only loaded from English

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.13-RC1
    • 3.0.11-RC2
    • Language pack
    • None

      See the attachment. The new lines are not localised even when there is a localised version available. (internation support sites add their language updates to the updater)
      Bug created upon request of Bantu.

      It's caused by this code:

      Caused by this code in install/install_update.php from line 234:

      			
      			// What about the language file? Got it updated?
      			if (in_array('language/en/install.' . $phpEx, $this->update_info['files']))
      			{
      				$lang = array();
      				include($this->new_location . 'language/en/install.' . $phpEx);
      				// only add new keys to user's language is english
      				$new_keys = array_diff(array_keys($lang), array_keys($user->lang));
      				foreach ($new_keys as $i => $new_key)
      				{
      					$user->lang[$new_key] = $lang[$new_key];
      				}
      			}
      

            EXreaction EXreaction [X] (Inactive)
            Derky Derky
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: