The complete syntax of language codes

The complete syntax is as shown below:

  1. <:prefixe:code{param=value}|filtre{params}:>


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:

  1. 'creer_fichier'=>'Create the @fichier@ file?',

Calling with parameters

We could call a parameter as below:

  1. <: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:

  1. <:documentation:long_item_description|couper{80}:>

Author Mark Baber Published : Updated : 27/06/10

Translations : English, français, Nederlands