Index: trunk/extensions/Translate/SpecialTranslationStats.php |
— | — | @@ -434,6 +434,15 @@ |
435 | 435 | $labels = array(); |
436 | 436 | } |
437 | 437 | |
| 438 | + foreach ( $labels as &$label ) { |
| 439 | + if ( strpos( $label, '@' ) === false ) continue; |
| 440 | + list( $groupId, $code ) = array_map( 'trim', explode( '@', $label, 2 ) ); |
| 441 | + $code = TranslateUtils::getLanguageName( $code, false, $wgLang->getCode() ) . " ($code)"; |
| 442 | + $group = MessageGroups::getGroup( $groupId )->getLabel(); |
| 443 | + $label = "$group @ $code"; |
| 444 | + } |
| 445 | + |
| 446 | + |
438 | 447 | $last = array_splice( $data, -1, 1 ); |
439 | 448 | $data[key( $last ) . '*'] = current( $last ); |
440 | 449 | |
— | — | @@ -782,11 +791,6 @@ |
783 | 792 | * @return \string Label. |
784 | 793 | */ |
785 | 794 | protected function makeLabel( $group, $code ) { |
786 | | - if ( $code ) { |
787 | | - global $wgLang; |
788 | | - $code = TranslateUtils::getLanguageName( $code, false, $wgLang->getCode() ) . " ($code)"; |
789 | | - } |
790 | | - |
791 | 795 | if ( $group && $code ) { |
792 | 796 | return "$group @ $code"; |
793 | 797 | } elseif ( $group || $code ) { |