I know that multilingual newsletter is not supported at this moment but maybe there is a way that simulate this functionality.
I'm thinking to hack subscribe form to select the language for a subscriber. But I need to use a filter to select the language of nodes. I have no idea where I should work it in template or in the newsletter list.
Someone has made something similar? will be great if someone could explain how to develop this trick.
Multilingual support is discussed in this issue where ParisLiakos inform us that this request will be developed at 7.x-2.x-dev version. I know that is a very alpha version, but I'm interested in helping as far as possible.
Comment | File | Size | Author |
---|---|---|---|
#3 | newsletter-templates.jpg | 91.57 KB | RobertoGA |
Comments
Comment #1
RobertoGA CreditAttribution: RobertoGA commentedI think someone may misunderstand my previous request. I do not want a multilanguage newsletter, simply select the language of a newsletter and use the module to create multiple newsletter, one for each language.
Comment #2
RobertoGA CreditAttribution: RobertoGA commentedSetting different terms, one for language, in the taxonomy that managed the newsletter solve the problem partially. Don't forget to fix the correct term to node language.
Then, you should create a mail template for each language related with the correct term and create a list for each mail template.
When someone will be subscribing could select the list corresponding to their favourit language.
There is a little problem to solve... confirmation, welcome and unsubscrition message are in one language (english by default)... Do someone know how to solve this? Is it posible translate these messages?
Thanks
Comment #3
RobertoGA CreditAttribution: RobertoGA commentedYeah, I got it... now my confirmation, welcome and unsubscription messages are working in differents languages.
I've created 3 different templates for this function with ID 5, 6, 7. Default confirmation, welcome and unsubscription templates have ID 1, 2, 3 by default. I've attached a screenshot for better understanding.
I want to emphasize that I've created this changes just for my use. It will not work on other sites unless you synchronize the templates IDs in newsletter_get_list_id function. I apologize with module creator, ParisLiakos, to touch where I should not... but I needed it.
And now some coding... I create a new function en newsletter.module
Now, to change the flow for confirmation message, I've modifed some lines at save() function inside include/newsletter.subscriber.controller.inc:
original:
modified:
To modify welcome and unsubscribe message I've worked in include/newsletter.pages.inc
Welcome message at newsletter_confirm() function:
original:
modified:
Unsubscribe message at newsletter_unsubscribe_submit() function:
original:
modified: