From 8f42290df53637448894326a2745a38a6ca3ada7 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 11 Nov 2006 23:23:54 +0000 Subject: [PATCH] Removing the localization framework --- localize.php | 161 --------------------------------------------------- 1 file changed, 161 deletions(-) delete mode 100644 localize.php diff --git a/localize.php b/localize.php deleted file mode 100644 index cd5744a..0000000 --- a/localize.php +++ /dev/null @@ -1,161 +0,0 @@ -registry =& $registry; - } - - // ################################################################### - /** - * Initializes the localization system with a table - * - * @param array Localization table - */ - public function init_with_table($table) - { - $this->localtable = $table; - } - - // ################################################################### - /** - * Returns a localized string from the table - * - * @param string Text to localize - * - * @return string Localized string - */ - public function string($key) - { - if (defined('ISSO_LOCALIZE_DEBUG')) - { - return '[@"' . $key . '"]'; - } - - if (isset($this->localtable["$key"])) - { - return $this->localtable["$key"]; - } - - return $key; - } - - // ################################################################### - /** - * Returns a value from the lex table for a specific code - * - * @param string Lex code - * - * @return string Localized string - */ - public function getlex($code) - { - if (defined('ISSO_LOCALIZE_DEBUG')) - { - return '&[@"' . $code . '"]'; - } - - if (isset($this->lextable["$code"])) - { - return $this->lextable["$code"]; - } - - trigger_error('Lex code `' . $code . '` did not appear in the lex table'); - } - - // ################################################################### - /** - * Sets a value in the lex table for easy access of strings - * that are commonly used - * - * @param string Lex code - * @param string Text equiv - */ - public function setlex($code, $value) - { - if (isset($this->lextable["$code"])) - { - trigger_error('Cannot set lex `' . $code . '` : value already exists'); - } - - $this->lextable["$code"] = $value; - } -} - -/*=====================================================================*\ -|| ################################################################### -|| # $HeadURL$ -|| # $Id$ -|| ################################################################### -\*=====================================================================*/ -?> \ No newline at end of file -- 2.22.5