Click To Globalize for Rails 2.3
As announced in my previous post I'm working to update my Open Source projects. Today's the time of Click to Globalize.
For all of you who don't know what I'm talking about, Click to Globalize is a Rails plugin for in-place translations. Now it's compatible with Rails 2.3 and It's also the most clean and polish version of ever, let me explain what's changed.
Engine
Yes, Click to Globalize is now an engine, this means all the controllers, the helpers, the routes and the other stuff, now lives in vendor/plugins. No more clutter with flying files, except for one javascript and one stylesheet.
I18n
The i18n team (myself included) worked hard to build a consistent API for i18n. Starting from Rails 2.2 we have bundled a gem for this purpose, and now my plugin is totally compliant with this system, this agnosticism allow you to use whatever i18n backend you want. Click to Globalize is no longer a Globalize extension!!
RESTful
The plugin now bundles two full RESTful controllers: TranslationsController and LocalesController, respectively /translations and /locales.
Lightweight
I replaced the annoying around_filter system, with a more lightweight one, based on the observation of ActionView#render.
Formatting
I removed the support for Markdown and Textile, personally I never used so much, and don't think they are so related with i18n.
Deprecations
The old globalize? method is deprecated in favor of in_place_translations?.
You can find all the new instructions to the project page or on GitHub.
Enjoy!
advertising





Posted by Kelly Brown on 2009-06-12 19:57:19 UTC (permalink)
Hi, very nice post. I have been wonder'n bout this issue,so thanks for posting