From 21e01bc4fbb668dcd46c468e4afc1af8b89163ab Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 24 Sep 2005 17:19:19 +0000 Subject: [PATCH] Added init_with_table() --- localize.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/localize.php b/localize.php index dc4ab0f..e3a2daf 100644 --- a/localize.php +++ b/localize.php @@ -40,12 +40,35 @@ $OBJ = 'lang'; */ class Localize { + /** + * Localization table + * @var array + */ + var $localtable = array(); + /** * The lex lookup table * @var array */ var $lextable = array(); + /** + * Initializes the localization system with a table + * + * @param array Localization table + */ + function init_with_table($table) + { + $this->localtable = $table; + } + + /** + * Returns a localized string from the table + * + * @param str Text to localize + * + * @return str Localized string + */ function string($key) { return $key; -- 2.43.5