Language codes
Sections
Linguistic elements
The management and the creation of multilingual content is always a delicate thing to organise. We will see in this section how to manage the (…)
Articles
ecrire/lang
The localisation (language) files
Using the language codes
Any language idiom (externally defined character strings) can be referenced in a SPIP template file using this syntax: spip (…)
Language files
The language files are stored in the lang/ directories. These are PHP files named with a prefix and a language code: prefix_xx.php.
Content of (…)The syntax of language strings
Language-specific strings, known as "idioms" within SPIP, are the codes assigned to the existing translations in the files stored in the lang/ (…)
The complete syntax of language codes
The complete syntax is as shown below: spip <:prefixe:codeparam=value|filtreparams:>
Parameters
The language codes can receive (…)Using language codes in PHP
A function has been created in PHP to retrieve the translations of the language codes: _T.
It is used very simply as shown below: php (…)