Index: trunk/extensions/AuthorProtect/AuthorProtect.i18n.php |
— | — | @@ -10,36 +10,36 @@ |
11 | 11 | @author Ryan Schmidt |
12 | 12 | */ |
13 | 13 | $messages['en'] = array( |
14 | | -'authorprotect' => 'Protect page from non-authors', |
15 | | -'authorprotect-desc' => 'Allows the author of a page to protect it from other users', |
16 | | -'authorprotect-notauthor' => 'You are not the author of this page', |
17 | | -'authorprotect-confirm' => 'Protect', |
18 | | -'authorprotect-edit' => 'Restrict editing to authors', |
19 | | -'authorprotect-move' => 'Restrict moving to authors', |
20 | | -'authorprotect-expiry' => 'Expiration time', |
21 | | -'authorprotect-reason' => 'Reason', |
22 | | -'authorprotect-intro' => 'Use this form to lock this page from non-authors', |
23 | | -'authorprotect-success' => 'Protection successful!', |
24 | | -'authorprotect-failure' => 'Protection unsuccessful', |
25 | | -'protect-level-author' => 'Protect from non-authors', |
26 | | -'restriction-level-author' => 'Author-protected', |
| 14 | + 'authorprotect' => 'Protect page from non-authors', |
| 15 | + 'authorprotect-desc' => 'Allows the author of a page to protect it from other users', |
| 16 | + 'authorprotect-notauthor' => 'You are not the author of this page', |
| 17 | + 'authorprotect-confirm' => 'Protect', |
| 18 | + 'authorprotect-edit' => 'Restrict editing to authors', |
| 19 | + 'authorprotect-move' => 'Restrict moving to authors', |
| 20 | + 'authorprotect-expiry' => 'Expiration time', |
| 21 | + 'authorprotect-reason' => 'Reason', |
| 22 | + 'authorprotect-intro' => 'Use this form to lock this page from non-authors', |
| 23 | + 'authorprotect-success' => 'Protection successful!', |
| 24 | + 'authorprotect-failure' => 'Protection unsuccessful', |
| 25 | + 'protect-level-author' => 'Protect from non-authors', |
| 26 | + 'restriction-level-author' => 'Author-protected', |
27 | 27 | ); |
28 | 28 | |
29 | 29 | /** German (Deutsch) |
30 | 30 | * @author Raimond Spekking |
31 | 31 | */ |
32 | 32 | $messages['de'] = array( |
33 | | -'authorprotect' => 'Seitenbearbeitung auf Autoren beschränken', |
34 | | -'authorprotect-desc' => 'Ermöglicht die Seitenbearbeitung auf den Autor zu beschränken', |
35 | | -'authorprotect-notauthor' => 'Du bist nicht der Autor dieser Seite', |
36 | | -'authorprotect-confirm' => 'Schützen', |
37 | | -'authorprotect-edit' => 'Beschränke Bearbeitung auf Autoren', |
38 | | -'authorprotect-move' => 'Beschränke Verschiebung auf Autoren', |
39 | | -'authorprotect-expiry' => 'Sperrdauer', |
40 | | -'authorprotect-reason' => 'Grund', |
41 | | -'authorprotect-intro' => 'Mit diesem Formular kannst du die Seitenbearbeitung auf Autoren beschränken.', |
42 | | -'authorprotect-success' => 'Seite wurde geschützt!', |
43 | | -'authorprotect-failure' => 'Seite konnte nicht geschützt werden!', |
44 | | -'protect-level-author' => 'Seitenbearbeitung auf Autoren beschränken', |
45 | | -'restriction-level-author' => 'Autor-geschützt', |
| 33 | + 'authorprotect' => 'Seitenbearbeitung auf Autoren beschränken', |
| 34 | + 'authorprotect-desc' => 'Ermöglicht die Seitenbearbeitung auf den Autor zu beschränken', |
| 35 | + 'authorprotect-notauthor' => 'Du bist nicht der Autor dieser Seite', |
| 36 | + 'authorprotect-confirm' => 'Schützen', |
| 37 | + 'authorprotect-edit' => 'Beschränke Bearbeitung auf Autoren', |
| 38 | + 'authorprotect-move' => 'Beschränke Verschiebung auf Autoren', |
| 39 | + 'authorprotect-expiry' => 'Sperrdauer', |
| 40 | + 'authorprotect-reason' => 'Grund', |
| 41 | + 'authorprotect-intro' => 'Mit diesem Formular kannst du die Seitenbearbeitung auf Autoren beschränken.', |
| 42 | + 'authorprotect-success' => 'Seite wurde geschützt!', |
| 43 | + 'authorprotect-failure' => 'Seite konnte nicht geschützt werden!', |
| 44 | + 'protect-level-author' => 'Seitenbearbeitung auf Autoren beschränken', |
| 45 | + 'restriction-level-author' => 'Autor-geschützt', |
46 | 46 | ); |
\ No newline at end of file |
Index: trunk/extensions/AuthorProtect/AuthorProtect.php |
— | — | @@ -10,12 +10,12 @@ |
11 | 11 | } |
12 | 12 | |
13 | 13 | $wgExtensionCredits['other'][] = array( |
14 | | -'name' => 'Author Protect', |
15 | | -'author' => 'Ryan Schmidt', |
16 | | -'url' => 'http://www.mediawiki.org/wiki/Extension:AuthorProtect', |
17 | | -'version' => '1.0', |
18 | | -'description' => 'Allows the author of a page to protect it from other users', |
19 | | -'descriptionmsg' => 'authorprotect-desc', |
| 14 | + 'name' => 'Author Protect', |
| 15 | + 'author' => 'Ryan Schmidt', |
| 16 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:AuthorProtect', |
| 17 | + 'version' => '1.0', |
| 18 | + 'description' => 'Allows the author of a page to protect it from other users', |
| 19 | + 'descriptionmsg' => 'authorprotect-desc', |
20 | 20 | ); |
21 | 21 | |
22 | 22 | $wgAvailableRights[] = 'author'; //dynamically assigned to the author of a page, but can be set w/ GroupPermissions too |
— | — | @@ -198,7 +198,7 @@ |
199 | 199 | $comment .= " [$updated]"; |
200 | 200 | if ( $expiry_description && $protect ) |
201 | 201 | $comment .= "$expiry_description"; |
202 | | - |
| 202 | + |
203 | 203 | # Update restrictions table |
204 | 204 | foreach( $limit as $action => $restrictions ) { |
205 | 205 | if ($restrictions != '' ) { |
— | — | @@ -228,7 +228,7 @@ |
229 | 229 | ); |
230 | 230 | # Update the protection log |
231 | 231 | $log = new LogPage( 'protect' ); |
232 | | - |
| 232 | + |
233 | 233 | if( $protect ) { |
234 | 234 | $log->addEntry( $modified ? 'modify' : 'protect', $wgTitle, trim( $reason . " [$updated]$expiry_description" ) ); |
235 | 235 | } else { |