*** empty log message ***
This commit is contained in:
parent
5fc8fb9d42
commit
644d80d120
26 changed files with 245 additions and 196 deletions
|
@ -14,16 +14,17 @@
|
|||
* Author: Media Development Loan Fund
|
||||
* -------------------------------------------------------------
|
||||
*/
|
||||
function smarty_outputfiler_localizer_tra($matches)
|
||||
function smarty_postfiler_localizer_tra($matches)
|
||||
{
|
||||
foreach ($matches as $match) {
|
||||
$key = substr($match, 2, strpos(substr($match, 2), '#'));
|
||||
return tra(preg_replace('/%%/', '', $match));
|
||||
}
|
||||
}
|
||||
|
||||
function smarty_outputfilter_localizer($compiled, &$smarty)
|
||||
function smarty_postfilter_localizer($compiled, &$smarty)
|
||||
{
|
||||
$pattern = '/##.*##/U';
|
||||
return preg_replace_callback($pattern, 'smarty_outputfiler_localizer_tra', $compiled);
|
||||
$pattern = '/%%.*%%/U';
|
||||
return preg_replace_callback($pattern, 'smarty_postfiler_localizer_tra', $compiled);
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue