I've spent some time developing a plugin for i18n. What it actually does, is to extend the i18n to support different load mechanisms. First of all there is the simple everyone knows. Then i created a new Loader which loads the files from directories like the classic one. But when loading the content of a file, it is not just merged all together. What it actually does is checkout where the translation file is located and depending on it's path, it pushes the translations in that position in the translation hash. For me the translation files look more dry. I don't know if it's usefull to somebody, but check it out: http://github.com/menostos/i18n_nested
on 2010-02-05 15:42
on 2010-02-05 18:31
is more faster than default? 2010/2/5 menostos <marius.haechler@gmail.com> > What it actually does is checkout where the translation file is > You received this message because you are subscribed to the Google Groups > "rails-i18n" group. > To post to this group, send email to rails-i18n@googlegroups.com. > To unsubscribe from this group, send email to > rails-i18n+unsubscribe@googlegroups.com<rails-i18n%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/rails-i18n?hl=en. > > -- Experiencia es lo que obtienes, cuando no obtienes lo que quieres.
on 2010-02-06 12:24
actually i think not, because you're probably gone load more files than before. but the translation will still be as fast as before. i don't know if it matters if it's faster because i don't think many of production applications going to load translations on each request.
on 2010-02-06 12:34
2010/2/6 menostos <marius.haechler@gmail.com> > actually i think not, because you're probably gone load more files > than before. but the translation will still be as fast as before. > > i don't know if it matters if it's faster because i don't think many > of production applications going to load translations on each request. > > is true. Thanks > > > mechanisms. > > > For me the translation files look more dry. > > > rails-i18n+unsubscribe@googlegroups.com<rails-i18n%2Bunsubscribe@googlegroups.com> > > "Caminar sobre el agua y desarrollar software a partir de unas > For more options, visit this group at > http://groups.google.com/group/rails-i18n?hl=en. > > -- Experiencia es lo que obtienes, cuando no obtienes lo que quieres.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.