r40488 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40487‎ | r40488 | r40489 >
Date:14:09, 5 September 2008
Author:siebrand
Status:old
Tags:
Comment:
* Add/update i18n for special pages
* Add support for localisation in Translate
* Other fixes
** Piwiki: change special page alias loading method; removed obsolete code
** RandomInCategory/ReplaceText: reduced dirname() usage
** RefreshSpecial: updated a few messages; add support to Translate
** SpecialForm: change special page alias loading method; removed obsolete code; removed backward compatibility. Code can be found in branch.
** StalePages: Removed backward compatibility. Code can be found in branch.
** WhoIsWatching: added descriptionmsg, change special page alias loading method; removed obsolete code
Modified paths:
  • /trunk/extensions/Patroller/Patroller.alias.php (added) (history)
  • /trunk/extensions/Patroller/Patroller.php (modified) (history)
  • /trunk/extensions/Piwik/Piwik.alias.php (added) (history)
  • /trunk/extensions/Piwik/Piwik.php (modified) (history)
  • /trunk/extensions/Player/Player.alias.php (added) (history)
  • /trunk/extensions/Player/Player.php (modified) (history)
  • /trunk/extensions/ProfileMonitor/ProfileMonitor.alias.php (added) (history)
  • /trunk/extensions/ProfileMonitor/ProfileMonitor.php (modified) (history)
  • /trunk/extensions/RandomInCategory/SpecialRandomincategory.alias.php (added) (history)
  • /trunk/extensions/RandomInCategory/SpecialRandomincategory.php (modified) (history)
  • /trunk/extensions/RefreshSpecial/RefreshSpecial.alias.php (added) (history)
  • /trunk/extensions/RefreshSpecial/RefreshSpecial.i18n.php (modified) (history)
  • /trunk/extensions/RefreshSpecial/RefreshSpecial.php (modified) (history)
  • /trunk/extensions/ReplaceText/ReplaceText.alias.php (added) (history)
  • /trunk/extensions/ReplaceText/ReplaceText.php (modified) (history)
  • /trunk/extensions/SemanticDrilldown/includes/SD_GlobalFunctions.php (modified) (history)
  • /trunk/extensions/SemanticDrilldown/languages/SD_Aliases.php (added) (history)
  • /trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php (modified) (history)
  • /trunk/extensions/SemanticForms/languages/SF_Aliases.php (added) (history)
  • /trunk/extensions/SpecialForm/SpecialForm.alias.php (added) (history)
  • /trunk/extensions/SpecialForm/SpecialForm.body.php (modified) (history)
  • /trunk/extensions/SpecialForm/SpecialForm.setup.php (modified) (history)
  • /trunk/extensions/StalePages/StalePages.alias.php (added) (history)
  • /trunk/extensions/StalePages/StalePages.php (modified) (history)
  • /trunk/extensions/TemplateLink/TemplateLink.alias.php (added) (history)
  • /trunk/extensions/TemplateLink/TemplateLink.setup.php (modified) (history)
  • /trunk/extensions/TodoTasks/SpecialTaskList.alias.php (added) (history)
  • /trunk/extensions/TodoTasks/SpecialTaskList.php (modified) (history)
  • /trunk/extensions/Translate/aliases.txt (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)
  • /trunk/extensions/UserMerge/UserMerge.alias.php (added) (history)
  • /trunk/extensions/UserMerge/UserMerge.php (modified) (history)
  • /trunk/extensions/Vote/Vote.alias.php (added) (history)
  • /trunk/extensions/Vote/Vote.php (modified) (history)
  • /trunk/extensions/WatchSubpages/WatchSubpages.alias.php (added) (history)
  • /trunk/extensions/WatchSubpages/WatchSubpages.php (modified) (history)
  • /trunk/extensions/WhatIsMyIP/WhatIsMyIP.alias.php (added) (history)
  • /trunk/extensions/WhatIsMyIP/WhatIsMyIP.php (modified) (history)
  • /trunk/extensions/WhiteList/SpecialWhitelistEdit.alias.php (added) (history)
  • /trunk/extensions/WhiteList/SpecialWhitelistEdit.php (modified) (history)
  • /trunk/extensions/WhoIsWatching/SpecialWhoIsWatching.i18n.php (modified) (history)
  • /trunk/extensions/WhoIsWatching/SpecialWhoIsWatching.php (modified) (history)
  • /trunk/extensions/WhoIsWatching/SpecialWhoIsWatching_body.php (modified) (history)
  • /trunk/extensions/WhosOnline/WhosOnline.alias.php (added) (history)
  • /trunk/extensions/WhosOnline/WhosOnline.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Vote/Vote.php
@@ -23,7 +23,8 @@
2424 );
2525
2626 $dir = dirname(__FILE__) . '/';
27 -$wgExtensionMessagesFiles['SpecialVote'] = $dir . 'Vote.i18n.php';
 27+$wgExtensionMessagesFiles['Vote'] = $dir . 'Vote.i18n.php';
 28+$wgExtensionAliasesFiles['Vote'] = $dir . 'Vote.alias.php';
2829 $wgAutoloadClasses['SpecialVote'] = $dir . 'Vote.page.php';
2930 $wgSpecialPages['Vote'] = 'SpecialVote';
3031 $wgExtensionFunctions[] = 'efVote';
Index: trunk/extensions/Vote/Vote.alias.php
@@ -0,0 +1,11 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ */
 7+
 8+$aliases = array();
 9+
 10+$aliases['en'] = array(
 11+ 'Vote' => array( 'Vote' ),
 12+);
Property changes on: trunk/extensions/Vote/Vote.alias.php
___________________________________________________________________
Added: svn:eol-style
113 + native
Added: svn:keywords
214 + Id
Index: trunk/extensions/WhosOnline/WhosOnline.alias.php
@@ -0,0 +1,11 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ */
 7+
 8+$aliases = array();
 9+
 10+$aliases['en'] = array(
 11+ 'WhosOnline' => array( 'WhosOnline' ),
 12+);
Property changes on: trunk/extensions/WhosOnline/WhosOnline.alias.php
___________________________________________________________________
Added: svn:eol-style
113 + native
Added: svn:keywords
214 + Id
Index: trunk/extensions/WhosOnline/WhosOnline.php
@@ -14,7 +14,7 @@
1515
1616 $wgExtensionCredits['other'][] = array(
1717 'name' => 'WhosOnline',
18 - 'version' => '1.2',
 18+ 'version' => '1.3',
1919 'author' => 'Maciej Brencz',
2020 'description' => 'Creates list of logged-in & anons currently online',
2121 'descriptionmsg' => 'whosonline-desc',
@@ -24,6 +24,7 @@
2525 $dir = dirname(__FILE__) . '/';
2626 $wgAutoloadClasses['SpecialWhosOnline'] = $dir . 'WhosOnlineSpecialPage.php';
2727 $wgExtensionMessagesFiles['WhosOnline'] = $dir . 'WhosOnline.i18n.php';
 28+$wgExtensionAliasesFiles['WhosOnline'] = $dir . 'WhosOnline.alias.php';
2829 $wgSpecialPages['WhosOnline'] = 'SpecialWhosOnline';
2930
3031 // update online data
@@ -52,4 +53,4 @@
5354 wfProfileOut(__METHOD__);
5455
5556 return true;
56 -}
\ No newline at end of file
 57+}
Index: trunk/extensions/Piwik/Piwik.alias.php
@@ -0,0 +1,14 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$aliases = array();
 11+
 12+/** English */
 13+$aliases['en'] = array(
 14+ 'Piwik' => array( 'Piwik' ),
 15+);
Property changes on: trunk/extensions/Piwik/Piwik.alias.php
___________________________________________________________________
Added: svn:eol-style
116 + native
Added: svn:keywords
217 + Id
Index: trunk/extensions/Piwik/Piwik.php
@@ -1,6 +1,6 @@
22 <?php
33 /**
4 - * Parser hook extension to add a <randomimage> tag
 4+ * Inserts Piwik script into MediaWiki pages for tracking and adds some stats
55 *
66 * @addtogroup Extensions
77 * @author Isb1009 <isb1009 at gmail dot com>
@@ -83,21 +83,8 @@
8484 $dir = dirname(__FILE__) . '/';
8585 $wgAutoloadClasses['Piwik'] = $dir . 'Piwik_specialpage.php'; # Tell MediaWiki to load the extension body.
8686 $wgExtensionMessagesFiles['Piwik'] = $dir . 'Piwik.i18n.php';
 87+$wgExtensionAliasesFiles['Piwik'] = $dir . 'Piwik.alias.php';
8788 $wgSpecialPages['Piwik'] = 'Piwik'; # Let MediaWiki know about your new special page.
88 -$wgHooks['LanguageGetSpecialPageAliases'][] = 'Piwik'; # Add any aliases for the special page.
8989
90 -function Piwik(&$specialPageArray, $code) {
91 - # The localized title of the special page is among the messages of the extension:
92 -
93 - wfLoadExtensionMessages('Piwik');
94 - $text = wfMsg('piwik');
95 -
96 - # Convert from title in text form to DBKey and put it into the alias array:
97 - $title = Title::newFromText($text);
98 - $specialPageArray['Piwik'][] = $title->getDBKey();
99 -
100 - return true;
101 -}
102 -
10390 ///Alias for efAddPiwik - backwards compatibility.
10491 function addPiwik() { return efAddPiwik(); }
Index: trunk/extensions/WhoIsWatching/SpecialWhoIsWatching_body.php
@@ -2,105 +2,93 @@
33
44 class WhoIsWatching extends SpecialPage
55 {
6 - function WhoIsWatching() {
7 - SpecialPage::SpecialPage( 'WhoIsWatching' );
8 - self::loadMessages();
9 - }
 6+ function WhoIsWatching() {
 7+ SpecialPage::SpecialPage( 'WhoIsWatching' );
 8+ }
109
11 - function loadMessages() {
12 - static $messagesLoaded = false;
13 - global $wgMessageCache;
14 - if ( !$messagesLoaded ) {
15 - $messagesLoaded = true;
 10+ function execute($par) {
 11+ global $wgRequest, $wgOut, $wgCanonicalNamespaceNames, $whoiswatching_nametype, $whoiswatching_allowaddingpeople;
1612
17 - require( dirname( __FILE__ ) . '/SpecialWhoIsWatching.i18n.php' );
18 - foreach ( $messages as $lang => $langMessages ) {
19 - $wgMessageCache->addMessages( $langMessages, $lang );
20 - }
21 - }
22 - return true;
23 - }
 13+ wfLoadExtensionMessages( 'WhoIsWatching' );
2414
25 - function execute($par) {
26 - global $wgRequest, $wgOut, $wgCanonicalNamespaceNames, $whoiswatching_nametype, $whoiswatching_allowaddingpeople;
 15+ $this->setHeaders();
 16+ $wgOut->setPagetitle(wfMsg('whoiswatching'));
2717
28 - $this->setHeaders();
29 - $wgOut->setPagetitle(wfMsg('whoiswatching'));
 18+ $title = $wgRequest->getVal('page');
 19+ if (!isset($title)) {
 20+ $wgOut->addWikiText(wfMsg('specialwhoiswatchingusage'));
 21+ return;
 22+ }
3023
31 - $title = $wgRequest->getVal('page');
32 - if (!isset($title)) {
33 - $wgOut->addWikiText(wfMsg('specialwhoiswatchingusage'));
34 - return;
35 - }
 24+ $ns = $wgRequest->getVal('ns');
 25+ $ns = str_replace(' ', '_', $ns);
 26+ if ($ns == '')
 27+ $ns = NS_MAIN;
 28+ else {
 29+ foreach ( $wgCanonicalNamespaceNames as $i => $text ) {
 30+ if (preg_match("/$ns/i", $text)) {
 31+ $ns = $i;
 32+ break;
 33+ }
 34+ }
 35+ }
 36+ $pageTitle = Title::makeTitle($ns, $title);
3637
37 - $ns = $wgRequest->getVal('ns');
38 - $ns = str_replace(' ', '_', $ns);
39 - if ($ns == '')
40 - $ns = NS_MAIN;
41 - else {
42 - foreach ( $wgCanonicalNamespaceNames as $i => $text ) {
43 - if (preg_match("/$ns/i", $text)) {
44 - $ns = $i;
45 - break;
46 - }
47 - }
48 - }
49 - $pageTitle = Title::makeTitle($ns, $title);
 38+ $secret = $wgRequest->getVal("whoiswatching");
 39+ if($secret == sha1("whoiswatching")) {
 40+ $idArray = $wgRequest->getArray('idArray');
 41+ foreach ($idArray as $name => $id) {
 42+ #$wgOut->addWikiText("* Adding name $name userid $id to watchlist\n");
 43+ $u = User::newFromId($id);
 44+ $u->addWatch($pageTitle);
 45+ }
 46+ }
5047
51 - $secret = $wgRequest->getVal("whoiswatching");
52 - if($secret == sha1("whoiswatching")) {
53 - $idArray = $wgRequest->getArray('idArray');
54 - foreach ($idArray as $name => $id) {
55 - #$wgOut->addWikiText("* Adding name $name userid $id to watchlist\n");
56 - $u = User::newFromId($id);
57 - $u->addWatch($pageTitle);
58 - }
59 - }
60 -
61 - $wiki_title = $pageTitle->getPrefixedText();
62 - $wiki_path = $pageTitle->getPrefixedDBkey();
63 - if (preg_match('/^Category/', $wiki_path))
64 - $wiki_path = ':' . $wiki_path;
65 - $wgOut->addWikiText("== ".sprintf(wfMsg('specialwhoiswatchingthepage'), "[[$wiki_path|$wiki_title]] =="));
 48+ $wiki_title = $pageTitle->getPrefixedText();
 49+ $wiki_path = $pageTitle->getPrefixedDBkey();
 50+ if (preg_match('/^Category/', $wiki_path))
 51+ $wiki_path = ':' . $wiki_path;
 52+ $wgOut->addWikiText("== ".sprintf(wfMsg('specialwhoiswatchingthepage'), "[[$wiki_path|$wiki_title]] =="));
6653
67 - $dbr = wfGetDB( DB_SLAVE );
68 - $watchingusers = array();
69 - $res = $dbr->select( 'watchlist', 'wl_user', array('wl_namespace'=>$ns, 'wl_title'=>$title), __METHOD__);
70 - for ( $row = $dbr->fetchObject($res); $row; $row = $dbr->fetchObject($res)) {
71 - $u = User::newFromID($row->wl_user);
72 - if (($whoiswatching_nametype == 'UserName') || ($u->getRealName() == ''))
73 - $watchingusers[$row->wl_user] = ":[[User:" . $u->getName() . "]]";
74 - else
75 - $watchingusers[$row->wl_user] = ":[[:User:" . $u->getName() . "|" . $u->getRealName() . "]]";
76 - }
 54+ $dbr = wfGetDB( DB_SLAVE );
 55+ $watchingusers = array();
 56+ $res = $dbr->select( 'watchlist', 'wl_user', array('wl_namespace'=>$ns, 'wl_title'=>$title), __METHOD__);
 57+ for ( $row = $dbr->fetchObject($res); $row; $row = $dbr->fetchObject($res)) {
 58+ $u = User::newFromID($row->wl_user);
 59+ if (($whoiswatching_nametype == 'UserName') || ($u->getRealName() == '')) {
 60+ $watchingusers[$row->wl_user] = ":[[User:" . $u->getName() . "]]";
 61+ } else {
 62+ $watchingusers[$row->wl_user] = ":[[:User:" . $u->getName() . "|" . $u->getRealName() . "]]";
 63+ }
 64+ }
7765
78 - asort($watchingusers);
79 - foreach ($watchingusers as $id => $link)
80 - $wgOut->addWikiText($link);
81 -
82 - if ($whoiswatching_allowaddingpeople)
83 - {
84 - $wgOut->addWikiText("== ".wfMsg('specialwhoiswatchingaddusers')." ==");
85 -
86 - $wgOut->addHTML("<form method=\"post\">");
87 - $wgOut->addHTML("<input type=\"hidden\" value=\"".sha1("whoiswatching")."\" name=\"whoiswatching\" />");
88 - $wgOut->addHTML("<div style=\"border: thin solid #000000\"><table cellpadding=\"15\" cellspacing=\"0\" border=\"0\">");
89 - $wgOut->addHTML("<tr><td>");
90 - $wgOut->addHTML('<select name="idArray[]" size="12" multiple="multiple">');
91 - $users = array();
92 - $res = $dbr->select( 'user', 'user_name', '', __METHOD__);
93 - for ( $row = $dbr->fetchObject($res); $row; $row = $dbr->fetchObject($res)) {
94 - $u = User::newFromName($row->user_name);
95 - if (!array_key_exists($u->getID(), $watchingusers))
96 - if ($u->isAllowed('read') && ($u->getEmail() != ''))
97 - $users[strtolower($u->getRealName())] = $u->getID();
98 - }
99 - ksort($users);
100 - foreach ($users as $name => $id)
101 - $wgOut->addHTML("<option value=\"".$id."\">".$name."</option>");
102 - $wgOut->addHTML('</select></td><td>');
103 - $wgOut->addHTML("<input type=\"submit\" value=\"".wfMsg('specialwhoiswatchingaddbtn')."\" />");
104 - $wgOut->addHTML("</td></tr></table></div></form>");
105 - }
106 - }
 66+ asort($watchingusers);
 67+ foreach ($watchingusers as $id => $link)
 68+ $wgOut->addWikiText($link);
 69+
 70+ if ($whoiswatching_allowaddingpeople)
 71+ {
 72+ $wgOut->addWikiText("== ".wfMsg('specialwhoiswatchingaddusers')." ==");
 73+
 74+ $wgOut->addHTML("<form method=\"post\">");
 75+ $wgOut->addHTML("<input type=\"hidden\" value=\"".sha1("whoiswatching")."\" name=\"whoiswatching\" />");
 76+ $wgOut->addHTML("<div style=\"border: thin solid #000000\"><table cellpadding=\"15\" cellspacing=\"0\" border=\"0\">");
 77+ $wgOut->addHTML("<tr><td>");
 78+ $wgOut->addHTML('<select name="idArray[]" size="12" multiple="multiple">');
 79+ $users = array();
 80+ $res = $dbr->select( 'user', 'user_name', '', __METHOD__);
 81+ for ( $row = $dbr->fetchObject($res); $row; $row = $dbr->fetchObject($res)) {
 82+ $u = User::newFromName($row->user_name);
 83+ if (!array_key_exists($u->getID(), $watchingusers))
 84+ if ($u->isAllowed('read') && ($u->getEmail() != ''))
 85+ $users[strtolower($u->getRealName())] = $u->getID();
 86+ }
 87+ ksort($users);
 88+ foreach ($users as $name => $id)
 89+ $wgOut->addHTML("<option value=\"".$id."\">".$name."</option>");
 90+ $wgOut->addHTML('</select></td><td>');
 91+ $wgOut->addHTML("<input type=\"submit\" value=\"".wfMsg('specialwhoiswatchingaddbtn')."\" />");
 92+ $wgOut->addHTML("</td></tr></table></div></form>");
 93+ }
 94+ }
10795 }
Index: trunk/extensions/WhoIsWatching/SpecialWhoIsWatching.i18n.php
@@ -8,12 +8,13 @@
99 $messages = array();
1010
1111 $messages['en'] = array(
12 - 'whoiswatching' => 'Who is watching a wiki page',
13 - 'specialwhoiswatchingthepage' => 'Who is watching %s',
14 - 'specialwhoiswatchingusage' => 'This special page cannot be used on its own.
 12+ 'whoiswatching' => 'Who is watching a wiki page',
 13+ 'whoiswatching-desc' => 'Provides a listing of usernames watching a wiki page',
 14+ 'specialwhoiswatchingthepage' => 'Who is watching %s',
 15+ 'specialwhoiswatchingusage' => 'This special page cannot be used on its own.
1516 Please use the page [[MediaWiki:Number_of_watching_users_pageview]] to define an entry point to this special page.',
1617 'specialwhoiswatchingaddusers' => 'Add users to watch the page',
17 - 'specialwhoiswatchingaddbtn' => 'Add selected Users',
 18+ 'specialwhoiswatchingaddbtn' => 'Add selected users',
1819 );
1920
2021 /** Arabic (العربية)
Index: trunk/extensions/WhoIsWatching/SpecialWhoIsWatching.php
@@ -10,34 +10,22 @@
1111 }
1212
1313 $wgExtensionCredits['specialpage'][] = array(
14 - 'version' => '0.6',
15 - 'name' => 'WhoIsWatching',
16 - 'author' => 'Paul Grinberg, Siebrand Mazeland',
17 - 'email' => 'gri6507 at yahoo dot com',
18 - 'url' => 'http://www.mediawiki.org/wiki/Extension:WhoIsWatching',
19 - 'description' => 'Provides a listing of usernames watching a wiki page'
 14+ 'version' => '0.7',
 15+ 'name' => 'WhoIsWatching',
 16+ 'author' => 'Paul Grinberg, Siebrand Mazeland',
 17+ 'email' => 'gri6507 at yahoo dot com',
 18+ 'url' => 'http://www.mediawiki.org/wiki/Extension:WhoIsWatching',
 19+ 'description' => 'Provides a listing of usernames watching a wiki page',
 20+ 'descriptionmsg' => 'whoiswatching-desc',
2021 );
2122
2223 $wgAutoloadClasses['WhoIsWatching'] = dirname(__FILE__) . '/SpecialWhoIsWatching_body.php';
 24+$wgExtensionMessagesFiles['WhoIsWatching'] = $dir . 'WhoIsWatching.i18n.php';
 25+$wgExtensionAliasesFiles['WhoIsWatching'] = $dir . 'SpecialWhoIsWatching.alias.php';
2326 $wgSpecialPages['WhoIsWatching'] = 'WhoIsWatching';
24 -$wgHooks['LoadAllMessages'][] = 'WhoIsWatching::loadMessages';
25 -$wgHooks['LanguageGetSpecialPageAliases'][] = 'whoiswatching';
2627
2728 # Set the following to either 'UserName' or 'RealName' to display the list of watching users as such.
2829 $whoiswatching_nametype = 'RealName';
2930
3031 # Set the following to either True or False to optionally allow users to add others to watch a particular page
3132 $whoiswatching_allowaddingpeople = true;
32 -
33 -function whoiswatching(&$specialPageArray, $code) {
34 - # The localized title of the special page is among the messages of the extension:
35 - WhoIsWatching::loadMessages();
36 - $text = wfMsg('whoiswatching');
37 -
38 - # Convert from title in text form to DBKey and put it into the alias array:
39 - $title = Title::newFromText($text);
40 - $specialPageArray['WhoIsWatching'][] = $title->getDBkey();
41 -
42 - return true;
43 -}
44 -
Index: trunk/extensions/Patroller/Patroller.alias.php
@@ -0,0 +1,14 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$aliases = array();
 11+
 12+/** English */
 13+$aliases['en'] = array(
 14+ 'Patroller' => array( 'Patroller' ),
 15+);
