/* remove/change 'says' in comments // alchymyth 2011 */
class Comment_Says_Custom_Text_Wrangler {
function comment_says_text($translation, $text, $domain) {
$new_says = ''; //whatever you want to have instead of 'says' in comments
$translations = &get_translations_for_domain( $domain );
if ( $text == '%s says:' ) {
if($new_says) $new_says = ' '.$new_says; //compensate for the space character
return $translations->translate( '%s'.$new_says.':' );
} else {
return $translation; // standard text
}
}
}
add_filter('gettext', array('Comment_Says_Custom_Text_Wrangler', 'comment_says_text'), 10, 4);