Some editable objects in SPIP, such as sections and articles , have a language field stored in their corresponding SQL tables, which makes it possible to specify in which language they have been written (or to which language they belong).
We can find out the language of the current section or article by using the #LANG
tag within a RUBRIQUES
or ARTICLES
loop.
When the current section does not have a specific language assigned, then that of its parent section is returned, and failing that, the main language of the site.