X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fclasses%2Fmain%2Flanguage%2Fclass_LanguageSystem.php;h=aebd6a85816957033d79fd0533ab0d21b7e1e0ca;hb=9879bd477f9a6ea055ac4803e6a2ea9ae56f7071;hp=fd082dd0b55e993bcd04f3bbdf0ef9104f6c4f9f;hpb=0cd57c3885f00ad77fc599e53ed2f2d5e7ac267f;p=core.git diff --git a/inc/classes/main/language/class_LanguageSystem.php b/inc/classes/main/language/class_LanguageSystem.php index fd082dd0..aebd6a85 100644 --- a/inc/classes/main/language/class_LanguageSystem.php +++ b/inc/classes/main/language/class_LanguageSystem.php @@ -5,7 +5,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -36,12 +36,12 @@ class LanguageSystem extends BaseFrameworkSystem implements ManageableLanguage, /** * The array-object for all language strings */ - private $langStrings = null; + private $langStrings = NULL; /** * An instance of this class */ - private static $thisInstance = null; + private static $selfInstance = NULL; /** * Protected constructor @@ -51,10 +51,6 @@ class LanguageSystem extends BaseFrameworkSystem implements ManageableLanguage, protected function __construct () { // Call parent constructor parent::__construct(__CLASS__); - - // Clean up a little - $this->removeNumberFormaters(); - $this->removeSystemArray(); } /** @@ -69,7 +65,7 @@ class LanguageSystem extends BaseFrameworkSystem implements ManageableLanguage, * @throws LanguagePathReadProtectedException If $languageBasePath is * read-protected */ - public final static function createLanguageSystem ($languageBasePath) { + public static final function createLanguageSystem ($languageBasePath) { // Get a new instance $langInstance = new LanguageSystem(); @@ -95,10 +91,10 @@ class LanguageSystem extends BaseFrameworkSystem implements ManageableLanguage, $langInstance->initLanguageStrings(); // Set language code from default config - $langInstance->setLanguageCode(FrameworkConfiguration::getInstance()->readConfig('default_lang')); + $langInstance->setLanguageCode(FrameworkConfiguration::getSelfInstance()->getConfigEntry('default_lang')); // Remember this instance - self::$thisInstance = $langInstance; + self::$selfInstance = $langInstance; // Return the prepared instance return $langInstance; @@ -107,10 +103,10 @@ class LanguageSystem extends BaseFrameworkSystem implements ManageableLanguage, /** * Singleton getter for this instance * - * @return $thisInstance An instance of this class + * @return $selfInstance An instance of this class */ - public final static function getInstance () { - return self::$thisInstance; + public static final function getSelfInstance () { + return self::$selfInstance; } /**