SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2005
    Location
    London
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool how to make a like button localised i.e J'taime instead of LIKE

    Hi there

    I am using the facebook tab app where I have a single image with a LIKE button positioned absolutely onto of the image. When clicked it counts the like and redirects the user to the 'reveal tab' content. All is working fine however i need the button to be displayed in French as its used on our french facebook page. I know you have to change the setting to be 'French' for the language in your account and this works for the like button that automatically gets displayed above the tab however the like button used inside the tab stays in English. Does anyone know how i can get the button to display in french.

    This is the code I am using:

    <img src='https://sites.google.com/site/test/facebook-kv.jpg' />
    <div style="position: absolute; top: 645px; left: 342px;" width: 300px; height: 50px;>
    <fb:like layout="button_count" show_faces="false" width="50" />
    </div>
    <div style="position: absolute; top: 645px; left: 342px;" width: 300px; height: 50px;>
    <fb:like layout="button_count" show_faces="false" width="50" />
    </div>


    Many thanks

  2. #2
    Word Painter silver trophy Shyflower's Avatar
    Join Date
    Oct 2003
    Location
    Winona, MN USA
    Posts
    10,054
    Mentioned
    142 Post(s)
    Tagged
    2 Thread(s)
    The text is embedded in the button. You simply need a model designed in French.

    Try this page: How The Facebook Like Button Looks Around The World
    Linda Jenkinson
    "Say what you mean. Mean what you say. But don't say it mean." ~Unknown

  3. #3
    SitePoint Enthusiast bfpseller's Avatar
    Join Date
    Aug 2010
    Location
    USA
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will have to change your js file to use the language you want. Then Like, Recommend and other text will be localized

    Sample code is below for German (//connect.facebook.net/de_DE/all.js)

    <script>
    window.fbAsyncInit = function() {
    FB.init({appId: 'your App ID here', status: true, cookie: true,
    xfbml: true});
    };
    (function() {
    var e = document.createElement('script');

    e.type = 'text/javascript';
    e.src = document.location.protocol +
    '//connect.facebook.net/de_DE/all.js';
    e.async = true;

    document.getElementById('fb-root').appendChild(e);
    }());
    </script>

    If you need a live sample, you can visit the German page of my site (as in my sig)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •