r50599 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50598‎ | r50599 | r50600 >
Date:20:26, 14 May 2009
Author:purodha
Status:deferred
Tags:
Comment:
PLURAL added to two messages as per request of EugeneZelenko at
http://translatewiki.net/w/i.php?title=Support&oldid=1219336#Tpt-saveok_should_use_PLURAL
Modified paths:
  • /trunk/extensions/Translate/PageTranslation.i18n.php (modified) (history)
  • /trunk/extensions/Translate/tag/SpecialPageTranslation.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/SpecialPageTranslation.php
@@ -89,7 +89,7 @@
9090 $num = $wgLang->formatNum( $page->getParse()->countSections() );
9191 $link = SpecialPage::getTitleFor( 'Translate' )->getFullUrl(
9292 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 ) );
9494 }
9595
9696 public function loadPagesFromDB() {
@@ -276,8 +276,8 @@
277277 }
278278
279279 $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 ) );
282282 foreach ( $deletedSections as $s ) {
283283 $name = htmlspecialchars( $s->id );
284284 $wgOut->addHTML(
@@ -345,4 +345,4 @@
346346 return false;
347347 }
348348
349 -}
\ No newline at end of file
 349+}
Index: trunk/extensions/Translate/PageTranslation.i18n.php
@@ -27,10 +27,10 @@
2828 Only latest versions can be marked for translation.',
2929 'tpt-notsuitable' => 'Page $1 is not suitable for translation.
3030 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}}.
3232 The page can now be <span class="plainlinks">[$3 translated]</span>.',
3333 '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:',
3535 'tpt-showpage-intro' => 'Below new, existing and deleted sections are listed.
3636 Before marking this version for translation, check that the changes to sections are minimised to avoid unnecessary work for translators.',
3737 'tpt-mark-summary' => 'Marked this version for translation',
@@ -70,6 +70,10 @@
7171 'tpt-desc' => 'Short description of this extension, shown on [[Special:Version]]. Do not translate or change links.',
7272 '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.',
7373 '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.',
7478 );
7579
7680 /** Arabic (العربية)

Status & tagging log