parndt/refinerycms-i18n — pull request #25 by rsierra (2012-01-26 09:38:55+00:00)
Title: Added current_locale option to initializer.

Hello, I have confusing issues using the i18n initializer. If I set my config.default_locale as :es and remove :en in config.frontend_locales and config.locales, I always get the admin dashboard in english when I relaunch the server, and new pages generated by engines have :en locale too.

I'm not sure, but watching configuration.rb in i18n

self.default_locale = :en
self.current_locale = self.default_locale

So, i think that, if you don´t overwrite current_locale in your refinery i18n initializer, you always get current_locale as :en for the first time you launch the server.

Adding the option in the generator could be less problematic.

Thank you for your great job.