Is there support to somehow automate the localization of web pages in Rails? I need to create an application that must allow the user to dynamically switch between several languages -- luckily, all of them left-to-right languages. Most guides and books do not even mention that issue and assume everyone is using English. Are there any guides or documentation about how to best do this? -- 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 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 -~----------~----~----~----~------~----~------~--~---
Rails doesn''t support i18n (Internationalization) yet. You could check out the Globalize plugin, perhaps that already fits what you are looking for. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 11/1/06, Roman Hausner <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Is there support to somehow automate the localization of web pages in > Rails? I need to create an application that must allow the user to > dynamically switch between several languages -- luckily, all of them > left-to-right languages. > > Most guides and books do not even mention that issue and assume everyone > is using English. Are there any guides or documentation about how to > best do this? >Have a look at: http://raa.ruby-lang.org/project/ruby-gettext/ Isak> -- > 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 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 -~----------~----~----~----~------~----~------~--~---
Roman Hausner wrote:> Is there support to somehow automate the localization of web pages in > Rails? I need to create an application that must allow the user to > dynamically switch between several languages -- luckily, all of them > left-to-right languages. > > Most guides and books do not even mention that issue and assume everyone > is using English. Are there any guides or documentation about how to > best do this?Roman 1) gem install localization_generator 2) edit envrionments.rb, application.rb (as per docs) 3) done -- 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 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 -~----------~----~----~----~------~----~------~--~---
Ilan Berci wrote:> Roman Hausner wrote: >> Is there support to somehow automate the localization of web pages in >> Rails? I need to create an application that must allow the user to >> dynamically switch between several languages -- luckily, all of them >> left-to-right languages. >> >> Most guides and books do not even mention that issue and assume everyone >> is using English. Are there any guides or documentation about how to >> best do this? > > Roman > > 1) gem install localization_generator > 2) edit envrionments.rb, application.rb (as per docs) > 3) doneThanks for the info ... is there also a way to localize the messages that are generated by validates... and which appear in the flash? Not sure if there are any other messages that rails will show to the user eventually, but I would need to localize all of them. -- 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 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 -~----------~----~----~----~------~----~------~--~---