Index: trunk/extensions/FlagPage/FlagPage.i18n.php |
— | — | @@ -3,8 +3,8 @@ |
4 | 4 | |
5 | 5 | /* *** English *** */ |
6 | 6 | $messages['en'] = array( |
7 | | - 'flagpage' => 'Flag an article', |
8 | | - 'flagpage-desc' => "Flag article with predefined templates", |
| 7 | + 'flagpage' => 'Flag a page', |
| 8 | + 'flagpage-desc' => "Flag page with predefined templates", |
9 | 9 | 'flagpage-templatelist' => "<!-- |
10 | 10 | Edit this page to configure templates to use. |
11 | 11 | Examples: |
— | — | @@ -20,9 +20,9 @@ |
21 | 21 | 'flagpage-preview' => 'Preview of the selected template:', |
22 | 22 | 'flagpage-confirmsave' => 'Please confirm your changes. ', |
23 | 23 | 'flagpage-submitbutton' => 'Save page with this template', |
24 | | - 'flagpage-nonexistent'=> '<span class="plainlinks">The article “$1” does not exist. Perhaps it has been [{{fullurl:Special:Log|page=$1}} moved or deleted].</span>', |
25 | | - 'flagpage-summary' => 'Added template [[$1]] using FlagArticle', |
| 24 | + 'flagpage-nonexistent'=> '<span class="plainlinks">The page “$1” does not exist. Perhaps it has been [{{fullurl:Special:Log|page=$1}} moved or deleted].</span>', |
| 25 | + 'flagpage-summary' => 'Added template [[$1]] using FlagPage', |
26 | 26 | 'flagpage-success' => '[[$1]] has been added to the page [[$2]].', |
27 | | - 'flagpage-tab' => 'flag' |
| 27 | + 'flagpage-tab' => 'Flag' |
28 | 28 | ); |
29 | 29 | |
Index: trunk/extensions/FlagPage/FlagPage.php |
— | — | @@ -20,3 +20,5 @@ |
21 | 21 | $wgExtensionAliasesFiles['FlagPage'] = $dir . 'FlagPage.alias.php'; |
22 | 22 | $wgSpecialPages['FlagPage'] = 'FlagPage'; # Let MediaWiki know about your new special page. |
23 | 23 | $wgHooks['SkinTemplateTabs'][] = array( new FlagPageTabInstaller(), 'insertTab' ); # Hook displays the "flag" tab on pages |
| 24 | +$wgHooks['SkinTemplateNavigation'][] = array( new FlagPageTabInstaller(), 'insertTabVector' ); # The same, but with the new hook for vector |
| 25 | + |
Index: trunk/extensions/FlagPage/FlagPage.hooks.php |
— | — | @@ -17,4 +17,12 @@ |
18 | 18 | 'href' => $special->getLocalUrl( $linkParam ) ); |
19 | 19 | return true; |
20 | 20 | } |
| 21 | + |
| 22 | + function insertTabVector( &$sktemplate, &$links ) { |
| 23 | + // the old '$content_actions' array is thankfully just a |
| 24 | + // sub-array of this one |
| 25 | + // copied from Extension:ApprovedRevs (r74381). Author: yaron |
| 26 | + self::insertTab( $skin, $links['views'] ); |
| 27 | + return true; |
| 28 | + } |
21 | 29 | } |