The complete syntax of language codes

The complete syntax is as shown below:



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:


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:


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

Translations : English, français