Can I clarify something, do you want to put your machine in German mode to test your web application that just runs on the same computer as the browser?
When this works for real, we can assume that the server can be located outside of Germany (or maybe in Germany, but on a machine configured using the US locale - this happens a lot). If so setting up the culture on the server is not quite what you want, and you probably won't be able to do this when deploying.
You also have another problem: there is no reliable way to find out which culture you want to use. You can detect all kinds of data from HTTP headers, search the domain by IP address, but what if the German speaker wanted to use your site from the USA or the American was in Germany and wanted to see ".". instead of "," for the decimal separator?
In other words, I say that it doesn’t matter what culture your client PC uses - it doesn’t matter, because as soon as you go through the Internet, all bets don’t work - even if your application correctly determined your culture it may not be that what your user wants!
So, the way to do this is to ask the user which language they want, and then explicitly set the locale in your application at runtime. This means that the user must choose langague, but this is the only way to make sure the language is right for the user. If all your users are German, then you do not need to ask, you can just record it. If his approach sounds like it can work, then there is good code: http://msdn.microsoft.com/en-us/library/bz9tc508.aspx .
Good luck, or rather, Viel Glück!
Steve haigh
source share