facebook comments in OTHER language

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
spens
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 22 Nov 2010, 20:27

facebook comments in OTHER language

Post by spens »

HI,
I added the facebook comments to images and categories.
All done well, but all information about coming from facebook's app are in english.
Obviously, on fb, set my application in italian (my language), but it still come in english.
I also tried other plug-in, based on the same fb app, and are in italian.
So I suppose that the php code of pocagallery doesn't transfer the information about language from fb app to the site.
Any solution??
thank you in advance
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: facebook comments in OTHER language

Post by Jan »

Hi, search this forum for "facebook", there should be answer where to find the code and change it (en_US to other langauge)

Jan
If you find Phoca extensions useful, please support the project
spens
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 22 Nov 2010, 20:27

Re: facebook comments in OTHER language

Post by spens »

Ok, i found it.... it said:
My friend i solved it, just change in the file: com_phocagallery/views/comment/tmpl/default.php at line 38

i see en_EN ...and i thought, if i put es_ES? and its work!


Code: Select all
(function() {
var e = document.createElement('script');
e.type = 'text/javascript';
e.src = document.location.protocol + '//connect.facebook.net/es_ES/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
And now the images can be commented in other language....
However, the comments on CATEGORY are still in ENGLISH.
You need to change the same CODE in com_phocagallery/views/category/tmpl/default.php
Thank you,
bye
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: facebook comments in OTHER language

Post by Jan »

Ok, I hope I will add the parameter for the language soon to Phoca Gallery.
If you find Phoca extensions useful, please support the project
Post Reply