36 $g = MessageGroups::singleton()->getGroup( $group );
38 $collection = $g->initCollection(
'en' );
39 foreach ( $languages as $code ) {
40 $collection->resetForNewLanguage( $code );
42 $collection->filter(
'ignored' );
43 $collection->filter(
'optional' );
45 $total = count( $collection );
46 $collection->filter(
'translated',
false );
47 $translated = count( $collection );
49 $translatedPercentage = ( $translated * 100 ) / $total;
50 if ( $translatedPercentage >= $threshold ) {
54 $stats[$code] = $translatedPercentage;