Facebook Login Language Changes

GK User
Fri Jan 04, 2013 9:24 pm
Hi:

I've configured succesfully Facebook Login, but with a "bug"?"

My site is multilanguage (working fine).

Prior to Facebook login:
- When in a K2 article i get the "like" facebook button and "be the first..." message.
- The like is translated to the page languaje and the "be the first..." too.

After Facebook login:
- When in a K2 article i get the "like" facebook button and "be the first..." message ALWAYS IN ENGLISH.

I think this is a bug. Any solution?

Thanks
User avatar
Junior Boarder

teitbite
Sat Jan 05, 2013 3:04 am
Hi

Please show me Your site.
User avatar
Moderator

GK User
Sat Jan 05, 2013 10:39 am
Sent PM.
User avatar
Junior Boarder

GK User
Sat Jan 05, 2013 11:39 am
As you can se, when UNLOGGED, the facebook text is translated, but when LOGGED, the facebook test is in english.

The Facebook user has selected spanish language in he facebook interface.

Attached images.
User avatar
Junior Boarder

teitbite
Sun Jan 06, 2013 12:24 am
Hi

Ok. I see the problem. Please make just one test. Rename a folder /html/com_k2 to /html/_com_k2 if problem will still be there this will mean that it's not template related but K2. I will ask programmers anyway, so You can also send an ftp access and joomla panel access along with the information about result after folder name change.
User avatar
Moderator

GK User
Sun Jan 06, 2013 2:55 pm
Problem persists...
User avatar
Junior Boarder

teitbite
Sun Jan 06, 2013 3:45 pm
Hi

Ok. Which means it's probably connected with K2. You should look for an answer on their forum too.

For me: please update template to the latest versio and send me an access to joomla panel and ftp so I'll be able to give it to our programmers.
User avatar
Moderator

GK User
Mon Jan 07, 2013 2:11 pm
I found the line in the gk_esport K2 details.php.
Just changed en_US for es_ES and it works (the line about facebook.net connect), but i'm not able to send the site selected language locale instead.

Could be added a variable for doing that?
User avatar
Junior Boarder

teitbite
Tue Jan 08, 2013 7:49 pm
Hi

Unfortunately this part is taken directly from K2 and they used astandard facebook script. I think that there is a suffix as ALL , but You will need to search for it in facebook developers site.

You can aslo try replace this suffix with this:

Code: Select all
<?php echo str_replace( '-', '_', $this->document->language; ?>


which should use the language suffix of the website, but it's probably a long guess :(
User avatar
Moderator


cron