Translating mailer policies

Created on 21 September 2023, 9 months ago
Updated 13 February 2024, 5 months ago

Problem/Motivation

To my understanding mailer policies are translatable and there is a UI for translating them. There is also functionality in Drupal\symfony_mailer\Mailer for switching language based on the recipient. The selection is made using user preferred language in the user profile. Currently if I translate the policy Mailer test (admin/config/system/mailer/test) and send out a test email the user always gets the default language policy email.

Steps to reproduce

  • Install Drupal
  • Add second language
  • Change user language away from default language
  • Translate policy to match user preferred language
  • Send test email

Proposed resolution

Remaining tasks

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

1.4

Component

Code

Created by

🇫🇮Finland oakulm

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @oakulm
  • 🇬🇧United Kingdom AdamPS

    I don't have an easy way to test myself as I only use on language. However this module has 20k sites, and I believe translating of email body policy is working on plenty of those.

  • 🇫🇮Finland oakulm

    Hi, well no offence but you might be aware that Drupal.org has tons of issues that are in the category "how on earth does this bug exists"? One might even ask how is it possible that the module has 20k sites and there is a Major issue in the module issue queue, that has been open for more than a month and nobody has bothered to even test and prove me wrong? Also I'm not talking only about the email body.

    Here is a short video I made to demonstrate: https://www.youtube.com/watch?v=t15rtpS8_LE it would really help my life if I was proven wrong :) The documentation for this module is also severally lacking so I might be missing something here.

    This is composer requires for this test setup. Nothing else installed.

            "drupal/core-composer-scaffold": "^10.0.0",
            "drupal/core-recommended": "^10.0.0",
            "drupal/symfony_mailer": "^1.4",
            "drush/drush": "^12",
  • Status changed to Closed: duplicate 5 months ago
  • 🇬🇧United Kingdom AdamPS

    There is now another issue 🐛 Mails not being send in user preferred language. Active with a lot more information that answers the "how does this bug exist question"

Production build 0.69.0 2024