Page 1 of 1

facebook comments in OTHER language

Posted: 12 Dec 2010, 04:04
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

Re: facebook comments in OTHER language

Posted: 14 Dec 2010, 17:40
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

Re: facebook comments in OTHER language

Posted: 15 Dec 2010, 00:32
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

Re: facebook comments in OTHER language

Posted: 17 Dec 2010, 20:09
by Jan
Ok, I hope I will add the parameter for the language soon to Phoca Gallery.