Manual:$wgContLang/fr

Détails
L’objet content language est l’objet Language associé au wiki visualisé. C’est l’un des deux objets du langage global ( est l’autre). Les objets language représentent le langage utilisé pour le texte accessoire, et ont aussi des fonctions de codage de caractères et d’autres trucs de locale. The language is defined in. See for more information.

Starting with MediaWiki 1.32, the content language is available as the  service and usage of the service is recommended over using the global.

Often used Methods
This is not an exhaustive list, view class above to see a complete listing.


 * Get a namespace value by key in the current language. Examples: returns "MediaWiki",  returns "Category".
 * Get a namespace value by key in the current language. Examples: returns "MediaWiki",  returns "Category".


 * Get a localized special page name by the English term. Example: returns "Special:upload".
 * Get a localized special page name by the English term. Example: returns "Special:upload".


 * Not implemented. Convert text to different variants of a language.
 * Not implemented. Convert text to different variants of a language.


 * Format a size in bytes for output, using an appropriate unit (B, KB, MB or GB) according to the magnitude in question
 * Format a size in bytes for output, using an appropriate unit (B, KB, MB or GB) according to the magnitude in question


 * Format a time in seconds for output, using an appropriate unit (seconds, minutes, hours or days) according to the magnitude in question
 * Format a time in seconds for output, using an appropriate unit (seconds, minutes, hours or days) according to the magnitude in question