Rules supports the translation of text in rules actions. The attached patch makes the body and subject fields for private messages translatable.

On multiliangual sites, users can then receive messages that are sent via rules in their own language, if the message texts are translated by an administrator.

The patch applies to both 1.x and 2.x.

Files: 
CommentFileSizeAuthor
privatemsg_rules_translatable.patch878 bytesFrando
PASSED: [[SimpleTest]]: [MySQL] 4,881 pass(es).
[ View ]

Comments

Status:Needs review» Needs work

The last submitted patch, privatemsg_rules_translatable.patch, failed testing.

Category:task» feature

Marked http://drupal.org/node/1510412 as duplicate

Status:Needs work» Needs review

privatemsg_rules_translatable.patch queued for re-testing.

Status:Needs review» Reviewed & tested by the community

I can confirm this works for me and allows the subjects and bodies of messages to be translated. I no longer need to write multiple rules and add language conditions per language, which is a great time-saver. Thanks!

Status:Reviewed & tested by the community» Fixed

Committed to 7.x-1.x and 7.x-2.x.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Issue summary:View changes

Hello. I noticed that I can translate the message subject and body, but the English message is always sent no matter what the active language is.

Is there another way to implement it so I can send a language specific message based on the user's or active language?

Thanks for you help.