enriclluelles/route_translator — pull request #3 by gucki (2012-08-29 12:34:31+00:00)
Title: Added ability to translate whole paths

See https://github.com/enriclluelles/route_translator/issues/1

The translations can now include whole paths like this:

de:
'/consulting': '/beratungsanfrage'
'/consulting/new': '/beratungsanfrage'
'/couples/sample': '/musterseite'
'/couples/:couple_id/pages/:id': '/hochzeitsreise~:couple_id~:id'

This way the routes.rb itself stays completely clean of any translations and custom routes. Also tools like wti can be used to edit/ update the translations, which would not be possible if hardcoding them in routes.rb.