+Important change from version 0.0.5 (Feb 2012) to 0.1.0 (June 2012): if you're updating from an earlier version take into account that now translations defined in routes.yml are namespaced to avoid conflicts with other translations from app (thanks to cawel for the patch). To upgrade you just have to add the namespace 'routes' to your routes.yml (see example in the below docs).
Rails >=3.1 routes translations based on Raul's translate_routes (https://github.com/raul/translate_routes).
It's currently a stripped down version of the forked gem, adding some bugfixes for rails 3.1 and features I needed for my project. See doc below to see what it can do.
@@ -41,11 +43,13 @@ We want to have them in two languages english and spanish, to accomplish this wi
2) Now we can write translations on a standard YAML file (e.g: in config/locales/routes.yml), including all the locales and their translations:
- # you can leave empty locales, for example the default one
+ # you can leave empty locales, for example the default one
- products: productos
- contact: contacto
- new: crear
+ products: productos
+ contact: contacto
+ new: crear
3) Include this filter in your ApplicationController: