New Dynamic YouTube Gallery - Embed YouTube Playlist, Channel, Live Stream in minutes. Read More

Where do i change the language in facebook plugin

  • ivan
  • Topic Author
  • Visitor
  • Visitor

Where do i change the language in facebook plugin was created by ivan

Hi.

Where can i change the language from english to danish in the facebook comment plugin.

regards.
Ivan.
12 years 6 days ago #425

Please Log in or Create an account to join the conversation.

  • Posts: 2478
  • Thank you received: 1451

Replied by Administrator on topic Re: Where do i change the language in facebook plugin

We don't see the Facebook has Language support for Comments Plugin.

Kindly check : developers.facebook.com/docs/reference/plugins/comments/
12 years 6 days ago #427

Please Log in or Create an account to join the conversation.

  • ivan
  • Topic Author
  • Visitor
  • Visitor

Replied by ivan on topic Re: Where do i change the language in facebook plugin

Hi.

I have figured it out. You just have to paste the following in the start of the body tag in your template index file.
<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/da_DK/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Worked for me.

Regards.
Ivan
12 years 1 day ago #524

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0

Replied by Marisa on topic Re: Where do i change the language in facebook plugin

hello, everybody!

The facebook plugin are located in 2 components in my website... all videos share and K2... the exactly same code and script.

But, the correct language (pt-BR) apeears only on K2 page... the language of facebook plugin on the videos page is still in english...

What is happening?
11 years 1 month ago #5372

Please Log in or Create an account to join the conversation.

  • Posts: 2478
  • Thank you received: 1451

Replied by Administrator on topic Re: Where do i change the language in facebook plugin

Hi Marisa,

- Open {root}/components/com_allvideoshare/js/allvideoshare.js

- Delete the existing script and add the following,
(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/pt-BR/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
- Hope, this solved your issue !!!
Last edit: 11 years 1 month ago by Administrator. Reason: removed script tag ...
11 years 1 month ago #5374

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0

Replied by Marisa on topic Re: Where do i change the language in facebook plugin

Hello, thank you very much for your help...

It works!

I saw this file but did not open it, because I figured It had nothing to do with the plugin... lol

Thank you again!

Best Regards! :)
11 years 1 month ago #5377

Please Log in or Create an account to join the conversation.

Time to create page: 0.172 seconds

We accept cookies to provide you the best viewing experience. By using our services, you agree to our use of cookies