Extension:LocalisationUpdate
LocalisationUpdate リリースの状態: 安定 |
|||
---|---|---|---|
実装 | Database | ||
説明 | ローカライズされたメッセージをできるだけ最新に保てるようにする | ||
作者 | Tom Maaswinkel (12wiki), Niklas Laxström (maintainer) | ||
最新バージョン | 1.4.0 (2016-10-13) | ||
互換性ポリシー | master | ||
MediaWiki | 1.30+ | ||
データベースの変更 | いいえ | ||
ライセンス | GNU General Public License 2.0 or later | ||
ダウンロード | Language Extension Bundle に含まれる
Readme |
||
例 | Wikipedia | ||
|
|||
translatewiki.net で翻訳を利用できる場合は、LocalisationUpdate 拡張機能の翻訳にご協力ください | |||
使用状況とバージョン マトリクスを確認してください。 | |||
問題点 | 未解決のタスク · バグを報告 |
LocalisationUpdate 拡張機能は、MediaWiki ソフトウェアをアップグレードすることなく、MediaWiki のシステム メッセージをいつでも更新できるようにします。
Contents
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内のLocalisationUpdate
という名前のディレクトリ内に配置します。
- 以下のコードを 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. 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
設定
- $wgLocalisationUpdateDirectory
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.
- $wgLocalisationUpdateRepository
Default repository source to fetch translation. Github is set to default repository. This is added with version 1.1.
- $wgLocalisationUpdateRepositories
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' => 'https://raw.github.com/wikimedia/mediawiki/master/%PATH%', 'extension' => 'https://raw.github.com/wikimedia/mediawiki-extensions-%NAME%/master/%PATH%', 'skin' => 'https://raw.github.com/wikimedia/mediawiki-skins-%NAME%/master/%PATH%' );
Example for local filesystem configuration
$wgLocalisationUpdateRepositories['local'] = array( 'mediawiki' => 'file:///resources/projects/mediawiki/master/%PATH%', 'extension' => 'file:///resources/projects/mediawiki-extensions/extensions/%NAME%/%PATH%', 'skin' => 'file:///resources/projects/mediawiki-skins/skins/%NAME%/%PATH%' );
使用法
Whenever you want to run an update, run php extensions/LocalisationUpdate/update.php
on the command line, or set up a cron job.
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
php maintenance/rebuildLocalisationCache.php --force
.スクリプトのパラメーター
--repoid
: Fetch translations from repositories identified by this
関連項目
- 地域化
- Technical details about how this runs on Wikimedia projects.
![]() | この拡張機能は 1 つ以上のウィキメディアのプロジェクトで使用されています。 これはおそらく、この拡張機能が安定していて高いトラフィックのウェブサイトでも十分に動作することを意味します。 この拡張機能がインストールされている場所を確認するには、ウィキメディアの設定ファイル CommonSettings.php および InitialiseSettings.php 内で、この拡張機能の名前を探してください。 特定のウィキにインストールされている拡張機能の完全な一覧は、そのウィキの Special:Version ページにあります。 |
- Pages using duplicate arguments in template calls
- Extensions bundled with MediaWiki 1.21/ja
- GPL licensed extensions/ja
- Stable extensions/ja
- Database extensions/ja
- Extensions in Wikimedia version control/ja
- MessageNotInMwNs extensions/ja
- LocalisationCacheRecache extensions/ja
- All extensions/ja
- Extensions used on Wikimedia/ja
- Localisation extensions/ja