From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:UILangCode and the translation is 25% complete.

Other languages:
English • ‎español • ‎русский • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
Release status: estable
Implementación Parser extension
Descripción Implements {{UILANGCODE}} magic word to get interface language of the current user
Autor(es) Niklas Laxström (Nikerabbittalk)
Última versión 1.0.0
Política de compatibilidad release branches
MediaWiki 1.29+
Cambios de la base de datos No
Licencia GNU General Public License 2.0 or later
Ejemplo Translatewiki.net
Translate the UILangCode extension if it is available at translatewiki.net
Verificar uso y versión de la matriz.

The UILangCode extension implements the {{UILANGCODE}} magic word to get interface language of the current user.


The extension can be retrieved directly from Git [?]:

  • Browse code
  • Some extensions have tags for stable releases.
  • Each branch is associated with a past MediaWiki release. There is also a "master" branch containing the latest alpha version (might require an alpha version of MediaWiki).

Extract the snapshot and place it in the extensions/UILangCode/ directory of your MediaWiki installation.

If you are familiar with git and have shell access to your server, you can also obtain the extension as follows:

cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/UILangCode.git


  • Descarga y extrae los archivos en el directorio «UILangCode» dentro del directorio extensions/ existente.
  • Añade el siguiente código a tu LocalSettings.php (preferiblemente al final):
    wfLoadExtension( 'UILangCode' );
  • Yes Listo – Navega a Special:Version en tu wiki para verificar que la apariencia se haya instalado correctamente.



This will make the parser cache vary per user language, greatly decreasing hit rate and increasing storage.

See also