Where does legacy ASP.NET initialize language?

I have to fix a bug where a single international user gets the wrong language and need to replicate this. As an admin, I can log in as the user. But I have no plans to switch my Windows language to Swedish. So I thought I would track down the exact line of code which reads the Default OS language and assigns that to my website to use.

Any idea what variable names I could search this very large solution for? I assume it includes "Environment".

What function would this be in? I will look inside Global.asax if there is one...

Thanks
newbiewebSr. Software EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Snarf0001Commented:
Typically the thead culture is set based on the languages passed from the browser.
This is done on every request load for every user.

System.Threading.Thread.CurrentThread.CurrentCulture
System.Threading.Thread.CurrentThread.CurrentUICulture

If you need to emulate, you can easily just override the language settings in the browser.  Chrome, IE pretty much anything makes it easy to just add multiple languages into your browser, and then just change the order of them momentarily to test.
I have about 5 different ones in there just for that purpose.

In any case, you can also just override those settings above on begin_request in global.asax and set them to a Swedish culture to test.
If you need to CHANGE that Swedish one for that single user, that's also where you'd do it.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
newbiewebSr. Software EngineerAuthor Commented:
Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.