Extension:LocalisationUpdate/da

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

Konfiguration
Directory to store cache files in, if not set then it uses default. 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:

$wgLocalisationUpdateDirectory is set to false by default.

Default repository source to fetch translation. Github is set to default repository. Dette blev tilføjet sammen med version 1.1.
 * $wgLocalisationUpdateRepository:

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.
 * $wgLocalisationUpdateRepositories:

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%' );

Usage
Whenever you want to run an update, run  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 @daily php /path/to/your/wiki/extensions/LocalisationUpdate/update.php --quiet
 * 1) Add the following line

Script parameters

 * : Fetch translations from repositories identified by this

Se også

 * Technical details about how this runs on Wikimedia projects.
 * Technical details about how this runs on Wikimedia projects.