Added support for L10n on themes {__('Translate this!')}.

master
Victor De la Rocha 2008-10-27 02:10:18 +00:00
parent 3357286bba
commit d6c8268b59
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class themes{
preg_match_all($patron,$this->output,$out); preg_match_all($patron,$this->output,$out);
foreach($out[1] as $k=>$v){ foreach($out[1] as $k=>$v){
$this->output = str_replace("{__('$v')}",$this->l10n->__($v),$this->output); $this->output = preg_replace("/{__\((?:'|\")$v(?:'|\")\)}/",__($v),$this->output);
} }
} }
} }