[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Directory to store serialized cache files in. Defaults to $wgCacheDirectory. 5 * It's OK to share this directory among wikis as long as the wiki you run 6 * update.php on has all extensions the other wikis using the same directory 7 * have. 8 * NOTE: If this variable and $wgCacheDirectory are both false, this extension 9 * WILL NOT WORK. 10 */ 11 $wgLocalisationUpdateDirectory = false; 12 13 /** 14 * Default repository source to use. 15 * @since 2014-03 16 */ 17 $wgLocalisationUpdateRepository = 'github'; 18 19 /** 20 * Available repository sources. 21 * @since 2014-03 22 */ 23 $wgLocalisationUpdateRepositories = array(); 24 $wgLocalisationUpdateRepositories['github'] = array( 25 'mediawiki' => 26 'https://raw.github.com/wikimedia/mediawiki-core/master/%PATH%', 27 'extension' => 28 'https://raw.github.com/wikimedia/mediawiki-extensions-%NAME%/master/%PATH%', 29 ); 30 31 // Example for local filesystem configuration 32 #$wgLocalisationUpdateRepositories['local'] = array( 33 # 'mediawiki' => 34 # 'file:///resources/projects/mediawiki/master/%PATH%', 35 # 'extension' => 36 # 'file:///resources/projects/mediawiki-extensions/extensions/%NAME%/%PATH%', 37 #); 38 39 $wgExtensionCredits['other'][] = array( 40 'path' => __FILE__, 41 'name' => 'LocalisationUpdate', 42 'author' => array( 'Tom Maaswinkel', 'Niklas Laxström', 'Roan Kattouw' ), 43 'version' => '1.3.0', 44 'url' => 'https://www.mediawiki.org/wiki/Extension:LocalisationUpdate', 45 'descriptionmsg' => 'localisationupdate-desc', 46 ); 47 48 $wgHooks['LocalisationCacheRecache'][] = 'LocalisationUpdate::onRecache'; 49 $wgHooks['LocalisationCacheRecacheFallback'][] = 'LocalisationUpdate::onRecacheFallback'; 50 51 $dir = __DIR__; 52 $wgMessagesDirs['LocalisationUpdate'] = __DIR__ . '/i18n'; 53 $wgExtensionMessagesFiles['LocalisationUpdate'] = "$dir/LocalisationUpdate.i18n.php"; 54 55 require "$dir/Autoload.php";
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |