mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge remote-tracking branch 'remotes/Elsensee/ticket/11062' into develop-olympus
# By Oliver Schramm # Via Oliver Schramm * remotes/Elsensee/ticket/11062: [ticket/11062] If user's language is english there is no further work needed [ticket/11062] Load new strings from user's language file if provided
This commit is contained in:
commit
162ea10b6a
1 changed files with 8 additions and 1 deletions
|
@ -232,7 +232,14 @@ class install_update extends module
|
||||||
}
|
}
|
||||||
|
|
||||||
// What about the language file? Got it updated?
|
// What about the language file? Got it updated?
|
||||||
if (in_array('language/en/install.' . $phpEx, $this->update_info['files']))
|
if (in_array('language/' . $language . '/install.' . $phpEx, $this->update_info['files']))
|
||||||
|
{
|
||||||
|
$lang = array();
|
||||||
|
include($this->new_location . 'language/' . $language . '/install.' . $phpEx);
|
||||||
|
// this is the user's language.. just merge it
|
||||||
|
$user->lang = array_merge($user->lang, $lang);
|
||||||
|
}
|
||||||
|
if ($language != 'en' && in_array('language/en/install.' . $phpEx, $this->update_info['files']))
|
||||||
{
|
{
|
||||||
$lang = array();
|
$lang = array();
|
||||||
include($this->new_location . 'language/en/install.' . $phpEx);
|
include($this->new_location . 'language/en/install.' . $phpEx);
|
||||||
|
|
Loading…
Add table
Reference in a new issue