Topic-icon Suggestion: Language locale overrides

Active Subscriptions:

None
Hi,

In the Facebook Configuration Tab we have a "Facebook Language Locale Override: (Generally, leave blank)" field.

I suggest having such field for the other social networks configuration tabs.

In my case, my site is in pt_PT. Beacuse LinkedIn does not support pt_PT, it defaults to en_US. But if I could override it to pt_BR (supported by LinkedIn), I could avoid having Facebook, Twitter and Google social plugins in pt_PT, aside with LinkedIn plugins in en_US.

Ok, LinkedIn would be in pt_BR - this is not ideal, but its quite acceptable.

(excuse my English, it is a foreign language to me)

All the best!
The topic has been locked.
Support Specialist
9 years 8 months ago #45975 by alzander
Excellent suggestion! I've added it to our to-do list for JFBConnect v6.2.

In the meantime, you can force the language right now by editing the /components/com_jfbconnect/libraries/provider/linkedin.php file. Around line 99, you'll see:
$initJs = "IN.init({\n" .
                "api_key: '" . $this->appId . "',\n" .
                'authorize: false' . "\n" .
                '});';
Update that to:
$initJs = "IN.init({\n" .
                "lang: pt_BR,\n" .
                "api_key: '" . $this->appId . "',\n" .
                'authorize: false' . "\n" .
                '});';
The other language codes, for reference, can be found:
developer.linkedin.com/documents/sign-linkedin

I hope that helps,
Alex
The topic has been locked.