I'm currently searching for a function to translate Mails sent via a triggered rule. Does anyone know how to do that?

Comments

Bilmar’s picture

Component: Rules Core » Rules Engine

subscribing

Bilmar’s picture

a little new years bump =)
this information will help us with multi-language sites.
thanks very much in advance!

YK85’s picture

I am needing to translate the email to support English/French/German
Any progress on this?

robby.smith’s picture

subscribing

klausi’s picture

I would try:
1) Create a rule for every language, e.g. "Send Mail [French]", "Send Mail [German]" etc.
2) Add roles to the system like "German user", "French user", etc.
3) Add an action to send the mail to the corresponding role

I don't know if that would conflict with the drupal internationalization model.

blueblade’s picture

+1

corbacho’s picture

+1

miaoulafrite’s picture

sub

a very bad way, would be to send ONE mail with ALL the languages. If you have only two languages on your site it could be an easy way to proceed.
quick and dirty

joostvdl’s picture

+1

joostvdl’s picture

Category: support » feature
Prancz_Adam’s picture

Subscribe!

Have you got any solution to the problem? Shuld I use the mail edit module?

vcrkid’s picture

Rules should have a trigger condition using user_preferred_language(). It would require a separate trigger for each message and each language, but it would get the job done.

fago’s picture

mitchell’s picture

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

#13 and #14 don't help unfortunately. as far as i can tell there still is no way to send an email via a rule, according to the registered users language.

drupalfan81’s picture

Component: Rules Engine » Rules Core
Priority: Normal » Major
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Needs work

Looks like this issue still hasn't been address and the last posting was 2 years ago. Was there some work around that enables us with multilingual sites to use rules. Rules is an amazing module and I love it, but I have just started sending out informative emails to my users when they do certain actions on the site to help train them on how to use the various tools within the site. Our site is currently in 4 languages and currently we are having rules send out English only emails. We hope to grow the user base of the 3 other languages on the site, but without rules supporting sending out translated emails, this will make it kind of difficult.

I feel that many multilingual sites would benefit from such a feature.

Basically, if these emails could be translated through Drupal's core Translate interface page or as a multilingual variable that would be perfect!

I'm open for any other work arounds, I really need to get this working for my site. Thanks!!

fuzzy76’s picture

Since this is an old D6 issue I guess the best place to discuss this would be the D7 issue at #2054641: Action "Send mail" translate to isn't translated when mail is sended.

tr’s picture

Status: Needs work » Closed (won't fix)

D6 has not been supported for more than two years now, and this feature will not be added in D6.