Michael wrote:
> I'm having issues with ActionMailer too. The problem is that I'm calling 
> ActionMailer with a cron task, for example:
>    ./script/runner Somerecord.find_stuff_and_mail_it
> 
> So I can't set the locale in a controller like I'm used to.
> 
> I tried
> 
>    init_gettext 'myapp', 'nl'
> 
> but that isn't allowed in the model. Couldn't find anything better 
> though.

Try
     bindtextdomain 'myapp'
in your model, and
     <%= bindtextdomain 'myapp' -%>
in each of your views.

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Railsi18n-discussion mailing list
Railsi18n-discussion@rubyforge.org
http://rubyforge.org/mailman/listinfo/railsi18n-discussion

Reply via email to