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.


_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to