locale = new Zend_Locale(); } /** * get already existing instance, make new instance or throw an exception * @return L10n */ public static function getInstance() { if (self::$instance === null) { self::$instance = new L10n(); } return self::$instance; } /** * magic __call dispatches all unknown methods to Zend_Locale * @param unknown_type $method * @param unknown_type $arguments */ public function __call($method, $arguments) { return call_user_func_array(array($this->locale, $method), $arguments); } }