From 3795160c370de2f7918989b0638131887c4625fa Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 24 Sep 2005 22:21:52 +0000 Subject: [PATCH] Added support for debug localzing --- localize.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/localize.php b/localize.php index 5550bdb..d1984e2 100644 --- a/localize.php +++ b/localize.php @@ -71,6 +71,11 @@ class Localize */ function string($key) { + if (defined('ISSO_LOCALIZE_DEBUG')) + { + return '[@"' . $key . '"]'; + } + if ($this->localtable["$key"]) { return $this->localtable["$key"]; @@ -88,6 +93,11 @@ class Localize */ function getlex($code) { + if (defined('ISSO_LOCALIZE_DEBUG')) + { + return '&[@"' . $code . '"]'; + } + if (isset($this->lextable["$code"])) { return $this->lextable["$code"]; -- 2.43.5