[pmwiki-users] markup expression XL

SteP step.list+pmwiki at gmail.com
Thu Feb 4 17:18:09 CST 2010

I was in a situation where I needed a PTV translated. Using $[ ] did not work, i.e., $[ {$:status}].
So I came up with this markup expression:

#(:xl "some words" "some other words"...:)
$MarkupExpr['xl'] = 'MxXL($pagename, @$args, @$argp)';
function MxXL($pagename, $args, $opt='') { return implode(" ",array_map('XL',$args)); }

Nut I wonder if there is a built-in way to achieve the same result.
it seems to me that this would be is a fairly common need in an I18N site.

More information about the pmwiki-users mailing list