Raul Murciano
2008-Jun-09 11:14 UTC
[ANN] translate_routes: plugin to translate URLs on an easy way
Hi, I have released the translate_routes plugin, which provides a
simple way to translate your URLs to any number of languages. All
routes automatically add a configurable parameter to the request so
your controllers can setup an internationalized response.
The plugin has been designed to be easy to use:
- As it works after routing processing, it plays nice with all kind of
routing definitions, including RESTful and named routes
- It takes care of your current routing helpers transparently,
adapting them to the requested language
- It makes possible to use yaml files to store your translation
strings, so it doesn''t need to mess your routes.rb
A sample application shows how to integrate the plugin with your
views, controllers and tests - the app runs on rails2.1 but we have
been using the plugin since rails2.0 exactly on the same way.
You can find the code, docs and the sample application on GitHub:
http://github.com/raul/translate_routes/tree/master
I''d like to say thanks to Domestika Internet for making this release
possible.
This is my first plugin so I''m pretty sure it can be improved on many
ways, any feedback will be welcome! ;)
--
Raul Murciano - Freelance Web Developer
http://raul.murciano.net
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---