Property changes on: trunk/extensions/Patroller/Patroller.alias.php
___________________________________________________________________
Added: svn:eol-style
116 + native
Added: svn:keywords
217 + Id
Index: trunk/extensions/Patroller/Patroller.php
@@ -11,7 +11,7 @@
1212
1313 $wgExtensionCredits['specialpage'][] = array(
1414 'name' => 'Patroller',
15 - 'version' => '1.0rc2',
 15+ 'version' => '1.0rc3',
1616 'author' => 'Rob Church',
1717 'description' => 'Enhanced patrolling interface with workload sharing',
1818 'descriptionmsg' => 'patrol-desc',
@@ -20,6 +20,7 @@
2121
2222 $dir = dirname(__FILE__) . '/';
2323 $wgExtensionMessagesFiles['Patroller'] = $dir . 'Patroller.i18n.php';
 24+$wgExtensionAliasesFiles['Patroller'] = $dir . 'Patroller.alias.php';
2425 $wgAutoloadClasses['Patroller'] = $dir . 'Patroller.class.php';
2526 $wgSpecialPages['Patrol'] = 'Patroller';
2627
Index: trunk/extensions/WhiteList/SpecialWhitelistEdit.alias.php
@@ -0,0 +1,12 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ */
 7+
 8+$aliases = array();
 9+
 10+$aliases['en'] = array(
 11+ 'WhiteList' => array( 'WhiteList' ),
 12+ 'WhitelistEdit' => array( 'WhitelistEdit' ),
 13+);
Property changes on: trunk/extensions/WhiteList/SpecialWhitelistEdit.alias.php
___________________________________________________________________
Added: svn:eol-style
114 + native
Added: svn:keywords
215 + Id
Index: trunk/extensions/WhiteList/SpecialWhitelistEdit.php
@@ -31,14 +31,14 @@
3232
3333 $wgExtensionCredits['specialpage'][] = array(
3434 'name' => 'WhiteListEdit',
35 - 'version' => 'v0.9.0',
 35+ 'version' => 'v0.10.0',
3636 'author' => array('Paul Grinberg', 'Mike Sullivan'),
3737 'email' => 'gri6507 at yahoo dot com, ms-mediawiki AT umich DOT edu',
3838 'description' => 'Edit the access permissions of restricted users',
3939 'descriptionmsg' => 'whitelist-desc',
4040 'url' => 'http://www.mediawiki.org/wiki/Extension:WhiteList',
4141 );
42 -
 42+
4343 # these are the groups and the rights used within this extension
4444 if( !isset($wgWhiteListRestrictedGroup))
4545 $wgWhiteListRestrictedGroup = 'restricted';
@@ -97,6 +97,7 @@
9898
9999 $wgExtensionMessagesFiles['WhitelistEdit'] = $dir . 'SpecialWhitelistEdit.i18n.php';
100100 $wgExtensionMessagesFiles['Whitelist'] = $dir . 'SpecialWhitelistEdit.i18n.php';
 101+$wgExtensionAliasesFiles['Whitelist'] = $dir . 'SpecialWhitelistEdit.alias.php';
101102 $wgAutoloadClasses['WhitelistEdit'] = $dir . 'SpecialWhitelistEdit_body.php';
102103 $wgAutoloadClasses['Whitelist'] = $dir . 'SpecialWhitelistEdit_body.php';
103104 $wgSpecialPages['WhitelistEdit'] = 'WhitelistEdit';
Index: trunk/extensions/RandomInCategory/SpecialRandomincategory.alias.php
@@ -0,0 +1,11 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ */
 7+
 8+$aliases = array();
 9+
 10+$aliases['en'] = array(
 11+ 'RandomInCategory' => array( 'RandomInCategory' ),
 12+);
Property changes on: trunk/extensions/RandomInCategory/SpecialRandomincategory.alias.php
___________________________________________________________________
Added: svn:eol-style
113 + native
Added: svn:keywords
214 + Id
Index: trunk/extensions/RandomInCategory/SpecialRandomincategory.php
@@ -21,7 +21,9 @@
2222 'descriptionmsg' => 'randomincategory-desc',
2323 );
2424
25 -$wgExtensionMessagesFiles['RandomInCategory'] = dirname(__FILE__) . '/SpecialRandomincategory.i18n.php';
 25+$dir = dirname(__FILE__) . '/';
 26+$wgExtensionMessagesFiles['RandomInCategory'] = $dir . 'SpecialRandomincategory.i18n.php';
 27+$wgExtensionAliasesFiles['RandomInCategory'] = $dir . 'SpecialRandomincategory.alias.php';
