diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2014-07-21 18:43:51 +0400 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2014-07-21 18:43:51 +0400 |
commit | 73b1ef4b581624e20f4defc08d50f70d9c6395ed (patch) | |
tree | aee48e637ca8ac76f14f69b1bcd741d9c41dcc0b | |
parent | 20a657db05862da2a5cb53e5aa60fb9043ac710d (diff) |
refs #5863 do not load each plugin language file twice if lang = en which is also default language
-rw-r--r-- | core/Plugin/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Plugin/Manager.php b/core/Plugin/Manager.php index 67f3355ce8..8d3153377d 100644 --- a/core/Plugin/Manager.php +++ b/core/Plugin/Manager.php @@ -983,7 +983,7 @@ class Manager extends Singleton } // merge in specific language translations (to overwrite english defaults) - if (file_exists($defaultLangPath)) { + if ($defaultEnglishLangPath != $defaultLangPath && file_exists($defaultLangPath)) { $translations = $this->getTranslationsFromFile($defaultLangPath); $translationsLoaded = true; if (isset($translations[$pluginName])) { |