Anyone using GetText on edge rails? require ''gettext/rails'' seems to tangle up the rails env (1.1.6 config files) big time (running out of stack when i try to save something, for instance), and I could really use a workaround. Any response appreciated, Isak --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Hi, On Fri, 25 Aug 2006 10:33:49 +0200 "Isak Hansen" <isak.hansen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Anyone using GetText on edge rails? > > require ''gettext/rails'' seems to tangle up the rails env (1.1.6 config > files) big time (running out of stack when i try to save something, > for instance), and I could really use a workaround.Hmm. I found the same problem. I''ll try to fix it, but I don''t have a workaround it now. -- .:% Masao Mutoh<mutoh-+e5RZkbjevhHfZP73Gtkiw@public.gmane.org> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
sava.chankov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Aug-25 23:15 UTC
Re: GetText on edge?
Isak Hansen wrote:> Anyone using GetText on edge rails? > > require ''gettext/rails'' seems to tangle up the rails env (1.1.6 config > files) big time (running out of stack when i try to save something, > for instance), and I could really use a workaround.Here''s what as a quick workaround after commenting out init_gettext. In app/controllers/application.rb and app/helpers/application_helper.rb add: def _(string); string; end In environment.rb require lib/gettext.rb: module ActiveRecord class Base class << self protected; def _(string); string; end end end end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---