I have no idea if this is the right place to ask for support. I'm using Token actions to send email notifications to authors of a node, when the node got a comment. The email uses tokens but also has some static content. For that reason I'm looking for a way to translate that static content of the mail. I was looking for something like conditional triggers, which triggers an action only if the user language is e.g. english. I was also looking for a multilingual variable but could not find anything in the DB. Any kind of help would be great. Thanks in advance

Comments

kars-t’s picture

Status: Active » Fixed

Hi

the veriable should be in the "variable" table or look inside of the module. And take a look here: http://drupal.org/node/1113374

Status: Fixed » Closed (fixed)

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

vcrkid’s picture

Kars-T,

The link you provided is about Drupal 7, but I believe it's Drupal 6 that is in question. I have the same problem with tokens and would like to solve it. A simple solution (but out of reach for me from a technical standpoint - I just don't know how to write the code) would be to make a Rule condition using user_preferred_language() (see http://drupal.org/node/879422).

This way, just about any rule/action could be cloned and translated, needed only to change the user language condition. Am I making sense or just babbling without a clue?

As I said, I don't have the technical code knowledge to make this... perhaps someone out there does... :-)