2628
2729 $wgSpecialPages['Randomincategory'] = 'RandomPageInCategory';
28 -$wgAutoloadClasses['RandomPageInCategory'] = dirname( __FILE__ ) . '/SpecialRandomincategory.body.php';
 30+$wgAutoloadClasses['RandomPageInCategory'] = $dir . 'SpecialRandomincategory.body.php';
Index: trunk/extensions/WhatIsMyIP/WhatIsMyIP.php
@@ -22,7 +22,7 @@
2323 }
2424 $wgExtensionCredits['specialpage'][] = array(
2525 'name' => 'WhatIsMyIP',
26 - 'version' => '1.0',
 26+ 'version' => '1.1',
2727 'description' => 'Shows current user\'s IP address on [[Special:WhatIsMyIP]]',
2828 'author' => 'Łukasz Galezewski',
2929 'url' => 'http://www.mediawiki.org/wiki/Extension:WhatIsMyIP',
@@ -35,5 +35,6 @@
3636
3737 $dir = dirname(__FILE__) . '/';
3838 $wgExtensionMessagesFiles['WhatIsMyIP'] = $dir . 'WhatIsMyIP.i18n.php';
 39+$wgExtensionAliasesFiles['WhatIsMyIP'] = $dir . 'WhatIsMyIP.alias.php';
3940 $wgAutoloadClasses['WhatIsMyIP'] = $dir. 'WhatIsMyIP_body.php';
4041 $wgSpecialPages['WhatIsMyIP'] = 'WhatIsMyIP';
Index: trunk/extensions/WhatIsMyIP/WhatIsMyIP.alias.php
@@ -0,0 +1,11 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ */
 7+
 8+$aliases = array();
 9+
 10+$aliases['en'] = array(
 11+ 'WhatIsMyIP' => array( 'WhatIsMyIP' ),
 12+);
Property changes on: trunk/extensions/WhatIsMyIP/WhatIsMyIP.alias.php
___________________________________________________________________
Added: svn:eol-style
113 + native
Added: svn:keywords
214 + Id
Index: trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php
@@ -78,6 +78,7 @@
7979 require_once($sfgIP . '/includes/SF_FormEditTab.php');
8080
8181 $wgExtensionMessagesFiles['SemanticForms'] = $sfgIP . '/languages/SF_Messages.php';
 82+$wgExtensionAliasesFiles['ReplaceText'] = $sfgIP . '/languages/SF_Aliases.php';
8283
8384 /**
8485 * Do the actual intialization of the extension. This is just a delayed init that makes sure
@@ -441,7 +442,7 @@
442443 $editor->submit();
443444 return false;
444445 }
445 -
 446+
446447 $target_title = $article->getTitle();
447448 $target_name = sffTitleString($target_title);
448449 if ($target_title->exists()) {
@@ -547,7 +548,7 @@
548549 wfMsgForContent('march'),
549550 wfMsgForContent('april'),
550551 wfMsgForContent('may'),
551 - wfMsgForContent('june'),
 552+ wfMsgForContent('june'),
552553 wfMsgForContent('july'),
553554 wfMsgForContent('august'),
554555 wfMsgForContent('september'),
@@ -565,9 +566,9 @@
566567 $db = wfGetDB( DB_SLAVE );
567568 $sql_options = array();
568569 $sql_options['LIMIT'] = $sfgMaxAutocompleteValues;
569 - $property_field = ($is_relation) ? 'relation_title' : 'attribute_title';
570 - $value_field = ($is_relation) ? 'object_title' : 'value_xsd';
571 - $property_table = ($is_relation) ? 'smw_relations' : 'smw_attributes';
 570+ $property_field = ($is_relation) ? 'relation_title' : 'attribute_title';
 571+ $value_field = ($is_relation) ? 'object_title' : 'value_xsd';
 572+ $property_table = ($is_relation) ? 'smw_relations' : 'smw_attributes';
572573 $conditions = "$property_field = '$property_name'";
573574 if ($substring != null) {
574575 $substring = str_replace(' ', '_', strtolower($substring));
@@ -660,7 +661,7 @@
661662 while ($res && $row = $db->fetchRow($res)) {
662663 if (array_key_exists('page_title', $row)) {
663664 $page_namespace = $row['page_namespace'];
664 - if ($page_namespace == NS_CATEGORY) {
 665+ if ($page_namespace == NS_CATEGORY) {
665666 $new_category = $row[ 'page_title' ];
666667 if (!in_array($new_category, $categories)) {
667668 $newcategories[] = $new_category;
Index: trunk/extensions/SemanticForms/languages/SF_Aliases.php
@@ -0,0 +1,23 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$aliases = array();
 11+
 12+/** English */
 13+$aliases['en'] = array(
 14+ 'AddData' => array( 'AddData' ),
 15+ 'AddPage' => array( 'AddPage' ),
 16+ 'CreateCategory' => array( 'CreateCategory' ),
 17+ 'CreateForm' => array( 'CreateForm' ),
 18+ 'CreateProperty' => array( 'CreateProperty' ),
 19+ 'CreateTemplate' => array( 'CreateTemplate' ),
 20+ 'EditData' => array( 'EditData' ),
 21+ 'Forms' => array( 'Forms' ),
 22+ 'Templates' => array( 'Templates' ),
 23+ 'UploadWindow' => array( 'UploadWindow' ),
 24+);
Property changes on: trunk/extensions/SemanticForms/languages/SF_Aliases.php
___________________________________________________________________
Added: svn:eol-style
125 + native
Added: svn:keywords
226 + Id
Index: trunk/extensions/RefreshSpecial/RefreshSpecial.i18n.php
@@ -12,7 +12,8 @@
1313 */
1414 $messages['en'] = array (
1515 'refreshspecial' => 'Refresh special pages',
16 - 'refreshspecial-title' => 'Refresh Special Pages',
 16+ 'refreshspecial-desc' => 'Allows [[Special:RefreshSpecial|manual special page refresh]] of special pages',
 17+ 'refreshspecial-title' => 'Refresh special pages',
1718 'refreshspecial-help' => 'This special page provides means to manually refresh special pages. When you have chosen all pages that you want to refresh, click on the Refresh button below to make it go. Warning: the refresh may take a while on larger wikis.',
1819 'refreshspecial-button' => 'Refresh selected',
1920 'refreshspecial-fail' => 'Please check at least one special page to refresh.',
@@ -22,15 +23,15 @@
2324 'refreshspecial-choice' => 'refreshing special pages',
2425 'refreshspecial-js-disabled' => '(<i>You cannot select all pages when JavaScript is disabled</i>)',
2526 'refreshspecial-select-all-pages' => ' select all pages ',
26 - 'refreshspecial-link-back' => 'Get back to extension ',
 27+ 'refreshspecial-link-back' => 'Go back to extension ',
2728 'refreshspecial-here' => '<b>here</b>',
28 - 'refreshspecial-none-selected' => 'You haven\'t selected any special pages. Reverting to default selection.',
29 - 'refreshspecial-db-error' => 'FAILED: database error',
 29+ 'refreshspecial-none-selected' => 'You have not selected any special pages. Reverting to default selection.',
 30+ 'refreshspecial-db-error' => 'Failed: database error',
3031 'refreshspecial-no-page' => 'No such special page',
3132 'refreshspecial-slave-lagged' => 'Slave lagged, waiting...',
3233 'refreshspecial-reconnected' => 'Reconnected.',
3334 'refreshspecial-reconnecting' => 'Connection failed, reconnecting in 10 seconds...',
34 - 'refreshspecial-total-display' => '<br />Refreshed $1 pages totalling $2 rows in time $3 (complete time of the script run is $4)',
 35+ 'refreshspecial-total-display' => '<br />Refreshed $1 pages totaling $2 rows in time $3 (complete time of the script run is $4)',
3536 );
3637
3738 /** Finnish (Suomi)
Index: trunk/extensions/RefreshSpecial/RefreshSpecial.php
@@ -15,15 +15,17 @@
1616 $wgGroupPermissions['staff']['refreshspecial'] = true;
1717
1818 $wgExtensionCredits['specialpage'][] = array(
19 - 'name' => 'Refresh Special',
20 - 'author' => 'Bartek Łapiński',
21 - 'version' => '1.0',
22 - 'url' => 'http://www.mediawiki.org/wiki/Extension:RefreshSpecial',
23 - 'description' => 'Allows manual special page refresh of special pages'
 19+ 'name' => 'Refresh Special',
 20+ 'author' => 'Bartek Łapiński',
 21+ 'version' => '1.1',
 22+ 'url' => 'http://www.mediawiki.org/wiki/Extension:RefreshSpecial',
 23+ 'description' => 'Allows manual special page refresh of special pages'
 24+ 'descriptionmsg' => 'refreshspecial-desc',
2425 );
2526
2627 $dir = dirname(__FILE__) . '/';
2728 $wgExtensionMessagesFiles['RefreshSpecial'] = $dir . 'RefreshSpecial.i18n.php';
 29+$wgExtensionAliasesFiles['RefreshSpecial'] = $dir . 'RefreshSpecial.alias.php';
2830 $wgAutoloadClasses['RefreshSpecial'] = $dir. 'RefreshSpecial.body.php';
2931 $wgSpecialPages['RefreshSpecial'] = 'RefreshSpecial';
3032
@@ -34,4 +36,4 @@
3537 /* amount of acceptable slave lag */
3638 define('REFRESHSPECIAL_SLAVE_LAG_LIMIT', 600);
3739 /* interval when slave is lagged */
38 -define('REFRESHSPECIAL_SLAVE_LAG_SLEEP', 30);
\ No newline at end of file
 40+define('REFRESHSPECIAL_SLAVE_LAG_SLEEP', 30);
Index: trunk/extensions/RefreshSpecial/RefreshSpecial.alias.php
@@ -0,0 +1,11 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ */
 7+
 8+$aliases = array();
 9+
 10+$aliases['en'] = array(
 11+ 'RefreshSpecial' => array( 'RefreshSpecial' ),
 12+);
Property changes on: trunk/extensions/RefreshSpecial/RefreshSpecial.alias.php
___________________________________________________________________
Added: svn:eol-style
113 + native
Added: svn:keywords
214 + Id
Index: trunk/extensions/StalePages/StalePages.alias.php
@@ -0,0 +1,11 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ */
 7+
 8+$aliases = array();
 9+
 10+$aliases['en'] = array(
 11+ 'StalePages' => array( 'StalePages' ),
 12+);
Property changes on: trunk/extensions/StalePages/StalePages.alias.php
___________________________________________________________________
Added: svn:eol-style
113 + native
Added: svn:keywords
214 + Id
Index: trunk/extensions/StalePages/StalePages.php
@@ -15,27 +15,11 @@
1616 'author' => 'Tim Laqua',
1717 'description' => 'Generates a list of pages that have not been edited recently',
1818 'descriptionmsg' => 'stalepages-desc',
19 - 'version' => '0.7'
 19+ 'version' => '0.8'
2020 );
2121
22 -if( version_compare( $wgVersion, '1.11', '>=' ) ) {
23 - $wgExtensionMessagesFiles['Stalepages'] = $dirname(__FILE__) . '/StalePages.i18n.php';
24 -} else {
25 - $wgExtensionFunctions[] = 'efStalepages';
26 -}
27 -
28 -$wgAutoloadClasses['Stalepages'] = dirname(__FILE__) . '/StalePages_body.php';
29 -
 22+$dir = dirname(__FILE__) . '/';
 23+$wgExtensionMessagesFiles['Stalepages'] = $dir . 'StalePages.i18n.php';
 24+$wgExtensionAliasesFiles['Stalepages'] = $dir . 'Stalepages.alias.php';
 25+$wgAutoloadClasses['Stalepages'] = $dir . 'StalePages_body.php';
