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

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

    Details

      Description

      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:
      Unable to find source-code formatter for language: php. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
      			
      			// 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];
      				}
      			}
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: