Added support for L10n on themes {__('Translate this!')}.
parent
3357286bba
commit
d6c8268b59
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue