The complete syntax is as shown below:
<:prefixe:code{param=value}|filtre{params}:>
Parameters
The language codes can receive parameters which will be inserted into the values at the time of translation. The parameters are then written in the language files between at (@
) signs.
A language code might therefore be:
'creer_fichier'=>'Create the @fichier@ file?',
Calling with parameters
We could call a parameter as below:
<:documentation:creer_fichier{fichier=readme.txt}:>
Filtering language codes
It’s not a commonly used practice, but it is possible to pass language codes through filters just as if they were SPIP tags, for example:
<:documentation:long_item_description|couper{80}:>