Leonardo Mateo wrote: > On Tue, Aug 3, 2010 at 11:06 AM, Pale Horse <[email protected]> > wrote: >>>> >> >> I've not read this, though I imagine it to be overkill for my purposes. > Really? > You should read it. That's how rails works with i18n. Overkill would > be to implement a different solution when a lot (and I mean a LOT) of > people already worked it out in a really nice way.
Rails I18N is not "really nice". I recommend fast_gettext instead. > If you think that translate an application to 6 different languages > doesn't need an elegant and easy-to-maintain solution, then you're in > trouble. Agreed. > >> >>> Or is your question specifically related to how to store the user's >>> preferred language. >> >> What I really want is to render a different column based on the session >> data. No, you really don't. You want to use one of the existing I18N solutions -- and you don't want to add a column to the DB every time you need to support another language. > If you want to do that, it's a different story. You don't need to ask > anybody to do that, just make a case/when structure and you'll be on > your way. But don't do it. > > > -- > Leonardo Mateo. > There's no place like ~ Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. -- 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.

