On Nov 17, 2008, at 2:04 PM, Olaf wrote: > Hi, > > since rails 2.2 doesn't work with gettext anymore I decided to use a > gettext dummy method until the gettext team relases a working version > for rails 2.2. My application doesn't need any i18n support right now > and this way i figured it would be very easy to integrate gettext > later. Just setup the plugin and go. > > So I need a method called _ which is available in alle models, views, > controllers, helpers, doing of nothing else then: > Perhaps it would be acceptable in your situation to do:
class Object > def _(str) > str > end end somewhere in your environment.rb or in an initializer. -Rob Rob Biedenharn http://agileconsultingllc.com [EMAIL PROTECTED] > > > I'm still a newbie so I tried a lot but didn't come to a good > solution. I just don't know where to define this method to make it > globally available. > > I would really appreciate your help! > > Olaf --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

