Load English first, then merge lang ontop

It's English ontop of English for now, but 2nd include can be changed in
the code here and soon to be set via the UI.
This commit is contained in:
Matt Pass
2014-08-21 14:30:43 +01:00
parent 0d4ca6a483
commit f96651b9e8

View File

@@ -40,7 +40,12 @@ If ($ICEcoderUserSettings["versionNo"] != $ICEcoderSettings["versionNo"]) {
$ICEcoder = $ICEcoderSettings + $ICEcoderUserSettings;
// Include language file
// Load English first as foundation
include(dirname(__FILE__)."/../lang/english.php");
$englishText = $text;
// Load chosen language ontop to replace English
include(dirname(__FILE__)."/../lang/english.php");
$text = array_merge($englishText, $text);
$_SESSION['text'] = $text;
// Login not required or we're in demo mode and have password set in our settings, log us straight in