ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Translated email notifications, always in English

February 13, 2014 9:16am

Subscribe [2]
  • #1 / Feb 13, 2014 9:16am

    eeart

    257 posts

    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.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases