Extending MvcRouteHandler to enable localization of ASP.NET MVC2 apps

added by jeroenverhulst
8/15/2010 5:59:30 PM


Whilst developing a website that should be available in multiple languages one can use different solutions. A common scenario is to include the language of the webpage in the first part of the URL, thus creating a unique path to each page in each language (this will also be handy when you are using caching). In addition to this we also add the country for country-specific localization. The main goals is to get an URL like /{Language}/{Country}/{Controller}/{Action} in the application.