How to translate Facebook Like and Send button's ?

GK User
Sun Dec 04, 2011 10:50 pm
Hello, how can I translate Facebook Like button and Facebook Send button (displayed at the bottom of articles) to different languages ? I've tried to find it in xx_XX.tpl_gk_boutique.ini - but without any result. Thanks for any help...
User avatar
Fresh Boarder

GK User
Mon Dec 05, 2011 6:52 am
Hi,

You can't translate them because FB does that for you. FB detects the language you use in your FB page to translate accordingly.
User avatar
Platinum Boarder

GK User
Mon Dec 05, 2011 9:59 am
You can select language in Social API tab in template settings, field 'Facebook API language'
User avatar
Platinum Boarder

GK User
Mon Dec 05, 2011 11:46 am
Yes I know about it, but it doesn't translate the buttons on my site . When you will click on the button "Send" then the language will change on that, which you are using in facebook but the buttons are still in english. Also the message: "Be the first of your friends to like this" is only in english..
User avatar
Fresh Boarder

GK User
Tue Dec 06, 2011 1:37 pm
Try going to http://facebook.com and login and change your language, then go to your site, the buttons will be translated to the language you selected before.
User avatar
Platinum Boarder

GK User
Fri Dec 16, 2011 2:19 pm
Don Lee wrote:Try going to http://facebook.com and login and change your language, then go to your site, the buttons will be translated to the language you selected before.


when I've done exactly what did you said, facebook like and send buttons just dissapeared from my site.. and it usually happens when i have a facebook site open in other tab.. strange.. :)
User avatar
Fresh Boarder

GK User
Fri Dec 16, 2011 2:38 pm
I think I found the solution:

in the layouts/blocks/social.php
Change:
Code: Select all
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';

to:
Code: Select all
e.src = document.location.protocol + '//connect.facebook.net/<?php echo $this->getParam('fb_lang', 'en_US'); ?>/all.js';
User avatar
Platinum Boarder

GK User
Fri Dec 16, 2011 4:54 pm
Don Lee wrote:I think I found the solution:

in the layouts/blocks/social.php
Change:
Code: Select all
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';

to:
Code: Select all
e.src = document.location.protocol + '//connect.facebook.net/<?php echo $this->getParam('fb_lang', 'en_US'); ?>/all.js';


Unfortunately it also didn't work.., but because for now, I need those buttons only in polish language, I've made a temporary solution and I changed line: e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
to e.src = document.location.protocol + '//connect.facebook.net/pl_PL/all.js';

and it's working :)

Thank You once again
User avatar
Fresh Boarder

GK User
Sat Dec 17, 2011 9:21 am
It did not work because you did not change language setting value for social language in template manager to "pl_PL".
User avatar
Platinum Boarder

GK User
Sat Dec 17, 2011 10:59 am
Don Lee wrote:It did not work because you did not change language setting value for social language in template manager to "pl_PL".


I did it, but i changed it for: pl_PL, en_US, de_DE, fr_FR
User avatar
Fresh Boarder

GK User
Sat Dec 17, 2011 1:17 pm
If so it should work after you applied my fix!
User avatar
Platinum Boarder

GK User
Wed Dec 21, 2011 9:56 pm
I had the same trouble: fixing code in the layouts/blocks/social.php solved my problem.
Thanks to Don Lee.
User avatar
Junior Boarder

GK User
Thu Apr 12, 2012 7:15 am
Hi! this is old discussion but I got exactly same problem like milon62.

I use yourshop template. joomla 2.5.4 an vm 2.0.4
with other site http://www.venootti.fi with eSport template it work but now in the other not.
webpage address is http://www.vaf.fi
the page where i use like button is http://www.vaf.fi/index.php/yritys

please, can you help?
User avatar
Senior Boarder

GK User
Sun Apr 15, 2012 1:08 pm
Hi grimmari,

Have you set FB language to your language code? I have checked your site's source code and seen it still uses English in the path:
Code: Select all
js.src = "//connect.facebook.net/en_US/all.js#appId=177111755694317&xfbml=1";

http://easycaptures.com/fs/uploaded/506/4016292052.png

If you have done but it doesn't help, just try the solution I've provided earlier to hardcode the path. In case none of these helps, just send me a PM to provide backend and FTP access info then I will check further to help you out.

Cheers,
User avatar
Platinum Boarder

GK User
Thu Dec 12, 2013 10:34 am
Hi,

This is an old discussion, but I do have the same problem. I use Rockwall template for Joonla 2.5x. I've set the language to nl_NL in the Social API part on the template setting and have tried to change the social.php file, but none works.
On my site's source code it still uses English. My site domain is not active for public. Through a temporary IP address change to the hostfile on my computer I can work on my website.
The second problem is: when I want to 'Like' the page I do get a pop up window, but when I am logged in I always get an error message eventhough I am actually able to log in. The 'likes' button is changed and it shows that I 'like' the page. - Is it caused by the fact that the website is not yet active for public?

Can someone help me with this problem please?

Thanks,
Melda

Don Lee wrote:Hi grimmari,

Have you set FB language to your language code? I have checked your site's source code and seen it still uses English in the path:
Code: Select all
js.src = "//connect.facebook.net/en_US/all.js#appId=177111755694317&xfbml=1";

http://easycaptures.com/fs/uploaded/506/4016292052.png

If you have done but it doesn't help, just try the solution I've provided earlier to hardcode the path. In case none of these helps, just send me a PM to provide backend and FTP access info then I will check further to help you out.

Cheers,
User avatar
Junior Boarder

GK User
Sat Dec 14, 2013 2:39 pm
Could you tell me what is your templates version? This problem was fixed in one of the updates.
User avatar
Platinum Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.