I am making a multilingual site in English, Dutch and German. In the /system/expressionengine/language folder I have 3 folders for english, dutch and deutsch and CP is correctly translated if I change a member’s language in Localization Settings or the “language” column in the exp_members table.
Everything seems to work fine except for the email notifications. I have already unchecked all the “Enable This Template?” checkboxes in Email Notification Templates, but all the emails (such as comment notifications) are sent in English.
I can tell that /system/expressionengine/language/english/email_data.php is being used because changes are reflected in the English emails, but when a member’s language is set to Dutch or German these English templates are still used and not the email_data.php’s in the /dutch and /deutsch folders.
In /system/expressionengine/libraries/Functions.php I can see that it looks at ee()->session->userdata[‘language’] to determine which email_data.php to load. However, this value always seems to be “english”. When I set a member’s language to “German”, then clear the browser’s cache, restart the browser and log back in $this->EE->session->userdata[‘language’] is still set to “English”, even though CP is in German.
Am I doing something wrong? Any help would be greatly appreciated.
EE is 2.7.3 - Build Date: 20131210
Thank you.