Preprocess functions will allow you to change the text of the link as well. Call devel module's dpm() function to inspect the links array in the preprocess function http://drupalcontrib.org/api/function/dpm. Change the 'title' attribute of the link depending on $node->comment_count.
dpm() output: http://imagebin.ca/view/WdTNRdD.html
On Thu, 18 Nov 2010 13:21:48 -0700
> // Add to particular link class.Maybe I am misunderstanding it or/and I did not explain good.
> if (empty($node->links['comment_comments']['attributes']['class'])) {
> $node->links['comment_comments']['attributes']['class'] = $myclass;
> }
> else {
> $node->links['comment_comments']['attributes']['class'] .= ' ' .
> $myclass;
> }
>
> // Reformat all links
> $vars['links'] = !empty($node->links) ? theme('links', $node->links,
> array('class' => 'links inline')) : '';
> }
> // END
Is not it supposed to show the text "no comments" when there are not
comments and instead when some comments it shows the text together with
the icon?
I want something different, when no comments, it shows no text but only
the icon. When some comments, it shows both text and icons.