r50717 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50716‎ | r50717 | r50718 >
Date:11:20, 18 May 2009
Author:nad
Status:deferred
Tags:
Comment:
Add a message for the group acting as a right - eg. as seen in Special:ListGroupRights
Modified paths:
  • /trunk/extensions/SimpleSecurity/SimpleSecurity.i18n.php (modified) (history)
  • /trunk/extensions/SimpleSecurity/SimpleSecurity_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SimpleSecurity/SimpleSecurity_body.php
@@ -68,6 +68,7 @@
6969 if ( empty( $v ) ) $v = ucfirst( $k );
7070 $wgRestrictionLevels[] = $k;
7171 $wgMessageCache->addMessages( array( "protect-level-$k" => $v ) );
 72+ $wgMessageCache->addMessages( array( "right-$k" => wfMsg( 'security-restricttogroup', $v ) ) );
7273 $wgGroupPermissions[$k][$k] = true; # members of $k must be allowed to perform $k
7374 $wgGroupPermissions['sysop'][$k] = true; # sysops must be allowed to perform $k as well
7475 }
Index: trunk/extensions/SimpleSecurity/SimpleSecurity.i18n.php
@@ -22,14 +22,15 @@
2323 'security-info' => 'There are $1 on this page',
2424 'security-info-toggle' => 'security restrictions',
2525 'security-inforestrict' => '$1 is restricted to $2',
26 - 'security-desc-LS' => "''(applies because this page is in the '''$2 $1''')''",
27 - 'security-desc-PR' => "''(set from the '''protect tab''')''",
28 - #'security-desc-CR' => "''(this restriction is '''in effect now''')''",
29 - 'security-infosysops' => "No restrictions are in effect because you are a member of the '''sysop''' group",
 26+ 'security-desc-LS' => '(applies because this page is in the "$2 $1")',
 27+ 'security-desc-PR' => '(set from the "protect" tab)',
 28+ #'security-desc-CR' => "(this restriction is in effect now)",
 29+ 'security-infosysops' => 'No restrictions are in effect because you are a member of the "sysop" group',
3030 'security-manygroups' => 'groups $1 and $2',
3131 'security-unchain' => 'Modify actions individually',
3232 'security-type-category' => 'category',
3333 'security-type-namespace' => 'namespace',
 34+ 'security-restricttogroup' => 'Access content restricted to members of "$1"',
3435 );
3536
3637 /** Message documentation (Message documentation)

Status & tagging log