我使用ASP.NET,EF 6.0.2,MVC 5.1.1。在web.config中,我设置了区域性和uiCulture:
<system.web>
<globalization culture="de-CH" uiCulture="de" enableClientBasedCulture="false" />
</system.web>当我在本地运行应用程序时,验证消息将以德语正确显示。当我将项目发布到When服务器时,验证消息总是以英语显示。
但印刷:
Culture: @System.Threading.Thread.CurrentThread.CurrentCulture.ToString()
UI Culture: @System.Threading.Thread.CurrentThread.CurrentUICulture.ToString()显示正确设置的“de-CH”和“de”.
验证是在服务器(而不是客户端)上进行的。因为在提交表单后会出现验证消息。
我想要的是,将应用程序的语言设置为德语-瑞士。
发布于 2014-03-10 13:26:44
问题解决了:服务器上没有安装德语语言包。
https://stackoverflow.com/questions/22297517
复制相似问题