Manual:$wgContLang/es

Detalles
The content language object is the Language object associated with the wiki being viewed. It is one of two global language objects ( is the other). Language objects represent the language used for incidental text, and also has some character encoding functions and other locale stuff. The language is defined in. Véase para más información.

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

Métodos usados a menudo
This is not an exhaustive list, view class above to see a complete listing.


 * : Get a namespace value by key in the current language. Ejemplos:  devuelve "MediaWiki",   devuelve "Categoría".


 * : Get a localized special page name by the English term. Ejemplo:  devuelve "Especial:upload".


 * : 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 time in seconds for output, using an appropriate unit (seconds, minutes, hours or days) according to the magnitude in question