From ff12296627f555cb0bc670277366fc164ca620e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Wed, 5 Mar 2014 13:03:12 +0000 Subject: [PATCH] =?UTF-8?q?Ist=20ist=20jetzt=20m=C3=B6glich=20Phrasen=20in?= =?UTF-8?q?=20Addons=20zu=20definieren.=20Diese=20=C3=BCberschreiben=20ggf?= =?UTF-8?q?=20die=20Phrasen=20aus=20dem=20Core?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/phrasen.class.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/phrasen.class.php b/include/phrasen.class.php index 429e36196..70b438916 100644 --- a/include/phrasen.class.php +++ b/include/phrasen.class.php @@ -28,6 +28,7 @@ require_once(dirname(__FILE__).'/basis_db.class.php'); require_once(dirname(__FILE__).'/functions.inc.php'); require_once(dirname(__FILE__).'/sprache.class.php'); +require_once(dirname(__FILE__).'/addon.class.php'); class phrasen extends basis_db { @@ -71,6 +72,19 @@ class phrasen extends basis_db $filename = dirname(__FILE__).'/../locale/'.$sprache->locale.'/'.$module.'.php'; if(file_exists($filename)) include($filename); + + + $addons = new addon(); + + foreach($addons->aktive_addons as $addon) + { + $addon_locale_filename = dirname(__FILE__).'/../addons/'.$addon.'/locale/'.$sprache->locale.'/'.$module.'.php'; + + if(file_exists($addon_locale_filename)) + { + include($addon_locale_filename); + } + } $this->loadedModules[]=$module; }