From d6c8268b59c196a30da1610b87f8df9314fc05ec Mon Sep 17 00:00:00 2001 From: Victor De la Rocha Date: Mon, 27 Oct 2008 02:10:18 +0000 Subject: [PATCH] Added support for L10n on themes {__('Translate this!')}. --- classes/themes.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/themes.class.php b/classes/themes.class.php index 40709ae..c10857e 100644 --- a/classes/themes.class.php +++ b/classes/themes.class.php @@ -107,7 +107,7 @@ class themes{ preg_match_all($patron,$this->output,$out); foreach($out[1] as $k=>$v){ - $this->output = str_replace("{__('$v')}",$this->l10n->__($v),$this->output); + $this->output = preg_replace("/{__\((?:'|\")$v(?:'|\")\)}/",__($v),$this->output); } } }