Multilingual tokens are not translated

Created on 27 October 2022, about 2 years ago
Updated 2 April 2023, over 1 year ago

Problem/Motivation

When sending out multilingual newsletters, multilingual tokens are not translated - specifically [simplenews-newsletter:name] in the subject was not translated and the Unsubscribe link in the body included /en in the url.

Steps to reproduce

To recreate:

1. Create a site with English as the default language and French as the second language or use the DrupalWxT distribution
2. Enable the simplenews module
3. Created two subscribers (non-authenticated), one English and one French
4. Create a newsletter type "myEn" and translate the name to "myFr"
- leave the subject as: [[simplenews-newsletter:name]] [node:title]
5. Create a newsletter, translate it and send it out!

Result for the French subscriber:
1. The email subject will contain the correct French node title but will incorrectly be prefaced by [myEn];
2. The last line of the email will include an unsubscribe link with /en in the url.

Proposed resolution

Ensure the token code handles language properly.

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada joel_osc

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024