Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -370,13 +370,14 @@ |
371 | 371 | $collection[$key] = new FatMessage( $key, implode( ", ", $value ) ); |
372 | 372 | } |
373 | 373 | |
374 | | - $this->fillCollection( $collection ); |
375 | | - return $collection; |
376 | | - } |
377 | | - |
378 | | - public function fillCollection( MessageCollection $collection ) { |
379 | 374 | $this->fill( $collection ); |
380 | 375 | $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; |
381 | 382 | } |
382 | 383 | |
383 | 384 | |