So I have a website that is in two different languages and I've set it up to pull text from a resources file based on CurrentUICulture.
I have two link buttons that a user can click to switch between english and russian.
Example:
Thread.CurrentThread.CurrentUICulture = new CultureInfo("ru-RU");
And this switches the language just fine. But I'd like to have the current language somehow reflected in the current URL for bookmarking purposes or for sending out links to a page ina specific language. Like on of these examples:
- www.mysite.com/contact/index.aspx?lang=ru
- www.ru.mysite.com/index.aspx
- www.mysite.com/ru/contact.aspx (altough this directory doesnt actually exist)
I'm also wondering how to best segregate Google Analytics data between the two different languages.