I am trying to come up with how to implement msdn as address bar based localization
http://msdn.microsoft.com/en-us/library/system.string.aspx http://msdn.microsoft.com/ru-ru/library/system.string.aspx
I tried to find various information about ASP.NET localization, but could not find a description of the strategy that could be used to achieve the result.
I am not very familiar with ASP.NET and would like to get some tips on how to implement something that will lead to similar paths on my site (using the best way with the least code duplication, for example).
I understand that I could duplicate both files in two folders. or 10 files in 10 folders if I received 10 cultures. But this is not the best strategy. Do rewriting and skipping parameters take place or?
Update: I completed its implementation as follows: for my localized pages, I register routes to all current cultures (in the general method), for example, for help.aspx I register routes ru-ru/help/ and en-us/help/ , inside help.aspx (and other localized pages, oop way). I parse the address bar and extract the desired language. After that, I set the html content appropriate for the culture specified in the url.
source share