r50431 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50430‎ | r50431 | r50432 >
Date:11:29, 10 May 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Add PLURAL support for 'tpt-new-pages'
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
@@ -145,7 +145,7 @@
146146 }
147147
148148 if ( count($new) ) {
149 - $wgOut->addWikiMsg( 'tpt-new-pages' );
 149+ $wgOut->addWikiMsg( 'tpt-new-pages', count( $new ) );
150150 $wgOut->addHTML( '<ol>' );
151151 foreach ( $new as $n ) {
152152 list( $rev, $title ) = $n;
Index: trunk/extensions/Translate/PageTranslation.i18n.php
@@ -41,7 +41,7 @@
4242 # Page list on the special page
4343 'tpt-list-nopages' => 'No pages are marked for translation nor ready to be marked for translation.',
4444 'tpt-old-pages' => 'Some version of {{PLURAL:$1|this page has|these pages have}} been marked for translation.',
45 - 'tpt-new-pages' => 'These pages contain text with translation tags, but no version of these pages are currently marked for translation.',
 45+ 'tpt-new-pages' => '{{PLURAL:$1|This page contains|These pages contain}} text with translation tags, but no version of {{PLURAL:$1|this page is|these pages are}} currently marked for translation.',
4646 'tpt-rev-latest' => 'latest version',
4747 'tpt-rev-old' => 'version $1',
4848 'tpt-rev-mark-new' => 'mark this version for translation',

Status & tagging log