Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Different languages for I like button

How do I display the text of the I like button in a different language with HTML5 script?

like image 546
Koen Piller Avatar asked Mar 18 '12 14:03

Koen Piller


People also ask

What is the meaning of like button?

A like button, like option, or recommend button, is a feature in communication software such as social networking services, Internet forums, news websites and blogs where the user can express that they like, enjoy or support certain content.

Who invented the like button?

Justin Rosenstein has clocked time at both Google and Facebook, where he helped developed the Like button. He now spends his time as co-founder and head of product at the collaboration software company Asana together with Facebook co-founder Dustin Moskovitz.


2 Answers

When you initialize fb-jssdk

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

change js.src url to your locale

like image 117
Sergey Toy Avatar answered Nov 29 '22 14:11

Sergey Toy


Go to http://developers.facebook.com/docs/reference/plugins/like/ and search for "How do I display the Like button in different languages?"

like image 39
Radu Avatar answered Nov 29 '22 15:11

Radu