From 4d68a7aa6ec9e512d65736c241079cd0942e6d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Harald=20S=C3=B8by?= Date: Wed, 9 Jul 2008 22:17:33 +0000 Subject: [PATCH] * Adding special page alias in Interwiki, InterwikiList, Maintenance, Mibbit, MultiUpload and NewestPages * Adding alias files for Interwiki, InterwikiList, Maintenance, Mibbit, MultiUpload and NewestPages to aliases.txt in Translate --- SpecialInterwiki.alias.php | 22 ++++++++++++++++++++++ SpecialInterwiki.php | 6 ++++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 SpecialInterwiki.alias.php diff --git a/SpecialInterwiki.alias.php b/SpecialInterwiki.alias.php new file mode 100644 index 00000000..ab091993 --- /dev/null +++ b/SpecialInterwiki.alias.php @@ -0,0 +1,22 @@ + array('Interwiki') +); + +/** Norwegian (Norsk (bokmål)) + * @author Jon Harald Søby + */ +$aliases['no'] = array( + 'Interwiki' => array('Interwiki') +); diff --git a/SpecialInterwiki.php b/SpecialInterwiki.php index 1a2528d4..3fc6d96c 100644 --- a/SpecialInterwiki.php +++ b/SpecialInterwiki.php @@ -25,10 +25,12 @@ $wgExtensionCredits['specialpage'][] = array( 'descriptionmsg' => 'interwiki-desc', ); -$wgExtensionMessagesFiles['Interwiki'] = dirname( __FILE__ ) . '/SpecialInterwiki.i18n.php'; +$dir = dirname(__FILE__) . '/'; +$wgExtensionMessagesFiles['Interwiki'] = $dir . 'SpecialInterwiki.i18n.php'; +$wgExtensionAliasesFiles['Interwiki'] = $dir . 'SpecialInterwiki.alias.php'; $wgSpecialPages['Interwiki'] = 'SpecialInterwiki'; -$wgAutoloadClasses['SpecialInterwiki'] = dirname( __FILE__ ) . '/SpecialInterwiki_body.php'; +$wgAutoloadClasses['SpecialInterwiki'] = $dir . 'SpecialInterwiki_body.php'; $wgAvailableRights[] = 'interwiki';