Hi,

On Thu, 30 Nov 2006 16:19:39 +0100
Michael <[EMAIL PROTECTED]> 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'

init_gettext can't accept lang value as 2nd parameter.
Call GetText.locale= before initialize gettext.

GetText.locale = "nl"
init_gettext 'myapp'

BTW,  I don't know it works with cron.
If it doesn't work with init_gettext, try bindtextdomain as 
Mihnea said.

GetText.locale = "nl"
bindtextdomain 'myapp'

Anyway, try 1.8.0 not 1.7.0.
_______________________________________________
Railsi18n-discussion mailing list
Railsi18n-discussion@rubyforge.org
http://rubyforge.org/mailman/listinfo/railsi18n-discussion

Reply via email to