This page is a translated version of the page Extension:LocalisationUpdate and the translation is 2% complete.
Other languages:
Это расширение поставляется с MediaWiki 1.21 и выше. Таким образом, вам не нужно загружать его снова. Тем не менее, вы всё равно должны следовать другим инструкциям.
Справка по расширениям MediaWiki
OOjs UI icon advanced-invert.svg
Статус релиза: стабильный
Реализация База данных
Описание Allows to keep the localized messages as up to date as possible
Автор(ы) Tom Maaswinkel (12wiki), Niklas Laxström (maintainer)
Последняя версия 1.4.0 (2016-10-13)
Политика совместимости Master maintains backward compatibility.
MediaWiki 1.30+
Лицензия GNU General Public License 2.0 или позже
Загрузка Included in Language Extension Bundle

Пример Wikipedia
  • $wgLocalisationUpdateRepository
  • $wgLocalisationUpdateDirectory
  • $wgLocalisationUpdateHttpRequestOptions
  • $wgLocalisationUpdateRepositories
Переведите расширение LocalisationUpdate если оно доступно на translatewiki.net

Проверьте использование и версию.

Проблемы Открытые задачи · Сообщить об ошибке

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

  • Скачайте и распакуйте файл(ы) в папку с названием LocalisationUpdate в вашей папке extensions/.
  • Добавьте следующие строки в конец файла 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.
  • Yes Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.



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 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' =>


Версия MediaWiki:

Options to pass to Http::get(). Possible keys for the array: (see HttpRequestFactory::create()).

Timeout length in seconds or 'default'
Timeout for connection, in seconds (curl only) or 'default'
An array of key-value pairs or a url-encoded form data
The proxy to use. Otherwise it will use $wgHTTPProxy (if set) Otherwise it will use the environment variable "http_proxy" (if set)
Don't use any proxy at all. Takes precedence over proxy value(s).
Verify hostname against certificate
Verify SSL certificate
Provide CA information
Maximum number of redirects to follow (defaults to 5)
Whether to follow redirects (defaults to false). Note: this should only be used when the target URL is trusted, to avoid attacks on intranet services accessible by HTTP.
A user agent, if you want to override the default MediaWiki/$wgVersion
A \Psr\Logger\LoggerInterface instance for debug logging
Username for HTTP Basic Authentication
Password for HTTP Basic Authentication
Information about the original request (as a WebRequest object or an associative array with 'ip' and 'userAgent').

Example for using GitHub with HTTP Basic Authentication

$wgLocalisationUpdateHttpRequestOptions = array(
	'followRedirects' => true,
	'username' => 'YOUR_GITHUB_USERNAME',


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

--repoid: Fetch translations from repositories identified by this

См. также