使 MVC Web 应用程序使用默认资源文件

Make MVC Web application to use default resource file

我有一个 asp 网络 MVC 应用程序,它使用资源文件进行翻译。其中一些资源文件在许多应用程序之间共享。通常这会按预期工作:

ProjectX
- ClientStrings.resx     <--- this one is picked for swedish
- ClientStrings.en.resx  <--- this one is picked for english
Shared
- Shared.resx     <--- this one is picked for swedish
- Shared.en.resx  <--- this one is picked for english

我的问题是一个应用程序不应被翻译成任何其他语言——它应该只使用瑞典语。

ProjectY
- ClientStrings.resx     <--- this one is picked (only one choice)   
Shared
- Shared.resx     
- Shared.en.resx     <--- ISSUE: this one is always picked (even for swedish)

更改语言的方法是更改​​浏览器语言。请帮助我理解为什么这对 ProjectY 不起作用!

问题在于应用浏览器的语言。比较两个项目 web.config-files 我发现以下行是应用浏览器语言所必需的,并且在 ProjectY 中缺失:

<globalization enableClientBasedCulture="true" uiCulture="auto" culture="auto"></globalization>