Index: trunk/extensions/Translate/tag/SpecialPageTranslation.php |
— | — | @@ -89,7 +89,7 @@ |
90 | 90 | $num = $wgLang->formatNum( $page->getParse()->countSections() ); |
91 | 91 | $link = SpecialPage::getTitleFor( 'Translate' )->getFullUrl( |
92 | 92 | array( 'group' => 'page|' . $page->getTitle()->getPrefixedText() ) ); |
93 | | - $wgOut->addWikiMsg( 'tpt-saveok', $titleText, $num, $link ); |
| 93 | + $wgOut->addHTML( wfMsgExt( 'tpt-saveok', array('parse'), $titleText, $num, $link ) ); |
94 | 94 | } |
95 | 95 | |
96 | 96 | public function loadPagesFromDB() { |
— | — | @@ -276,8 +276,8 @@ |
277 | 277 | } |
278 | 278 | |
279 | 279 | $deletedSections = $page->getParse()->getDeletedSections(); |
280 | | - if ( count($deletedSections) ) { |
281 | | - $wgOut->addWikiMsg( 'tpt-deletedsections' ); |
| 280 | + if ( $num = count($deletedSections) ) { |
| 281 | + $wgOut->addiHTML( wfMsgExt( 'tpt-deletedsections', array('parse'), $num ) ); |
282 | 282 | foreach ( $deletedSections as $s ) { |
283 | 283 | $name = htmlspecialchars( $s->id ); |
284 | 284 | $wgOut->addHTML( |
— | — | @@ -345,4 +345,4 @@ |
346 | 346 | return false; |
347 | 347 | } |
348 | 348 | |
349 | | -} |
\ No newline at end of file |
| 349 | +} |
Index: trunk/extensions/Translate/PageTranslation.i18n.php |
— | — | @@ -27,10 +27,10 @@ |
28 | 28 | Only latest versions can be marked for translation.', |
29 | 29 | 'tpt-notsuitable' => 'Page $1 is not suitable for translation. |
30 | 30 | Make sure it has <nowiki><translate></nowiki> tags and has a valid syntax.', |
31 | | - 'tpt-saveok' => 'The page "$1" has been marked up for translation with $2 translatable sections. |
| 31 | + 'tpt-saveok' => 'The page "$1" has been marked up for translation with $2 translatable {{PLURAL:$2|section|sections}}. |
32 | 32 | The page can now be <span class="plainlinks">[$3 translated]</span>.', |
33 | 33 | 'tpt-badsect' => '"$1" is not a valid name for section $2.', |
34 | | - 'tpt-deletedsections' => 'The following sections will no longer be used:', |
| 34 | + 'tpt-deletedsections' => 'The following {{PLURAL:$1|section|sections}} will no longer be used:', |
35 | 35 | 'tpt-showpage-intro' => 'Below new, existing and deleted sections are listed. |
36 | 36 | Before marking this version for translation, check that the changes to sections are minimised to avoid unnecessary work for translators.', |
37 | 37 | 'tpt-mark-summary' => 'Marked this version for translation', |
— | — | @@ -70,6 +70,10 @@ |
71 | 71 | 'tpt-desc' => 'Short description of this extension, shown on [[Special:Version]]. Do not translate or change links.', |
72 | 72 | 'tpt-old-pages' => 'The words "some version" refer to "one version of the page", or "a single version of each of the pages", respectively. Each page can have either one or none of its versions marked for translaton.', |
73 | 73 | 'tpt-rev-old' => '{{Identical|Version}}', |
| 74 | + 'tpt-saveok' => '$1 is a page title, |
| 75 | +$2 is a count of sections which can be used with PLURAL, |
| 76 | +$3 is an URL.', |
| 77 | + 'tpt-deletedsections' => '$1 is a count of sections.', |
74 | 78 | ); |
75 | 79 | |
76 | 80 | /** Arabic (العربية) |