yiisoft / yii2-swiftmailer

Yii 2 swiftmailer extension.
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
116 stars 74 forks source link

Setting Dynamic content for queued messages #12

Closed alladas closed 9 years ago

alladas commented 9 years ago

Hello All, In a multilanguage site context, messages are sent in real time translated into the language in use by the user. I am trying to send site messages from a queue using a cron job. The case is that the messages are added to queue only in the sourceLanguage. What I would like is to populate the queue with already translated messages - in the user language according to the locale set in their profile. So users will get messages in their language. I can't find a way to do that. Any tips or hints?

klimov-paul commented 9 years ago

@alladas, please use Official Yii forum to ask a questions - GitHub is a bug tracking system.