Index: trunk/extensions/SimpleSecurity/SimpleSecurity_body.php |
— | — | @@ -68,6 +68,7 @@ |
69 | 69 | if ( empty( $v ) ) $v = ucfirst( $k ); |
70 | 70 | $wgRestrictionLevels[] = $k; |
71 | 71 | $wgMessageCache->addMessages( array( "protect-level-$k" => $v ) ); |
| 72 | + $wgMessageCache->addMessages( array( "right-$k" => wfMsg( 'security-restricttogroup', $v ) ) ); |
72 | 73 | $wgGroupPermissions[$k][$k] = true; # members of $k must be allowed to perform $k |
73 | 74 | $wgGroupPermissions['sysop'][$k] = true; # sysops must be allowed to perform $k as well |
74 | 75 | } |
Index: trunk/extensions/SimpleSecurity/SimpleSecurity.i18n.php |
— | — | @@ -22,14 +22,15 @@ |
23 | 23 | 'security-info' => 'There are $1 on this page', |
24 | 24 | 'security-info-toggle' => 'security restrictions', |
25 | 25 | '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', |
30 | 30 | 'security-manygroups' => 'groups $1 and $2', |
31 | 31 | 'security-unchain' => 'Modify actions individually', |
32 | 32 | 'security-type-category' => 'category', |
33 | 33 | 'security-type-namespace' => 'namespace', |
| 34 | + 'security-restricttogroup' => 'Access content restricted to members of "$1"', |
34 | 35 | ); |
35 | 36 | |
36 | 37 | /** Message documentation (Message documentation) |