Fix internationalization

This commit is contained in:
Daniel Kraus
2012-05-20 13:14:12 +02:00
parent e8deb00d7c
commit 20e5a284cf
3 changed files with 11 additions and 14 deletions

View File

@ -29,10 +29,6 @@
};
class LinkTitles {
/// Default setup function.
public static function Setup( &$parser ) {
return true;
}
/// This function is hooked to the ArticleSave event.
/// It will be called whenever a page is about to be

View File

@ -5,7 +5,7 @@
$messages = array();
$messages['en'] = array(
'linktitles-desc' => 'Automatically adds links to existing pages when a page is saved.',
'linktitles-desc' => 'Automatically adds links to existing pages whenever a page is saved.',
);
$messages['de'] = array(

View File

@ -23,6 +23,14 @@
die( 'Not an entry point.' );
}
/*
error_reporting(E_ALL);
ini_set('display_errors', 'Off');
ini_set('error_log', 'php://stderr');
$wgMainCacheType = CACHE_NONE;
$wgCacheDirectory = false;
*/
$wgExtensionCredits['parserhook'][] = array(
'path' => __FILE__,
'name' => 'LinkTitles',
@ -33,17 +41,10 @@
);
$wgExtensionMessagesFiles['LinkTitles'] = dirname( __FILE__ ) . '/LinkTitles.i18n.php';
$wgAutoloadClasses['LinkTitles'] = dirname(__FILE__) . '/LinkTitles.body.php';
$wgAutoloadClasses['LinkTitlesFetcher'] = dirname(__FILE__) . '/LinkTitlesFetcher.body.php';
// Define a setup function
$wgHooks['ParserFirstCallInit'][] = 'LinkTitles::Setup';
$wgHooks['ArticleSave'][] = 'LinkTitles::onArticleSave';
// error_reporting(E_ALL);
// ini_set('display_errors', 'Off');
// ini_set('error_log', 'php://stderr');
// Hook up our custom function to the ArticleSave event.
$wgHooks['ArticleSave'][] = 'LinkTitles::onArticleSave';
// vim: ts=2:sw=2:noet