Login     Sign up
Changing 'like' to 'likes'
Terence Watts (@terencewatts)
Join date: Sep 15th 2010
Community posts: 75
View Profile
Send Message

When somebody clicks on the 'like' link of a post, the response is: "<member name> like this" instead of "<member name> likes this".

I cannot find the text where I can change 'like' to 'likes' - I did so in version 3.3 but can't find it in 4.1

Can anybody help?

171 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

function stream_display, in common_inc_php near line 1622

[code]
if ($row['likes'] > 0) {
$likes = ' ('.t('{1} people like this','<strong>'.$row['likes'].'</strong>').')';
}
[/code]

171 months ago
Terence Watts (@terencewatts)
Join date: Sep 15th 2010
Community posts: 75
View Profile
Send Message

Hi Falcone - Thanks. I tried that earlier but it didn't make a change where I needed it - I think it refers to when 'people' (i.e. more than one) like it - "3 people like this" which is grammatically correct.

But when it is just an individual member - we'll call him Philip - I still get 'Philip like this'.

I'm sure that if anybdoy can help me with this you can!

171 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

function dolike in jquery.module.php

near line 264

[code]
$msg = addslashes(t('like this'));
[/code]

this message is inserted in the database, so changing this line doesn't change older 'like this' messages

171 months ago
Terence Watts (@terencewatts)
Join date: Sep 15th 2010
Community posts: 75
View Profile
Send Message

Brilliant! Thank you - that worked perfectly :-)

171 months ago
Terence Watts (@terencewatts)
Join date: Sep 15th 2010
Community posts: 75
View Profile
Send Message

Can you help with one more odd thing? Many of the blog posts in my community have been attributed the wrong author - they seem to have been transposed by one, so that post 'b' is attributed to author 'c' and so on, while post 'a' is not attributed to anybody.

Not sure how to sort it out...

171 months ago