3026 $wgSpecialPages['Stalepages'] = 'Stalepages';
31 -
32 -
33 -///Message Cache population for versions that did not support $wgExtensionFunctions
34 -function efStalePages() {
35 - global $wgMessageCache;
36 -
37 - #Add Messages
38 - require( dirname( __FILE__ ) . '/StalePages.i18n.php' );
39 - foreach( $messages as $key => $value ) {
40 - $wgMessageCache->addMessages( $messages[$key], $key );
41 - }
42 -}
Index: trunk/extensions/SpecialForm/SpecialForm.alias.php
@@ -0,0 +1,11 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ */
 7+
 8+$aliases = array();
 9+
 10+$aliases['en'] = array(
 11+ 'Form' => array( 'Form' ),
 12+);
Property changes on: trunk/extensions/SpecialForm/SpecialForm.alias.php
___________________________________________________________________
Added: svn:eol-style
113 + native
Added: svn:keywords
214 + Id
Index: trunk/extensions/SpecialForm/SpecialForm.body.php
@@ -30,12 +30,13 @@
3131 class SpecialForm extends SpecialPage {
3232 function SpecialForm() {
3333 SpecialPage::SpecialPage("Form");
34 - self::loadMessages();
3534 }
3635
3736 function execute( $par ) {
3837 global $wgRequest, $wgOut;
3938
 39+ wfLoadExtensionMessages( 'Form' );
 40+
4041 # Must have a name, like Special:Form/Nameofform
4142 # XXX: instead of an error, show a list of available forms
4243
@@ -62,18 +63,6 @@
6364 }
6465 }
6566
66 - # Load form-related messages, per special-page guidelines
67 -
68 - function loadMessages() {
69 - static $messagesLoaded = false;
70 -
71 - if ( $messagesLoaded ) return true;
72 - wfLoadExtensionMessages('SpecialForm');
73 - $messagesLoaded = true;
74 -
75 - return true;
76 - }
77 -
7867 # Load and parse a form article from the DB
7968
8069 function loadForm($name) {
Index: trunk/extensions/SpecialForm/SpecialForm.setup.php
@@ -25,16 +25,13 @@
2626 exit( 1 );
2727 }
2828
29 -define('SPECIALFORM_VERSION', '0.3');
 29+define('SPECIALFORM_VERSION', '0.4');
