-
AuthorPosts
-
rcheesley Friend
rcheesley
- Join date:
- January 2008
- Posts:
- 67
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
May 7, 2011 at 9:55 am #163696Hi,
I’m getting reports from some UK based users that the Facebook Like plugin is showing up in a different language (it’s showing as ‘Reccomendar’ rather than ‘Recommended’ which I believe is Spanish). I’ve asked the user to check their IP address which shows as a UK based IP, so I’m not sure why it would be showing in Spanish.
I am unable to reproduce this but I wondered if it is possible to manually force it to use the english language locale? I’ve tried editing the URL string however I can’t seem to get the right syntax.
Ruth
Thanh Nguyen Viet FriendThanh Nguyen Viet
- Join date:
- September 2014
- Posts:
- 1461
- Downloads:
- 0
- Uploads:
- 44
- Thanked:
- 258 times in 217 posts
May 9, 2011 at 9:57 am #390390to use English language, you must add this parameter to share url
locale=en_US
Eg: your current code is
<iframe src=”http://www.facebook.com/plugins/like.php?href=…..”>
You must change it to
<iframe src=”http://www.facebook.com/plugins/like.php?locale=en_US&href=….”>
You can read detail information:
http://developers.facebook.com/docs/reference/plugins/like/A languages list is defined at this page
http://www.facebook.com/translations/FacebookLocales.xmlSeptember 5, 2011 at 2:57 am #410639How do I change the below code from file:
plugins/content/plg_jafacebooklike.php
From:
'//connect.facebook.net/en_US/all.js';
To:
'//connect.facebook.net/??a variable to auto detect the current language of the site??/all.js';
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 5, 2011 at 3:41 am #410645<em>@yeknom 265216 wrote:</em><blockquote>How do I change the below code from file:
plugins/content/plg_jafacebooklike.php
From:
'//connect.facebook.net/en_US/all.js';
To:
'//connect.facebook.net/??a variable to auto detect the current language of the site??/all.js';
</blockquote>Hi you can do like this
$fbScript = 'http://connect.facebook.net/' . str_replace ( '-', '_', JFactory::getLanguage ()->getTag () ) . '/all.js#xfbml=1';
$doc = & JFactory::getDocument ();
$doc->addScript ( $fbScript );
Thank you
Viet VuSeptember 5, 2011 at 4:40 am #410657Sorry where would I put that code?
Please advise.
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 5, 2011 at 4:50 am #410658Hi
Allow me moment
I’ll make a patch for you.
Thank you
Viet Vujooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 5, 2011 at 5:18 am #410662Hi
Please follow this topic for my patched.
http://www.joomlart.com/forums/topic/ja-facebook-like-plugin-patch-for-language-detection/
Thank you
Viet Vu -
AuthorPosts
This topic contains 7 replies, has 4 voices, and was last updated by jooservices 13 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum