Hi,

Our site support 2 languages: English (default language) and Hebrew.

Newsletters are being sent using the cron. Naturally the cron runs in the context of the default language i.e. [site domain]/cron.php (no language prefix).
Results:
1. Default language newsletters are generated as expected. No problem.
2. Non default language newsletters are being generated as well using the same cron execution. This results with non translated strings wherever the t() function has been used (i.e. static strings which are part of the newsletter template).

Technically this makes sense since the newsletter was generated within the default language context (i.e. cron runs with no prefix -> the default language is set as the global language). However obviously this is not the desired behavior from user point of view.

I am not sure how to resolve that without hacking the newsletter module code.

Thanks.

Comments

simon georges’s picture

Is it still the case with more recent version of the module ? The 1.0-rc6 is quite old.

simon georges’s picture

Status: Active » Postponed (maintainer needs more info)
simon georges’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Outdated issue.

simon georges’s picture

Issue summary: View changes

correction to the text