When translating newsletter issues using entity_translation, the sent email's body is not translated (only title gets translated).

Comments

PascalAnimateur created an issue. See original summary.

PascalAnimateur’s picture

Status: Active » Needs review
StatusFileSize
new601 bytes

Turns out it was pretty easy to make this work !
Here's a patch..

Status: Needs review » Needs work

The last submitted patch, 2: simplenews-entity_translation_support-2567145-2.patch, failed testing.

Anonymous’s picture

Can confirm it works, and could be simplified like so:

      // Overwrites the current content language for i18n_select & entity_translation.
      if (module_exists('i18n_select') || module_exists('entity_translation')) {
        $GLOBALS['language_content'] = $languages[$language];
      }
candelas’s picture

Thanks @PascalAnimateur your patch in #2 works perfect :) At the end I get newsletters translated!

candelas’s picture

Since I use the 7.x-1.x-dev, I put a patch with the suggestion from #4

candelas’s picture

Status: Needs work » Needs review