https://rails.lighthouseapp.com/projects/8994/tickets/2325-i18n-support-for-engines
Basically the question is: Should Rails as a framework automatically
try to load any translations supplied by plugins and/or gems? Or
should the developer be responsible for adding these manually?
I personally tend to solutions that give the developer more control by
just requiring himself to do the right thing. I can see though that -
as Rails loads the application's translations automatically - one
would want the plugin translations to be loaded as well.
Any opinions?
>
> What does everybody think about this ticket?
>
> https://rails.lighthouseapp.com/projects/8994/tickets/2325-i18n-support-for-engines
>
> Basically the question is: Should Rails as a framework automatically
> try to load any translations supplied by plugins and/or gems?
Yes, I think it should
> I personally tend to solutions that give the developer more control by
> just requiring himself to do the right thing.
Sure, but I'm not sure what the benefit would be in this case; and
they could always put the in a non standard place and load them
manually if they really want to
Sure :)The question remains ... should an Engine dev be expected add something like this to their code?# init.rbI18n.load_path += Dir['/path/to/translations/**/*.{yml,rb}']Or should Rails do that automagically for everybody's plugins/gems?
Let's start with master and look at backporting if it's simple and
'purely additive'.
--
Cheers
Koz
I guess it is :)
Here are two patches for master and 2-3-stable:
https://rails.lighthouseapp.com/projects/8994/tickets/2325/a/256496/0001_master_i18n-load_path-support-for-engines.patch
https://rails.lighthouseapp.com/projects/8994/tickets/2325/a/256522/0001_2-3-stable_i18n-load_path-support-for-engines.patch
Ticket:
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2325-i18n-support-for-engines