You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a {trans} block for Smarty, and I though it may be cool to accept positional parameters:
{trans "Jack" "dull boy"}All work and no play makes %s a %s.{/trans}
I imagine positional parameter to be given using integer keys in the $param parameter, nicely cohabiting with named parameter (strings key in the $param parameter).
But if it's not implemented, there's probably a good reason I miss ?
The text was updated successfully, but these errors were encountered:
This patch is what we've been using for some time for functions in Core Plus such as the date function, `{date $model.created}`.
It adds arguments assigned onto the parameter stack in the next index based on the order that they're set in.
This would fixsmarty-php#164
I'm working on a
{trans}
block for Smarty, and I though it may be cool to accept positional parameters:I imagine positional parameter to be given using integer keys in the
$param
parameter, nicely cohabiting with named parameter (strings key in the$param
parameter).But if it's not implemented, there's probably a good reason I miss ?
The text was updated successfully, but these errors were encountered: