Index: trunk/extensions/Drafts/Drafts.i18n.php |
— | — | @@ -12,6 +12,7 @@ |
13 | 13 | */ |
14 | 14 | $messages['en'] = array( |
15 | 15 | 'drafts' => 'Drafts', |
| 16 | + 'drafts-desc' => 'Adds the ability to save [[Special:Drafts|draft]] versions of a page on the server', |
16 | 17 | 'drafts-view' => 'ViewDraft', |
17 | 18 | 'drafts-view-article' => 'Page', |
18 | 19 | 'drafts-view-existing' => 'Existing drafts', |
— | — | @@ -21,7 +22,7 @@ |
22 | 23 | 'drafts-view-mustlogin' => 'You must $1 to see your drafts.', |
23 | 24 | 'drafts-view-nonesaved' => 'You do not have any drafts saved at this time.', |
24 | 25 | 'drafts-view-notice' => 'You have $1 for this page.', |
25 | | - 'drafts-view-notice-link' => '$1 {{PLURAL:$1|draft|drafts}}', |
| 26 | + 'drafts-view-notice-link' => '$1 {{PLURAL:$1|draft|drafts}}', |
26 | 27 | 'drafts-view-warn' => 'By navigating away from this page you will loose all unsaved changes to this page. |
27 | 28 | Do you want to continue?', |
28 | 29 | 'drafts-save' => 'Save this as a draft [d]', |
Index: trunk/extensions/Drafts/Drafts.php |
— | — | @@ -2,25 +2,21 @@ |
3 | 3 | |
4 | 4 | // Check environment |
5 | 5 | if ( !defined( 'MEDIAWIKI' ) ) { |
6 | | - echo( "This is an extension to the MediaWiki package and cannot be run standalone.\n" ); |
7 | | - die( - 1 ); |
| 6 | + echo( "This is an extension to the MediaWiki package and cannot be run standalone.\n" ); |
| 7 | + die( - 1 ); |
8 | 8 | } |
9 | 9 | |
10 | 10 | // Credits |
11 | 11 | $wgExtensionCredits['other'][] = array( |
12 | | - 'name' => 'Save Drafts', |
| 12 | + 'name' => 'Drafts', |
13 | 13 | 'author' => 'Trevor Parscal', |
14 | 14 | 'url' => 'http://www.mediawiki.org/wiki/Extension:Drafts', |
15 | | - 'description' => 'Allow users to save drafts' |
| 15 | + 'description' => 'Save and view draft versions of pages', |
| 16 | + 'svn-date' => '$LastChangedDate$', |
| 17 | + 'svn-revision' => '$LastChangedRevision$', |
| 18 | + 'description-msg' => 'drafts-desc', |
16 | 19 | ); |
17 | 20 | |
18 | | -$wgExtensionCredits['specialpage'][] = array( |
19 | | - 'name' => 'View Drafts', |
20 | | - 'author' => 'Trevor Parscal', |
21 | | - 'url' => 'http://www.mediawiki.org/wiki/Extension:Drafts', |
22 | | - 'description' => 'Drafts extension page' |
23 | | -); |
24 | | - |
25 | 21 | /* Configuration */ |
26 | 22 | |
27 | 23 | // Shortcut to this extension directory |
— | — | @@ -47,7 +43,7 @@ |
48 | 44 | |
49 | 45 | // Register save interception to detect non-javascript draft saving |
50 | 46 | $wgHooks['EditFilter'][] = 'DraftHooks::interceptSave'; |
51 | | - |
| 47 | + |
52 | 48 | // Register article save hook |
53 | 49 | $wgHooks['ArticleSaveComplete'][] = 'DraftHooks::discard'; |
54 | 50 | |
— | — | @@ -62,7 +58,7 @@ |
63 | 59 | |
64 | 60 | // Register ajax add script hook |
65 | 61 | $wgHooks['AjaxAddScript'][] = 'DraftHooks::addJS'; |
66 | | - |
| 62 | + |
67 | 63 | // Register database operations |
68 | 64 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'efCheckSchema'; |
69 | 65 | |
Property changes on: trunk/extensions/Drafts/Drafts.php |
___________________________________________________________________ |
Name: svn:keywords |
70 | 66 | + LastChangedDate LastChangedRevision |