webtechnick / CakePHP-Facebook-Plugin

CakePHP Facebook Plugin
http://facebook.webtechnick.com
445 stars 138 forks source link

Internationalization is not working #175

Open jalpertti opened 8 years ago

jalpertti commented 8 years ago

Hi,

I try to get Finnish working, but all tags/buttons are coming in English. Here is my facebook.php in Config:

$config = array( 'Facebook' => array( 'appId' => 'YOUR_APP_ID', 'apiKey' => 'YOUR_API_KEY', 'secret' => 'YOUR_SECRET', 'cookie' => true, 'locale' => 'fi_FI', ) );

I would only need Share button in Finnish, no additional features. I also tried in AppController:

public $helpers = array('Html', 'Form', 'Session', 'Js', 'Facebook.Facebook' => array('locale' => 'fi_FI'));

I think that the documentation is mixing something very badly stating that this line should be in top of facebook.php -file:

public $helpers = array('Facebook.Facebook' => array('locale' => 'fi_FI'));

I got it working on AppController, but is has no affect on application.