Well, the patch is not doing anything.
I'm using version 1.7.0 which is the last version.
No mention of 'with_mailer' in the source.
$ grep -rs with_mailer /usr/local/lib/ruby/gems/1.8/gems/gettext-1.7.0/
$
Any other idea ?
Thanks a lot,
Steph.
Masao Mutoh wrote:
> Hi,
>
> It may be a bug of gettext-1.7.0.
>
> Could you try this patch to your gettext/rails.rb ?
>
> --- rails.rb.old 2006-08-15 00:31:42.000000000 +0900
> +++ rails.rb 2006-08-15 00:33:08.000000000 +0900
> @@ -60,7 +60,7 @@
> # They are remained for backward compatibility.
> #
> def bindtextdomain(domainname, options = {}, locale = nil, charset
> = nil, with_model = true)
> - opt = {:with_helper => true, :with_model => true}
> + opt = {:with_helper => true, :with_model => true, :with_mailer =>
> true}
> if options.kind_of? CGI
> # For backward compatibility
> opt.merge!(:cgi => options, :locale => locale, :charset =>
> charset, :with_model => with_model)
> @@ -73,6 +73,7 @@
> ret = _bindtextdomain(domainname, opt)
> bindtextdomain_to(ActiveRecord::Base, domainname) if
> opt[:with_model]
> bindtextdomain_to(ApplicationHelper, domainname) if
> opt[:with_helper]
> + bindtextdomain_to(ActionMailer::Base, domainname) if
> opt[:with_mailer]
> ret
> end
>
>
>
>
> On Mon, 14 Aug 2006 04:21:10 +0200
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Railsi18n-discussion mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/railsi18n-discussion