Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • rcheesley Friend
    #163696

    Hi,

    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 Friend
    #390390

    to 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.xml

    yeknom Friend
    #410639

    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';

    jooservices Friend
    #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 Vu

    yeknom Friend
    #410657

    Sorry where would I put that code?

    Please advise.

    jooservices Friend
    #410658

    Hi
    Allow me moment
    I’ll make a patch for you.
    Thank you
    Viet Vu

    jooservices Friend
    #410662

    Hi
    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

Viewing 7 posts - 1 through 7 (of 7 total)

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