r51224 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51223‎ | r51224 | r51225 >
Date:10:50, 31 May 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
*sigh*, maybe alias export works now
Modified paths:
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/MessageGroups.php
@@ -370,13 +370,14 @@
371371 $collection[$key] = new FatMessage( $key, implode( ", ", $value ) );
372372 }
373373
374 - $this->fillCollection( $collection );
375 - return $collection;
376 - }
377 -
378 - public function fillCollection( MessageCollection $collection ) {
379374 $this->fill( $collection );
380375 $this->fillContents( $collection );
 376+
 377+ foreach ( array_keys($collection->keys()) as $key ) {
 378+ if ( $collection[$key]->translation() === null ) unset($collection[$key]);
 379+ }
 380+
 381+ return $collection;
381382 }
382383
383384

Status & tagging log