I am working in ROR. we have 2 translations one in En.yml and another for german . We will set the translation and the whole application will be seen in the selected language . We have a functionality of sending notification mails when the user receives comments for his post. This functionality expects to be like to receive the mails in the language that the user who is commenting . For eg. As far now we are receiving mails like A commented your post. But it expects to be in German even in mails. How tat is possible.. Please give some suggestions
on 2010-10-11 12:13
on 2010-10-11 12:26
You could add a preferred language field to your user model and then use that in your mailer to decide what language you should use for the message.