SPIP

[ar] [ast] [bg] [br] [ca] [co] [cpf] [cs] [da] [de] [en] [eo] [es] [eu] [fa] [fon] [fr] [gl] [id] [it] [ja] [lb] [nl] [oc] [pl] [pt] [ro] [ru] [sk] [sv] [tr] [uk] [vi] [zh] Espace de traduction

Download

|traduire_nom_langue

June 2010

All the versions of this article:


|traduire_nom_langue is applied to the #LANG tag and returns a translation of the language code provided by that tag (fr, en, it, etc.) into that language.

Remarks: The translation of codes are made into the language that that code represents, and will follow the writing conventions of that language.

As such, "fr" will be translated as "français" with a lowercase "f", where as "es" will be translated as "Español" with an uppercase "E".

If you wish that this filter returns content with uniform cases for the first letter, as you may wish for section headings, for example, then you can pass the results to the PHP function |ucfirst.


Show the template of this page Site powered by SPIP | Translation area | Private area