38 $g = MessageGroups::singleton()->getGroup( $group );
40 $collection = $g->initCollection(
'en' );
41 foreach ( $languages as $code ) {
42 $collection->resetForNewLanguage( $code );
44 $collection->filter(
'ignored' );
45 $collection->filter(
'optional' );
47 $total = count( $collection );
48 $collection->filter(
'translated',
false );
49 $translated = count( $collection );
51 $translatedPercentage = ( $translated * 100 ) / $total;
52 if ( $translatedPercentage >= $threshold ) {
56 $stats[$code] = $translatedPercentage;