nLL
nLL

Reputation: 5672

Multilanguage site randomly changes language

I have started to notice something weird. I use standard Asp.net App_GlobalResources to server site (.Net 4) according users browser language and have 5 different languages. Most of time time it works fine. But some times (i suspect under heavy load) default language randomly changes to one of the languages available

Web.config is:

<globalization culture="auto:en-GB" uiCulture="auto:en-GB" />

Anyone experienced it?

UPDATE: it looks like it picks first language resource from alphabetically sorted list of language resources

Upvotes: 4

Views: 355

Answers (1)

Behruz Tolibov
Behruz Tolibov

Reputation: 455

try this in web.config

<globalization enableClientBasedCulture="true" culture="en-GB" uiCulture="en-GB" 
requestEncoding="windows-1256" responseEncoding="windows-1256" 
fileEncoding="windows-1256"/>

and here ASP.NET Localization: Working with Multi-Language Web Applications

Upvotes: 1

Related Questions