It is quite simple, you define a variational function as follows:
function myGettext($id)
{
return vsprintf(gettext($id), array_slice(func_get_args(), 1));
}
Now execution myGettext('%u %s in a %s', 3, 'monkeys', 'tree')will return the expected string with the replacement arguments remaining arguments. You obviously also need to implement a multiple access function that calls instead ngettext().
poEdit, , , , , , , , (. ).
, !