r70345 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70344‎ | r70345 | r70346 >
Date:18:23, 2 August 2010
Author:raymond
Status:ok
Tags:
Comment:
Add variable for new user rights
Add i18n file
Add extension to translatewiki
Modified paths:
  • /trunk/extensions/MirrorTools/MirrorTools.i18n.php (modified) (history)
  • /trunk/extensions/MirrorTools/MirrorTools.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/MirrorTools/MirrorTools.i18n.php
@@ -6,10 +6,15 @@
77
88 $messages = array();
99
10 -/* English
 10+/** English
1111 * @author Tisane
1212 */
1313 $messages['en'] = array(
1414 'mirrortools' => 'MirrorTools',
15 - 'mirrortools-desc' => 'Allows edits to be made under any username'
16 -);
\ No newline at end of file
 15+ 'mirrortools-desc' => 'Allows edits via API to be made under any username',
 16+ 'right-mirroredit' => 'Edit via API under any username',
 17+ 'group-MirrorTools' => 'Mirror tool users',
 18+ 'group-MirrorTools-member' => 'mirror tool user',
 19+ 'grouppage-MirrorTools' => '{{ns:project}}:Mirror tool users',
 20+);
 21+
Index: trunk/extensions/MirrorTools/MirrorTools.php
@@ -43,5 +43,10 @@
4444 $wgAutoloadClasses['ApiMirrorEditPage'] = $dir . 'APIMirrorTools.php';
4545 $wgAutoloadClasses['MirrorEditPage'] = $dir . 'MirrorTools.classes.php';
4646 $wgAPIModules['mirroredit'] = 'ApiMirrorEditPage';
47 -$wgExtensionMessagesFiles['MirrorTools'] = $dir . 'MirrorEdit.i18n.php';
 47+
 48+// Path to internationalization file
 49+$wgExtensionMessagesFiles['MirrorTools'] = $dir . 'MirrorTools.i18n.php';
 50+
 51+// New user rights
 52+$wgAvailableRights[] = 'mirroredit';
4853 $wgGroupPermissions['MirrorTools']['mirroredit'] = true;
\ No newline at end of file
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -696,6 +696,8 @@
697697
698698 Mini Preview
699699
 700+Mirror Tools
 701+
700702 Most Revisors
701703 aliasfile = MostRevisors/MostRevisors.alias.php
702704 ignored = mostrevisors-limit-few-revisors
@@ -1009,8 +1011,6 @@
10101012 Show Processlist
10111013 aliasfile = ShowProcesslist/ShowProcesslist.alias.php
10121014
1013 -Sidebar Donate Box
1014 -
10151015 Sign Document
10161016 aliasfile = SignDocument/SignDocument.alias.php
10171017 descmsg = signature-desc

Follow-up revisions

RevisionCommit summaryAuthorDate
r70346Partly revert r70345: removed a line by accidentraymond18:30, 2 August 2010

Status & tagging log