How can i make an application with 2 laguages without making a copy of the app. Only to define a database of languages and use them. Thanks -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
Globalize http://www.globalize-rails.org/globalize Gokhan www.sylow.net Barabule Muci wrote:> How can i make an application with 2 laguages without making a copy of > the app. Only to define a database of languages and use them. > Thanks-- 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?hl=en -~----------~----~----~----~------~----~------~--~---
Barabule Muci wrote:> How can i make an application with 2 laguages without making a copy of > the app. Only to define a database of languages and use them. > Thanksi suggest you to use database for translations, but in order to avoid the call to the db every time you need a set of translations, serilize the collection to an xml file on your server, from which you will read. any time you make changes on the translations, just reproducte the file. -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
Barabule Muci wrote:> How can i make an application with 2 laguages without making a copy of > the app. Only to define a database of languages and use them. > Thanksalso a nice alternative is ruby gettext. with that you can just type _(''your localized text'') in your controllers or views, and run rake updatepo to create a standard .pot file you can give away to translators that can then use the gettext translator gui "poEdit" (available on various platforms) or any text-editor to create whatever language version you want without the need to access any db or code. then copy the returned translation file to your app and run rake makemo works nice even with automatic browser-locale detection so you can switch the language in your browser settings. have a look at this howto: http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html -- 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?hl=en -~----------~----~----~----~------~----~------~--~---