Extension:LocalisationUpdate/ja

この拡張機能ができること
This extension can update the localizations for MediaWiki messages at any time, without needing to upgrade the MediaWiki software.

インストール
1. LocalSettings.php に以下を追加します

2. Create a  folder in the installation directory, and be sure the server has permissions to write on it.

If localization updates don't seem to come through, you may need to run.

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

$wgLocalisationUpdateCoreURL、$wgLocalisationUpdateExtensionURL
Parameterized URLs to the repositories from which to retrieve localizations for core MediaWiki and extensions. They can be a http:// URL or an absolute path within the file system. They default to the MediaWiki Git repository and you should not change this unless you're using this performance improvement or otherwise know what you're doing.

$wgLocalisationUpdateRetryAttempts
LocalisationUpdate will retry to get the file contents (after a second) if it couldn't get the contents the first time. With $wgLocalisationUpdateRetryAttempts you can set the amount of attempts the script will make (defaults to 5).

更新の実行
Whenever you want to run an update, run  on the command line, or set up a cron job.

注記: LocalisationUpdate does not update automatically. If you want to update your localizations regularly, you need to set up a cron job yourself.

ローカルのチェックアウトのパフォーマンス改善
Update this section: The SVN repositories do no longer contain the current code. Change commands to point to the Git repositories and use a Git client instead of an SVN client.

You can make the update script faster by having it grab localizations from a local checkout. This requires that the SVN command line client be installed.
 * 1) Checkout MediaWiki core and extension from SVN with:
 * 2) Set   in LocalSettings.php
 * 3) Make sure that you run   before updating LocalisationUpdate
 * 1) Set   in LocalSettings.php
 * 2) Make sure that you run   before updating LocalisationUpdate
 * 1) Make sure that you run   before updating LocalisationUpdate

既知の問題点
If you enable this extension directly from the web installer, it doesn't configure the  variable, so if you don't configure it explicitly, it would throw an exception when viewing any page. You must manually configure that variable after installing the extension.

関連項目

 * Localisation/ja
 * Technical details about how this runs on Wikimedia projects.