Hi,

It's impossible to translate "subjec"t and "body" of this rules whereas it's possible in "Send mail" rule action.
Bye !

Comments

ptmkenny’s picture

Status: Active » Postponed (maintainer needs more info)

To file a bug report, please list the specific steps needed to reproduce the problem on a clean install of Drupal 7. The Rules issue queue has a large number of issues and so reports really need to be as detailed as possible.

See the Tips for making a good issue report.

JOINSO’s picture

Issue summary: View changes

Hi!

I confirm the bug.
To reproduce the bug, do the following:

1.- Add a new rule.
2.- Add any event that fires the rules, for example: "After saving new content of type xxx"
3.- Add two actions:
"Send mail"
"Send mail to all users of a role"
4.- Save the rule.
5.- Click on translate tab, and then click "translate" in any language.
Then you can only translate body and message of "Send mail" action.
The translation of the action "Send mail to all users of a role" is missing.

Also, the subject and message of action "Send mail to all users of a role" is also missing in the "po" file that you can export under "Home » Administration » Configuration » Regional and language » Translate interface".

Regards,
JOINSO

TR’s picture

Version: 7.x-2.2 » 7.x-2.x-dev
Status: Postponed (maintainer needs more info) » Active
TR’s picture

Category: Bug report » Feature request
Status: Active » Closed (duplicate)

Not really a bug - this seems to be by design. In order for context parameters to be translatable, they need to be explicitly declared that way in the hook_rules_action_info(). If you look at the "Send mail" action, that's what it does - it declares "subject" and "message" as translatable.

But if you look at the "Send mail to all users of a role" action, you will see it does NOT declare "subject" and "message" as translatable. The difference is because of what the two actions do and how they are used.

"Send mail to all users of a role" sends the SAME message, in the DEFAULT language, to EVERY user that has a certain role or roles. So even if those parameters were marked translatable, the translation would have absolutely no effect.

So I'm marking this as duplicate of the other issue we have open which specifically addresses the language-per-user feature. See #2113249: Send mail to user of role : get the mail based on user preferred language