The function allows to put the dynamic data into the specified language block. The items to assign are
passed as the function parameters. They replace the formatting codes of the C sprinft()
function
inserted in the specified text. The exact result depends on the used I18n engine. If it is a default, procedural-based i18n
built into OPT, you may use this function only once on each language block, because the formatting codes are lost.
If you write your own engine, you may avoid this issue.
Example 2.9. apply() function
{* content of menu@welcome: Welcome %s, thanks for the visit. *} {apply($menu@welcome, 'Adam')} {* Will show us: Welcome Adam, thanks for the visit. *} <p>{$menu@welcome}</p>