Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can the language of the Facebook "like" button be changed?

I use Facebook like button on my web page with Facebook comments plugin and until now it works oK. Today I realized that it displays in three different languages (English, Czech and Slovak) in three different browsers. The problem is with different width of each language. Here I've tried to change en_US to sk, but with no effect:

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<script src="http://connect.facebook.net/en_US/all.js"></script>
like image 859
culter Avatar asked Jul 26 '11 09:07

culter


1 Answers

Change your script request to one supported by FB. In my case, i switched form english to spanish bo doing this:

before

js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";

after

 js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1";

Available options in

https://www.facebook.com/translations/FacebookLocales.xml

like image 147
tomasbarrios Avatar answered Sep 29 '22 06:09

tomasbarrios