Index: trunk/extensions/Translate/tag/PageTranslationHooks.php |
— | — | @@ -455,9 +455,14 @@ |
456 | 456 | |
457 | 457 | $wgOut->wrapWikiMsg( $wrap, array( 'tpt-translation-intro', $url, $titleText, $per ) ); |
458 | 458 | |
459 | | - if ( ( (int) $per ) < 100 ) { |
460 | | - $wrap = '<div style="font-size: x-small; text-align: center" class="mw-translate-fuzzy">$1</div>'; |
461 | | - $wgOut->wrapWikiMsg( $wrap, array( 'tpt-translation-intro-fuzzy' ) ); |
| 459 | + if ( ((int) $per) < 100 ) { |
| 460 | + $group = MessageGroups::getGroup( 'page|' . $page->getTitle()->getPrefixedText() ); |
| 461 | + $collection = $group->initCollection( $code ); |
| 462 | + $collection->filter( 'fuzzy', false ); |
| 463 | + if ( count( $collection ) ) { |
| 464 | + $wrap = '<div style="font-size: x-small; text-align: center" class="mw-translate-fuzzy">$1</div>'; |
| 465 | + $wgOut->wrapWikiMsg( $wrap, array( 'tpt-translation-intro-fuzzy' ) ); |
| 466 | + } |
462 | 467 | } |
463 | 468 | |
464 | 469 | $wgOut->addHTML( '<hr />' ); |