From MediaWiki.org
Jump to: navigation, search
This extension is bundled with MediaWiki 1.21 and above. Thus you do not have to download it again.
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png

Release status:Extension status stable

ImplementationTemplate:Extension#type Database
DescriptionTemplate:Extension#description Allows to keep the localized messages as up to date as possible
Author(s)Template:Extension#username Tom Maaswinkel (12wiki), Niklas Laxström (maintainer)
Latest versionTemplate:Extension#version 1.4.0 (2016-10-13)
MediaWikiTemplate:Extension#mediawiki 1.25+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download Included in Language Extension Bundle

ExampleTemplate:Extension#example Wikipedia
Hooks usedTemplate:Extension#hook

Translate the LocalisationUpdate extension if it is available at translatewiki.net

Check usage and version matrix.


Open tasks · Report a bug

The LocalisationUpdate extension allows to update the localizations for MediaWiki messages at any time, without needing to upgrade the MediaWiki software.


  • Download and place the file(s) in a directory called LocalisationUpdate in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'LocalisationUpdate' );
$wgLocalisationUpdateDirectory = "$IP/cache";
  • Create a cache folder in the installation directory, and be sure the server has permissions to write on it.
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.



Directory to store cache files in, if not set then it uses default $wgCacheDirectory. LocalisationUpdate requires some place to store files in to work; if neither $wgLocalisationUpdateDirectory nor $wgCacheDirectory is set, LocalisationUpdate's update.php script will not work.

$wgLocalisationUpdateDirectory is set to false by default.


Default repository source to fetch translation. Github is set to default repository. This is added with version 1.1.


Array of repositories URLs from which to retrieve localisations for core MediaWiki and extensions. Default is set to Github's MediaWiki Git repositories and you should not change this unless you're using this performance improvement or otherwise know what you're doing. This is added with version 1.1.

Example for using github

$wgLocalisationUpdateRepositories['github'] = array(
        'mediawiki' =>
        'extension' =>
        'skin' =>

Example for local filesystem configuration

$wgLocalisationUpdateRepositories['local'] = array(
        'mediawiki' =>
        'extension' =>
        'skin' =>


Whenever you want to run an update, run php extensions/LocalisationUpdate/update.php on the command line, or set up a cron job.

LocalisationUpdate does not update translations automatically

If you are on a unix-like system, you should add LocalisationUpdate to crontab:

crontab -e
# Add the following line
@daily php /path/to/your/wiki/extensions/LocalisationUpdate/update.php --quiet
If localization updates don't seem to come through, you may need to run php maintenance/rebuildLocalisationCache.php --force.

Script parameters[edit]

--repoid: Fetch translations from repositories identified by this

See also[edit]

Language: English  • 日本語