Github mirror of MediaWiki extension LocalisationUpdate - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
转到文件
Umherirrender aa773792a0 Use HookHandlers for core hooks
Bug: T271018
Change-Id: I0d39f6dfd693608e67883a2b6eeaeb8a855b1695
2023-10-01 16:31:54 +02:00
.phan Fix few excluded errors in PHPCS 2021-02-03 09:39:47 +01:00
i18n Localisation updates from https://translatewiki.net. 2023-09-18 08:43:54 +02:00
includes Use HookHandlers for core hooks 2023-10-01 16:31:54 +02:00
tests/phpunit tests: Make PHPUnit data providers static 2023-05-20 12:22:53 +02:00
.eslintrc.json build: Updating eslint-config-wikimedia to 0.19.0 2021-03-14 00:47:10 +00:00
.gitignore build: Install eslint 2019-05-06 16:32:28 -07:00
.gitreview Whoops, track not trace 2016-10-24 17:02:51 -07:00
.phpcs.xml Fix few excluded errors in PHPCS 2021-02-03 09:39:47 +01:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.3.0 2018-08-19 14:12:02 +00:00
COPYING Provide missing license file 2016-03-17 23:32:08 +01:00
Gruntfile.js build: Updating dependencies 2021-01-30 03:48:58 +00:00
README require_once - wfLoadExtension() 2017-06-12 00:36:38 +01:00
composer.json build: Updating dependencies 2023-04-29 06:42:58 +00:00
extension.json Use HookHandlers for core hooks 2023-10-01 16:31:54 +02:00
package-lock.json build: Updating grunt-banana-checker to 0.11.0 2023-06-01 19:23:45 +00:00
package.json build: Updating grunt-banana-checker to 0.11.0 2023-06-01 19:23:45 +00:00
update.php Replace deprecated Language::getLocalisationCache 2023-01-28 01:43:44 +00:00

README

== Localisation Update ==
Localisation Update extension can update the MediaWiki messages at any time,
without needing to upgrade the MediaWiki software.

For more information see:
 https://www.mediawiki.org/wiki/Extension:LocalisationUpdate

== Installation ==
1. Add the following to LocalSettings.php of your MediaWiki setup:

 wfLoadExtension( 'LocalisationUpdate' );
 $wgLocalisationUpdateDirectory = "$IP/cache";

2. Create a cache 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,

 php maintenance/rebuildLocalisationCache.php --force.

3. Whenever you want to run an update, run,

 php extensions/LocalisationUpdate/update.php

For detailed help, see:

 php extensions/LocalisationUpdate/update.php --help

4. If you are on 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