How to route translated URLs to a module with nitrogen

Posted by niahoo on Stack Overflow See other posts from Stack Overflow or by niahoo
Published on 2011-01-29T14:04:36Z Indexed on 2012/11/06 23:01 UTC
Read the original article Hit count: 198

I used to develop in English, but this time, the webApp i'm building is only for people in my city, which is in France.

In nitrogen, when you call "/user/login", nitrogen calls user_login:main(). I would like nitrogen to call user_login:main() when the request is "/utilisateur/connexion".

I would like nitrogen to call ads_people:main() when the request is "/annonces/personnes", etc.

Is there a way to achieve that properly ?

Many thanks !

© Stack Overflow or respective owner

Related posts about internationalization

Related posts about erlang