I would like to change the Comment text that appears for an Anonymous users that says: »

* Login or register to post comments

I haven't been able to find it by searching the source, and I suspect that is being generated dynamically. (Locale and the language translation module are in use.)

Can anyone tell me where/how it is being generated? What's the best approach to making a modification that will only appear on one content type?

Specifically, if it is a type that has file attachments I want it to say "Login or Register to post comments or view attached files."

Comments

WorldFallz’s picture

Probably the easiest way is the http://drupal.org/project/stringoverrides module.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

kjl’s picture

http://api.drupal.org/api/function/theme_comment_post_forbidden/6

or rename this and put it in your theme's template.php, and add the content-type logic in the last part where the text is generated.