WordPress.org

Forums

GetSocial
Changing language (4 posts)

  1. gezginrocker
    Member
    Posted 3 years ago #

    Hello,

    By default Like button is in English. How can I change the language?

    Thanks

    http://wordpress.org/extend/plugins/getsocial/

  2. Riyaz
    Member
    Plugin Author

    Posted 3 years ago #

    Facebook takes the default page language. So if your page is in another language, it should automatically show up in that language.

  3. gezginrocker
    Member
    Posted 3 years ago #

    first of all thanks for your very nice plugin.

    but unfortunately it doesn't. my wp is in turkish, and I tested in turkish language browsers, but like button was still in english.

    I found a solution though. I edited getsocial.php and added "locale=tr_TR&..." like this:

    .'&locale=tr_TR&...;send=false&layout=box_count&width='. $bar_width .'&show_faces=false&action=like&colorscheme=light&font&height=62" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'. $bar_width .'px; height:62px;" allowTransparency="true"></iframe>'

  4. Kerfred
    Member
    Posted 2 years ago #

    Congratulations for this plugin.

    To localize the Facebook like button for every language, the patch is to do this modification in getsocial.php line 735:
    Replace:
    .' js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";'
    By:
    .' js.src = "//connect.facebook.net/' . WPLANG . '/all.js#xfbml=1";'

    Can you include it in the next release ?
    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • GetSocial
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags