Implementing hook_variable_info would allow for different smtp servers to be used in a multilingual site through the i18n module.
For more info: https://drupal.org/node/1113374
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | smtp-n2274571-6.patch | 2.2 KB | damienmckenna |
| #1 | smtp-fromname_multilingual-2274571-1-7.patch | 2.2 KB | jaypan |
Comments
Comment #1
jaypanI've run into this issue on a system I'm building now - I need the From Name to be translatable based on the language. I'm attaching a patch that does the following:
1) Implements hook_variable_info(), making smpt_fromname translatable
2) When the from name is generated, it first attempts to get the multilingual value, pulling the value based on the language of the email. If no value is found, then if falls back to the existing code, pulling the value using variable_get().
I'm using this already, and it is working on our system.
Comment #3
jaypanComment #5
damienmckennaComment #6
damienmckennaReuploading to trigger the new testbot.
Comment #8
damienmckennaComment #9
damienmckennaThis would be safe to include in the next release.
Comment #11
wundo commented