Manual:$wgLanguageCode/es

Detalles
Código del idioma que usa el sitio. Normalmente el instalador se encarga de definirlo automáticamente. Puede verse una lista de códigos de idiomas en. El código debe expresarse en letras minúsculas usando un guión como separador. Ejemplos:,  ,  ,

Esta directiva especifica el idioma que utiliza el contenido de tus páginas, además de proporcionar el idioma predeterminado de la interfaz de tu wiki. Si bien los usuarios pueden cambiar el idioma de los mensajes de la interfaz en sus preferencias, los visitantes anónimos verán la interfaz de la wiki con el idioma que use el contenido. provides a way to auto-detect the language of anonymous users and let them choose their interface language without logging in.

If you change this after installation, in MediaWiki 1.18 and above you can clear the message cache by running. Be prepared to update all messages you have customized in your wiki, move your main page and other broken things before and after all caches has been regenerated.

In MediaWiki 1.8 or older, if you change this after installation, you should run the  script to rebuild the user interface messages (MediaWiki namespace). Otherwise, you will not see the interface in the new language, or a mix of the old and new languages. Note that running that script will override any custom interface messages you may have created.

gives the same value as, but is deprecated in favor of.

Change existing users' language settings
You can change existing users' language settings with the maintenance script. They will still be able to change their settings back unless you disable that option (see below).

Disable user selection of language
If you want to have your wiki in a certain language and not allow users to change this setting, there is a new variable in 1.16 and above, :