Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -362,14 +362,24 @@ |
363 | 363 | } |
364 | 364 | |
365 | 365 | class AliasMessageGroup extends ExtensionMessageGroup { |
| 366 | + public function initCollection( $code ) { |
| 367 | + $collection = array(); |
| 368 | + $defs = $this->load( 'en' ); |
| 369 | + foreach ( $defs as $key => $value ) { |
| 370 | + $collection[$key] = new FatMessage( $key, implode( ", ", $value ) ); |
| 371 | + } |
366 | 372 | |
367 | | - public function fillCollection( MessageCollection $collection ) { |
| 373 | + $this->fillCollection( $collection ); |
| 374 | + return $collection; |
| 375 | + } |
| 376 | + |
| 377 | + public function fillCollection( $collection ) { |
368 | 378 | $this->fill( $collection ); |
369 | 379 | $this->fillContents( $collection ); |
370 | 380 | } |
371 | 381 | |
372 | 382 | |
373 | | - function fill( MessageCollection $messages ) { |
| 383 | + function fill( $messages ) { |
374 | 384 | $cache = $this->load( $messages->code ); |
375 | 385 | foreach ( $messages->keys() as $key ) { |
376 | 386 | if ( isset( $cache[$key] ) ) { |