3030
3131 $dir = dirname(__FILE__) . '/';
3232 $wgAutoloadClasses['SpecialForm'] = $dir . '/SpecialForm.body.php'; # Tell MediaWiki to load the extension body.
3333 $wgExtensionMessagesFiles['SpecialForm'] = $dir . 'SpecialForm.i18n.php'; #Load internationalization file
 34+$wgExtensionAliasesFiles['Form'] = $dir . 'SpecialForm.alias.php';
3435 $wgSpecialPages['Form'] = 'SpecialForm'; # Let MediaWiki know about your new special page.
35 -$wgHooks['LoadAllMessages'][] = 'SpecialForm::loadMessages'; # Load the internationalization messages for your special page.
36 -$wgHooks['LanguageGetSpecialPageAliases'][] = 'formLocalizedPageName'; # Add any aliases for the special page.
37 -# Typo in versions of MW earlier than 1.11.x (?)
38 -$wgHooks['LangugeGetSpecialPageAliases'][] = 'formLocalizedPageName'; # Add any aliases for the special page.
3936
4037 $wgExtensionCredits['specialpage'][] = array(
4138 'name' => 'Form',
@@ -46,17 +43,4 @@
4744 );
4845
4946 # Use recaptcha; default to false
50 -
5147 $wgSpecialFormRecaptcha = false;
52 -
53 -function formLocalizedPageName(&$specialPageArray, $code) {
54 - # The localized title of the special page is among the messages of the extension:
55 - SpecialForm::loadMessages();
56 - $text = wfMsgForContent('form');
57 -
58 - # Convert from title in text form to DBKey and put it into the alias array:
59 - $title = Title::newFromText($text);
60 - $specialPageArray['Form'][] = $title->getDBkey();
61 -
62 - return true;
63 -}
\ No newline at end of file
Index: trunk/extensions/TodoTasks/SpecialTaskList.php
@@ -5,12 +5,12 @@
66 modify it under the terms of the GNU General Public License
77 as published by the Free Software Foundation, version 2
88 of the License.
9 -
 9+
1010 This program is distributed in the hope that it will be useful,
1111 but WITHOUT ANY WARRANTY; without even the implied warranty of
1212 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1313 GNU General Public License for more details.
14 -
 14+
