Locale files included in plugins
Hey all, I was tinkering with https://open.vanillaforums.com/addon/oneallsociallogin-plugin, and I noticed that something was odd with the settings page.
Everything was basically CONSTANT_NAME instead of actual text.
When I forced php to include the locale file included in the plugin (require_once 'C:\xampp\htdocs\vanilla23\plugins\OneallSocialLogin\locale\en.php'; ), everything worked smoothly (even after I then removed that command. Does it cache locales or something?).
Oh, and to get it to work with 2.3 I had to replace these lines
$Sender->AddCssFile($this->GetResource('design/settings.css', FALSE, FALSE)); $Sender->AddJsFile($this->GetResource('js/settings.js', FALSE, FALSE));
$Sender->AddCssFile('settings.css', 'plugins/oneallsociallogin'); $Sender->AddJsFile('settings.js', 'plugins/oneallsociallogin');
Haven't filed a pull request yet since I don't know what's going on with the translation.