Index: trunk/extensions/FlagPage/FlagPage.alias.php |
— | — | @@ -1,12 +1,22 @@ |
2 | 2 | <?php |
3 | | -$aliases = array(); |
| 3 | +$specialPageAliases = array(); |
4 | 4 | |
5 | | -/** English */ |
6 | | -$aliases['en'] = array( |
| 5 | +/** English |
| 6 | + * @author Church of emacs |
| 7 | + */ |
| 8 | +$specialPageAliases['en'] = array( |
7 | 9 | 'FlagPage' => array( 'FlagPage' ), |
8 | 10 | ); |
9 | 11 | |
10 | | -/** German (Deutsch) */ |
11 | | -$aliases['de'] = array( |
| 12 | +/** German (Deutsch) |
| 13 | + * @author Church of emacs |
| 14 | + */ |
| 15 | +$specialPageAliases['de'] = array( |
12 | 16 | 'FlagPage' => array( 'Seite markieren'), |
13 | 17 | ); |
| 18 | + |
| 19 | +/** |
| 20 | + * For backwards compatibility with MediaWiki 1.15 and earlier. |
| 21 | + */ |
| 22 | +$aliases =& $specialPageAliases; |
| 23 | + |
Index: trunk/extensions/FlagPage/FlagPage.body.php |
— | — | @@ -125,7 +125,7 @@ |
126 | 126 | } |
127 | 127 | $id = Title::newFromText( $page )->getArticleId(); |
128 | 128 | if ($id==0) { # Page does not exist. Show preview page |
129 | | - $wgOut->addWikiMsg( 'flagpage-nonexistent', $page ); |
| 129 | + $wgOut->wrapWikiMsg( "<div class='error plainlinks'>\n$1</div>\n", array( 'flagpage-nonexistent', $page ) ); |
130 | 130 | $this->preview( $page, $template ); |
131 | 131 | return; |
132 | 132 | } |
Index: trunk/extensions/FlagPage/FlagPage.i18n.php |
— | — | @@ -1,26 +1,27 @@ |
2 | 2 | <?php |
3 | 3 | $messages = array(); |
4 | 4 | |
5 | | -/* *** English *** */ |
| 5 | +/** English |
| 6 | + * @author Church of emacs |
| 7 | + */ |
6 | 8 | $messages['en'] = array( |
7 | 9 | 'flagpage' => 'Flag a page', |
8 | | - 'flagpage-desc' => "Flag page with predefined templates", |
9 | | - 'flagpage-templatelist' => "<!-- |
| 10 | + 'flagpage-desc' => 'Flag page with predefined templates', |
| 11 | + 'flagpage-templatelist' => '<!-- |
10 | 12 | Edit this page to configure templates to use. |
11 | 13 | Examples: |
12 | 14 | * [[Template:Unsourced|The article does not cite any references]] |
13 | 15 | * [[Template:NPOV|The article is written in a biased way]] |
14 | 16 | * [[Template:Delete|The article should be deleted]] |
15 | | - |
| 17 | +-->', |
16 | 18 | 'flagpage-nopageselectedtitle' => 'No page selected', |
17 | 19 | 'flagpage-nopageselected' => 'You did not specify a page', |
18 | 20 | 'flagpage-emptylisttitle' => 'No templates configured', |
19 | 21 | 'flagpage-emptylist' => 'You need to configure your lists of templates. Edit [[{{ns:8}}:flagpage-templatelist]] to do so now.', |
20 | 22 | 'flagpage-preview' => 'Preview of the selected template:', |
21 | | - 'flagpage-confirmsave' => 'Please confirm your changes. ', |
| 23 | + 'flagpage-confirmsave' => 'Please confirm your changes.', |
22 | 24 | 'flagpage-submitbutton' => 'Save page with this template', |
23 | | - '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-nonexistent'=> 'The page “$1” does not exist. Perhaps it has been [{{fullurl:Special:Log|page=$1}} moved or deleted].', |
24 | 26 | 'flagpage-summary' => 'Added template [[$1]] using FlagPage', |
25 | 27 | 'flagpage-success' => '[[$1]] has been added to the page [[$2]].', |
26 | 28 | 'flagpage-tab' => 'Flag' |
Index: trunk/extensions/FlagPage/FlagPage.php |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | 'author' => 'Church of emacs', |
11 | 11 | 'url' => 'http://www.mediawiki.org/wiki/Extension:FlagPage', |
12 | 12 | 'descriptionmsg' => 'flagarticle-desc', |
13 | | - 'version' => '0.1.1beta', |
| 13 | + 'version' => '0.1.2beta', |
14 | 14 | ); |
15 | 15 | |
16 | 16 | $dir = dirname(__FILE__) . '/'; |
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt |
— | — | @@ -430,6 +430,9 @@ |
431 | 431 | |
432 | 432 | Fixed Image |
433 | 433 | |
| 434 | +Flag Page |
| 435 | +aliasfile = FlagPag/FlagPag.alias.php |
| 436 | + |
434 | 437 | Flagged Revisions - Flagged Revs |
435 | 438 | id = ext-flaggedrevs-flaggedrevs |
436 | 439 | file = FlaggedRevs/language/FlaggedRevs.i18n.php |