1515 You should have received a copy of the GNU General Public License
1616 along with this program; if not, write to the Free Software
1717 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -18,7 +18,7 @@
1919
2020 if (!defined('MEDIAWIKI')) die();
2121
22 -$wgTodoTasksExtensionVersion = '0.9.6';
 22+$wgTodoTasksExtensionVersion = '0.9.7';
2323
2424 $wgExtensionCredits['parserhook'][] = array(
2525 'version' => $wgTodoTasksExtensionVersion,
@@ -43,10 +43,12 @@
4444 $dir = dirname(__FILE__) . '/';
4545 $wgAutoloadClasses['TaskList'] = $dir . 'SpecialTaskList_body.php';
4646 $wgExtensionMessagesFiles['TaskList'] = $dir . 'SpecialTaskList.i18n.php';
 47+$wgExtensionAliasesFiles['TaskList'] = $dir . 'SpecialTaskList.alias.php';
4748 $wgSpecialPages['TaskList'] = 'TaskList';
 49+
4850 if ($wgUseProjects) {
49 - $wgAutoloadClasses['TaskListByProject'] = $dir . 'SpecialTaskList_body.php';
50 - $wgSpecialPages['TaskListByProject'] = 'TaskListByProject';
 51+ $wgAutoloadClasses['TaskListByProject'] = $dir . 'SpecialTaskList_body.php';
 52+ $wgSpecialPages['TaskListByProject'] = 'TaskListByProject';
5153 }
5254 $wgHooks['LoadAllMessages'][] = 'TaskList::loadMessages';
5355 $wgHooks['LoadAllMessages'][] = 'TaskListByProject::loadMessages';
Index: trunk/extensions/TodoTasks/SpecialTaskList.alias.php
@@ -0,0 +1,12 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ */
 7+
 8+$aliases = array();
 9+
 10+$aliases['en'] = array(
 11+ 'TaskList' => array( 'TaskList' ),
 12+ 'TaskListByProject' => array( 'TaskListByProject' ),
 13+);
Property changes on: trunk/extensions/TodoTasks/SpecialTaskList.alias.php
___________________________________________________________________
Added: svn:eol-style
114 + native
Added: svn:keywords
215 + Id
Index: trunk/extensions/Player/Player.php
@@ -30,6 +30,7 @@
3131
3232 $dir = dirname(__FILE__) . '/';
3333 $wgExtensionMessagesFiles['Player'] = $dir . 'Player.i18n.php';
 34+$wgExtensionAliasesFiles['Player'] = $dir . 'Player.alias.php';
3435 $wgAutoloadClasses['Player'] = $dir . 'PlayerClass.php';
3536 $wgAutoloadClasses['SpecialPlayer'] = $dir . 'SpecialPlayer.php';
3637 $wgSpecialPages['Player'] = 'SpecialPlayer';
Index: trunk/extensions/Player/Player.alias.php
@@ -0,0 +1,14 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$aliases = array();
 11+
 12+/** English */
 13+$aliases['en'] = array(
 14+ 'Player' => array( 'Player' ),
 15+);
Property changes on: trunk/extensions/Player/Player.alias.php
___________________________________________________________________
Added: svn:eol-style
116 + native
Added: svn:keywords
217 + Id
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -548,6 +548,8 @@
549549 Random Users With Avatars
550550 descmsg = random-users-avatars-desc
551551
 552+Refresh Special
 553+
552554 Regex Block
553555 file = regexBlock/regexBlock.i18n.php
554556
Index: trunk/extensions/Translate/aliases.txt
@@ -163,15 +163,42 @@
164164 Password reset
165165 file = PasswordReset/PasswordReset.alias.php
166166
 167+Patroller
 168+file = Patroller/Patroller.alias.php
 169+
 170+Piwik
 171+file = Piwik/Piwik.alias.php
 172+
 173+Player
 174+file = Player/Player.alias.php
 175+
 176+Profile monitor
 177+file = ProfileMonitor/ProfileMonitor.alias.php
 178+
167179 Purge cache
168180 file = PurgeCache/PurgeCache.alias.php
169181
170182 POV watch
171183 file = PovWatch/PovWatch.alias.php
172184
 185+Random in category
 186+file = RandomInCategory/SpecialRandomInCategory.alias.php
 187+
 188+Refresh special
 189+file = RefreshSpecial/RefreshSpecial.alias.php
 190+
173191 Rename user
174192 file = Renameuser/SpecialRenameuser.alias.php
175193
 194+Replace text
 195+file = ReplaceText/ReplaceText.alias.php
 196+
 197+Semantic drilldown
 198+file = SemanticDrilldown/languages/SD_Aliases.php
 199+
 200+Semantic forms
 201+file = SemanticForms/languages/SF_Aliases.php
 202+
176203 Semantic MediaWiki
177204 file = SemanticMediaWiki/languages/SMW_Aliases.php
178205
@@ -190,8 +217,41 @@
191218 Spam regex
192219 file = SpamRegex/SpamRegex.alias.php
193220
 221+Special form
 222+file = SpecialForm/SpecialForm.alias.php
 223+
 224+Stale pages
 225+file = StalePages/StalePages.alias.php
 226+
 227+Template link
 228+file = TemplateLink/TemplateLink.alias.php
 229+
 230+Todo tasks
 231+file = TodoTasks/SpecialTaskList.alias.php
 232+
194233 Translate
195234 file = Translate/Translate.alias.php
196235
197236 Usage statistics
198237 file = UsageStatistics/SpecialUserStats.alias.php
 238+
 239+User merge
 240+file = UserMerge/UserMerge.alias.php
 241+
 242+Vote
 243+file = Vote/Vote.alias.php
 244+
 245+Watch subpages
 246+file = WatchSubpages/WatchSubpages.alias.php
 247+
 248+What is my IP
 249+file = WhatIsMyIP/WhatIsMyIP.alias.php
 250+
 251+White list
 252+file = WhiteList/SpecialWhitelistEdit.alias.php
 253+
 254+Who is watching
 255+file = WhoIsWatching/SpecialWhoIsWatching.alias.php
 256+
 257+Who is online
 258+file = WhosOnline/WhosOnline.alias.php
Index: trunk/extensions/ProfileMonitor/ProfileMonitor.alias.php
@@ -0,0 +1,11 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ */
 7+
 8+$aliases = array();
 9+
 10+$aliases['en'] = array(
 11+ 'ProfileMonitor' => array( 'ProfileMonitor' ),
 12+);
Property changes on: trunk/extensions/ProfileMonitor/ProfileMonitor.alias.php
___________________________________________________________________
Added: svn:eol-style
113 + native
Added: svn:keywords
214 + Id
Index: trunk/extensions/ProfileMonitor/ProfileMonitor.php
@@ -21,6 +21,7 @@
2222
2323 $dir = dirname(__FILE__) . '/';
2424 $wgExtensionMessagesFiles['ProfileMonitor'] = $dir . 'ProfileMonitor.i18n.php';
 25+$wgExtensionAliasesFiles['ProfileMonitor'] = $dir . 'ProfileMonitor.alias.php';
2526 $wgAutoloadClasses['ProfileMonitor'] = $dir . 'ProfileMonitor.class.php';
2627 $wgSpecialPages['Profiling'] = 'ProfileMonitor';
2728
Index: trunk/extensions/WatchSubpages/WatchSubpages.php
@@ -27,5 +27,6 @@
2828
2929 $dir = dirname(__FILE__) . '/';
3030 $wgExtensionMessagesFiles['WatchSubpages'] = $dir . 'WatchSubpages.i18n.php';
 31+$wgExtensionAliasesFiles['WatchSubpages'] = $dir . 'WatchSubpages.alias.php';
3132 $wgAutoloadClasses['WatchSubpages'] = $dir . 'WatchSubpages_body.php';
3233 $wgSpecialPages['WatchSubpages'] = 'WatchSubpages';
Index: trunk/extensions/WatchSubpages/WatchSubpages.alias.php
@@ -0,0 +1,11 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ */
 7+
 8+$aliases = array();
 9+
 10+$aliases['en'] = array(
 11+ 'WatchSubpages' => array( 'WatchSubpages' ),
 12+);
Property changes on: trunk/extensions/WatchSubpages/WatchSubpages.alias.php
___________________________________________________________________
Added: svn:eol-style
113 + native
Added: svn:keywords
214 + Id
Index: trunk/extensions/ReplaceText/ReplaceText.php
@@ -16,7 +16,7 @@
1717 * the page provides a warning prompt to the user before doing the
1818 * replacement, since it is not easily reversible.
1919 *
20 - * @version 0.2.5
 20+ * @version 0.2.6
2121 * @author Yaron Koren
2222 */
2323
@@ -25,17 +25,19 @@
2626 // credits
2727 $wgExtensionCredits['specialpage'][] = array(
2828 'name' => 'Replace Text',
29 - 'version' => '0.2.5',
 29+ 'version' => '0.2.6',
3030 'author' => 'Yaron Koren',
3131 'url' => 'http://www.mediawiki.org/wiki/Extension:Replace_Text',
3232 'description' => 'A special page that lets administrators run a global search-and-replace',
3333 'descriptionmsg' => 'replacetext-desc',
3434 );
3535
36 -$wgExtensionMessagesFiles['ReplaceText'] = dirname( __FILE__ ) . '/ReplaceText.i18n.php';
 36+$dir = dirname(__FILE__) . '/';
 37+$wgExtensionMessagesFiles['ReplaceText'] = $dir . 'ReplaceText.i18n.php';
 38+$wgExtensionAliasesFiles['ReplaceText'] = $dir . 'ReplaceText.alias.php';
3739 $wgJobClasses['replaceText'] = 'ReplaceTextJob';
3840
3941 // This extension uses its own permission type, 'replacetext'
4042 $wgSpecialPages['ReplaceText'] = array('ReplaceText', 'replacetext');
41 -$wgAutoloadClasses['ReplaceText'] = dirname( __FILE__ ) . '/SpecialReplaceText.php';
42 -$wgAutoloadClasses['ReplaceTextJob'] = dirname( __FILE__ ) . '/ReplaceTextJob.php';
 43+$wgAutoloadClasses['ReplaceText'] = $dir . 'SpecialReplaceText.php';
 44+$wgAutoloadClasses['ReplaceTextJob'] = $dir . 'ReplaceTextJob.php';
Index: trunk/extensions/ReplaceText/ReplaceText.alias.php
@@ -0,0 +1,14 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$aliases = array();
 11+
 12+/** English */
 13+$aliases['en'] = array(
 14+ 'ReplaceText' => array( 'ReplaceText' ),
 15+);
Property changes on: trunk/extensions/ReplaceText/ReplaceText.alias.php
___________________________________________________________________
Added: svn:eol-style
116 + native
Added: svn:keywords
217 + Id
Index: trunk/extensions/SemanticDrilldown/includes/SD_GlobalFunctions.php
@@ -30,6 +30,7 @@
3131 require_once($sdgIP . '/languages/SD_Language.php');
3232
3333 $wgExtensionMessagesFiles['SemanticDrilldown'] = $sdgIP . '/languages/SD_Messages.php';
 34+$wgExtensionAliasesFiles['ReplaceText'] = $sdgIP . '/languages/SD_Aliases.php';
3435
3536 // register all special pages and other classes
3637 $wgSpecialPages['Filters'] = 'SDFilters';
Index: trunk/extensions/SemanticDrilldown/languages/SD_Aliases.php
@@ -0,0 +1,16 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$aliases = array();
 11+
 12+/** English */
 13+$aliases['en'] = array(
 14+ 'BrowseData' => array( 'BrowseData' ),
 15+ 'CreateFilter' => array( 'CreateFilter' ),
 16+ 'Filters' => array( 'Filters' ),
 17+);
Property changes on: trunk/extensions/SemanticDrilldown/languages/SD_Aliases.php
___________________________________________________________________
Added: svn:eol-style
118 + native
Added: svn:keywords
219 + Id
Index: trunk/extensions/TemplateLink/TemplateLink.alias.php
@@ -0,0 +1,11 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ */
 7+
 8+$aliases = array();
 9+
 10+$aliases['en'] = array(
 11+ 'TemplateLink' => array( 'TemplateLink' ),
 12+);
Property changes on: trunk/extensions/TemplateLink/TemplateLink.alias.php
___________________________________________________________________
Added: svn:eol-style
113 + native
Added: svn:keywords
214 + Id
Index: trunk/extensions/TemplateLink/TemplateLink.setup.php
@@ -29,7 +29,7 @@
3030
3131 $wgExtensionCredits['parserhook'][] = array(
3232 'name' => 'TemplateLink',
33 - 'version' => '1.1',
 33+ 'version' => '1.2',
3434 'author' =>'Magnus Manske',
3535 'url' => 'http://www.mediawiki.org/wiki/Extension:TemplateLink',
3636 'description' => 'This extension can show a template as a new page'
@@ -37,6 +37,7 @@
3838
3939 $dir = dirname(__FILE__) . '/';
4040 $wgExtensionMessagesFiles['TemplateLink'] = $dir . 'TemplateLink.i18n.php';
 41+$wgExtensionAliasesFiles['TemplateLink'] = $dir . 'TemplateLink.alias.php';
4142 $wgAutoloadClasses['TemplateLink'] = $dir . 'TemplateLink.body.php'; # Tell MediaWiki to load the extension body.
4243 $wgSpecialPages['TemplateLink'] = 'TemplateLink'; # Let MediaWiki know about your new special page.
4344
Index: trunk/extensions/UserMerge/UserMerge.php
@@ -16,13 +16,14 @@
1717 'author' => 'Tim Laqua',
1818 'description' => "Merges references from one user to another user in the Wiki database - will also delete old users following merge. Requires 'usermerge' privileges.",
1919 'descriptionmsg' => 'usermerge-desc',
20 - 'version' => '1.5'
 20+ 'version' => '1.6'
2121 );
2222
2323 $dir = dirname(__FILE__) . '/';
2424 $wgAutoloadClasses['UserMerge'] = $dir . 'UserMerge_body.php';
2525
2626 $wgExtensionMessagesFiles['UserMerge'] = $dir . 'UserMerge.i18n.php';
 27+$wgExtensionAliasesFiles['UserMerge'] = $dir . 'UserMerge.alias.php';
2728 $wgSpecialPages['UserMerge'] = 'UserMerge';
2829 $wgSpecialPageGroups['UserMerge'] = 'users';
2930
Index: trunk/extensions/UserMerge/UserMerge.alias.php
@@ -0,0 +1,11 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ */
 7+
 8+$aliases = array();
 9+
 10+$aliases['en'] = array(
 11+ 'UserMerge' => array( 'UserMerge' ),
 12+);
Property changes on: trunk/extensions/UserMerge/UserMerge.alias.php
___________________________________________________________________
Added: svn:eol-style
113 + native
Added: svn:keywords
214 + Id