diff --git a/CHANGELOG.md b/CHANGELOG.md index c86659e..37991c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ **Bug fixes** * Cannot create user account from social network login +* Email verification sent with unusable, untranslated strings # 1.0.0 diff --git a/plugins/system/sociallogin/helper/login.php b/plugins/system/sociallogin/helper/login.php index d3a3bcf..387c5dc 100644 --- a/plugins/system/sociallogin/helper/login.php +++ b/plugins/system/sociallogin/helper/login.php @@ -443,6 +443,13 @@ private static function register(array $data, array $userParams = array(), $skip $app = JFactory::getApplication(); } + // Load com_users language files + $lang = $app->getLanguage(); + $lang->load('com_users', JPATH_BASE . '/components/com_users', 'en-GB', false, false); + $lang->load('com_users', JPATH_BASE, 'en-GB', false, false); + $lang->load('com_users', JPATH_BASE . '/components/com_users', null, false, false); + $lang->load('com_users', JPATH_BASE, null, false, false); + $params = JComponentHelper::getParams('com_users'); $data = array_merge(array(