rubybox
2011-Oct-28 13:45 UTC
Easy way to output translatable selection dropdown''s in rails forms?
I have been looking for some time now to get easy translateable selection dropdown''s for my rails forms and still unable to find a good gem, method to approach this. My goal is to: * Insert a form collection selection ( dropdown ) wich holds a collection of values and have that collection of values translated in several languages * Be able to insert based on current rails I18n locale the right collection of values for that locale Carmen gem does this for the languages but Ill need a global solution for my own collections, Anyone could recommend me a gem or method on how to approach? Im rather stuck on this one -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/_eLv7DhzFO0J. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Brandon Black
2011-Oct-28 23:19 UTC
Re: Easy way to output translatable selection dropdown''s in rails forms?
IMO this is the best gem for localization in ruby: http://r18n.rubyforge.org/ Unless I misunderstand the problem, that should do the trick for you. You can define the YAML for multiple cultures, and just populate your drop down from that. On Oct 28, 6:45 am, rubybox <voorr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have been looking for some time now to get easy translateable selection > dropdown''s for my rails forms and still unable to find a good gem, method > to approach this. > > My goal is to: > > * Insert a form collection selection ( dropdown ) wich holds a collection > of values and have that collection of values translated in several languages > * Be able to insert based on current rails I18n locale the right collection > of values for that locale > > Carmen gem does this for the languages but Ill need a global solution for > my own collections, > Anyone could recommend me a gem or method on how to approach? Im rather > stuck on this one-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.