public static function searchProfileSetupEngine( $search, /*string*/ $profile, SearchEngine $engine ) { if ( $profile !== 'translation' ) { return true; } $context = $search->getContext(); $selected = $context->getRequest()->getVal( 'languagefilter' ); if ( $selected !== '-' && $selected ) { $engine->setFeatureData( 'title-suffix-filter', "/$selected" ); $search->setExtraParam( 'languagefilter', $selected ); } return true; }