Actionmailer and local i18n

Hi,

When sending mails often enough they are sent to another party than
the current logged in user (like when commenting on a blog), and that
user can have another default i18n.

It would be nice to be able to specify a local I18n for ActionMailer.

There is a plugin that does this:
http://github.com/Bertg/i18n_action_mailer

In my case it doesn’t work because apparently it conflicts with the
translator plugin, from what I can tell they both overwrite the
translate method.

How do you handle these situations?


R.

Not pretty, but couldn’t you patch i18n_action_mailer to work with
translator?

module I18nActionMailer
module InstanceMethods
def translate(key, options={})
Translator.translate_with_scope([self.mailer_name,
self.action_name], key, options.merge(:locale => self.locale))
end
end
end

Cheers,
Nicholas