r106938 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106937‎ | r106938 | r106939 >
Date:11:01, 21 December 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Followup r106797: ignore unmarked pages which had haved <translate>, but the latest version doesn't
Modified paths:
  • /trunk/extensions/Translate/tag/SpecialPageTranslation.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/SpecialPageTranslation.php
@@ -185,8 +185,10 @@
186186
187187 foreach ( $in as $index => $page ) {
188188 if ( !isset( $page['tp:mark'] ) ) {
189 - // Never marked
190 - $out['proposed'][$index] = $page;
 189+ // Never marked, check that the latest version is ready
 190+ if ( $page['tp:tag'] === $page['latest'] ) {
 191+ $out['proposed'][$index] = $page;
 192+ } // Otherwise ignore such pages
191193 } elseif ( $page['tp:tag'] === $page['latest'] ) {
192194 // Marked and latest version if fine
193195 $out['active'][$index] = $page;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r106797I18n #320: new section for discouraged pages...nikerabbit13:50, 20 December 2011

Status & tagging log