Forum: Rails I18n Receiving mails in the prefered language in rails

09bbc36d6eb2bfdc5b54cf56f73e88f2?d=identicon&s=25 Aruna Chinnamuthu (arunajasmine)
on 2010-10-11 12:13
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
7e565a1681dc0137f43826aa840686af?d=identicon&s=25 Andrés Mejía (Guest)
on 2010-10-11 12:26
(Received via mailing list)
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.
This topic is locked and can not be replied to.