By halloffame on
I'm talking about strings such as 'Post new comment' or the 'Comments' string itself displayed in the comment form... How will we able to replace these strings such as 'Add Reviews' and 'Reviews' instead? This would be easier if I want the replaced strings to override all the strings in all of the comment forms located in all node types. BUT I only want it take affect on a certain node type and not all.
Comments
bump
I was able to replace the 'Comments' title to 'Reviews' in reviews node type using the ff function:
Worked perfectly there.
But I'm still scratching my head over the
t('Post new comment')I can't seem to figure the function to set this in per-node type basis.Please throw in some little light here! Much appreciated.
Aw far as i know you have to
Aw far as i know you have to make a custom module to alter the $links variable to get it working.
Not sure, i think this post is similar: http://drupal.org/node/352020
ReliabilityConsistencyFeedbackYou maybe referring to
You may be referring to
t('Add new comment'). It's different. It turns out thatt('Post new comment')is being generated bycomment_form_boxfunction and in box.tpl template and its not a$linkvariable.t('Add new comment')is incomment_linkfunction.Here's what I have so far: To
Here's what I have so far:
To replace the h2 $title 'Comments' to 'Reviews' I have this --
To replace the h2 title 'Post a comment' in the comment form to 'Write a review' --
Therefore I have this function:
As for the
comment_linkI created my own custom module to do just that.Hope it helps to those who has the same ordeal.
So nice talking to myself (oh thanks FanisTsiros!).
How to replace teaser links?
Thanks a LOT! This certainly helps!
But how do I replace teaser strings like "Add new comment" or "1 comment" or "3 comments" with "Add your review", "1 review" "3 reviews" ???
Please help! I could find no answer no matter how much I searched.
Thanks in advance!
Please can you help?
Hi,
Please can you help me? can you tell me which files exactly do I have to change to make this work?
Thank You in advance.
Just did this
Add this function to your template.php file