Please look at my newly maded website, pure RoR, not used Globalization :) For translation used: xml file system.. http://www.yulia-site.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hello, 2007/9/2, alexey.Creopolis <alex.creopolis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > Please look at my newly maded website, pure RoR, not used > Globalization :) > > For translation used: xml file system..Very nice! Could you say a little bit more, how you realised this? Beate --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Beate Paland wrote:> Hello, > > 2007/9/2, alexey.Creopolis <alex.creopolis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: >> >> Please look at my newly maded website, pure RoR, not used >> Globalization :) >> >> For translation used: xml file system.. > > Very nice! Could you say a little bit more, how you realised this? > > Beatego il ! -- 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 -~----------~----~----~----~------~----~------~--~---
> For translation used: xml file system..Could you talk a bit more about how/why you did the localisation this way? Cheers Tim -- 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 -~----------~----~----~----~------~----~------~--~---
in rails_root i have "langs" folder that contain, en.xml, ru.xml .. etc, mean can contain any language.. In site admin there is language controller that can add new language, like name, code (2 letters like "en" < this will be name of flag (in images) and name of xml file). in xml structure are like this: <?xml version="1.0" encoding="cp1251" ?> <language id="ru"> <def w="One">Один</def> <def w="Click Here">Нажмите тут</from> </language> in application.rb there is before_filter to init language.. from lib/ language.rb language.rb is exttending String class so if you want to put translated string make <%= "One".tr %> In application.rb there is preloader for all current language strings, if no translation was given for "ru", then it use "en" as default... If <%= "This is not exist".tr %> string not exist - everything will fall :) I thinked to make mysql driven translation plugin with generator of controller so u can translate easily.. etc.. got everything almost working :) except time, btw: http://www.botvector.net On 2 сент, 20:31, Tim Perrett <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > For translation used: xml file system.. > > Could you talk a bit more about how/why you did the localisation this > way? > > Cheers > > Tim > -- > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---