0

I have an asp.net website. I want to add subdomain for a secondary language:

www.domain.com = main
cn.domain.com = chinese

I have no idea where to start...

Thanks.

abatishchev
  • 98,240
  • 88
  • 296
  • 433
beytz
  • 1
  • 1

1 Answers1

1

First off you might want to read a bit general about how to do mutlilingual applications, here are a couple of resources for you to start off with:

In short what you might want to do is in your asp.net application, you listen to what sub-domain the users are coming from and based on that you use the above to change the current language.

Something like these two steps:

  • Identify what subdomain the user is accessing
    • Alternativly check the browser language
  • Change the Globalization settings

Another thing you need to do is move your text into resource files that corresponds with the language the user wants to view. The above tutorials should go through those steps aswell.

Filip Ekberg
  • 36,033
  • 20
  • 126
  • 183
  • This question on SO may help with the sub-domain part of the Q: http://stackoverflow.com/questions/1322151/subdomain-rewriting-in-asp-net – davidsleeps Feb 09 '11 at 10:34