Url reverse translation with Globalize

I wrote something abou it, any suggestions are welcome

http://assente.altervista.org/?q=reverse_url_translation_with_globalize_-_rails