Add translations for default templates.

Created on 31 December 2024, 3 months ago

Problem/Motivation

Since Easy E-Mail is now part of Drupal CMS we translated it completely. When we did that we came across the fact that all default Templates fetched or provided by the module are English. Regardless if you're website uses a different language for Admin area display, or not. It would be great, if we can provide localized variants of these templates as well, just like core does.

Steps to reproduce

Install Drupal with another default language then English.
Install the module
Open a easy E-Mail templates or send out a mail.

You'll figure out, that by default the nails sent are English now. That is bad, if you're target audience has a different native language then English.

Proposed resolution

Make default Templates translateable and provide them via l.d.o.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany joachim namyslo Kulmbach πŸ‡©πŸ‡ͺ πŸ‡ͺπŸ‡Ί

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

Comments & Activities

  • Issue created by @joachim namyslo
  • πŸ‡ΊπŸ‡ΈUnited States zengenuity

    Moving this to Easy Email: Core Templates recipe: https://www.drupal.org/project/easy_email_types_core β†’

    That's where the core override templates are defined.

  • πŸ‡ΊπŸ‡ΈUnited States zengenuity

    The text for the emails was copied from the core default templates, so it should be relatively easy to provide the new translations, given that the translation should already exist, but it needs to be updated for the new tokens and button text. I imagine that someone proficient in a particular language could update all the core templates for that language in less than 30 minutes.

    I think we should describe the process here so that people can work through the languages efficiently. Given that the original translations exist already, I think the process for translating each template to a specific language should be:

    1. Get the translation for the core template config for that same email.
    2. Copy that text over to the new template, keeping the HTML and new Easy Email tokens in place.
    3. Fix issues around the links/buttons, as the text has changed there. Instead of "visit this URL..", there is a button-shaped link with new text on it. That new button text needs to be translated.
    4. Provide the new translation back to l.d.o.

    I've never done this, so I don't know the mechanics of 1 and 4 in the list above. Can someone spell that out in more detail?

Production build 0.71.5 2024