4)
$output = str_replace('%', $number, ( false === $more) ? __('% Comments') : $more);
elseif ( ( $number > 1 ) and ( $number < 5 ) )
$output = str_replace('%', $number, ( false === $twotofour ) ? __('% Comments') : $twotofour);
elseif ( $number == 0 )
$output = ( false === $zero ) ? __('No Comments') : $zero;
else // must be one
$output = ( false === $one ) ? __('1 Comment') : $one;
echo apply_filters('comments_number_2_4', $output, $number);
}
add_filter('comments_number','comments_number_2_4');
function comments_popup_link_2_4($zero='No Comments', $one='1 Comment', $more='% Comments', $twotofour='% Comments', $CSSclass='', $none='Comments Off') {
global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post, $wpdb;
if ( is_single() || is_page() )
return;
$number = get_comments_number($id);
if ( 0 == $number && 'closed' == $post->comment_status && 'closed' == $post->ping_status ) {
echo '' . $none . '';
return;
}
if ( !empty($post->post_password) ) { // if there's a password
if ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
echo(__('Enter your password to view comments'));
return;
}
}
echo '';
comments_number_2_4($zero, $one, $more,$twotofour, $number);
echo '';
}
add_filter('comments_popup_link','comments_popup_link_2_4');
?>