本文介绍了ValidationMessageFor语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的 ASP.NET MVC 5 。我想在法国获得的 ValidationMessageFor 的消息

I am using ASP.NET MVC 5. I am trying to get the message of the ValidationMessageFor in French.

中的xxx字段是必须的 - >乐冠军XXX EST manquant

我已经部署了我的网站在2台服务器

I have deployed my website in 2 servers


  • 在Windows Server 2008 R2 SP1 + IIS 7

  • 在Windows Server 2012 IIS + 8

我加了我的的web.config 此以下行:

<globalization culture="fr-FR" uiCulture="fr" />

最后,我在做翻译为WS 2012年成功,但是不能与2008年WS,当我提交表单,我还有的是必需的XXX场的英文。

我断定它是服务器配置的问题。但哪一个?

I conclude that it's a problem of server configuration. But which one?

我曾尝试:


  • 全球化选项设置为法语(FR)到IIS

  • 设置一个法语语言包成WS(我的服务器现在是法语)

  • ...等等等等

如果任何人有一个解决方案,我...

If anyone has a solution for me...

推荐答案

您需要在您承载您的网站服务器上安装语言包。去微软的官方网站,你可以下载它们。

You need to install language pack on the server on which you are hosting your site. Go to Microsoft's official site and you can download them.


  1. 转到下面的链接,然后从下拉列表中的语言。在你
    案法国。

然后点击下载按钮。

然后保存在磁盘上的文件并进行安装。

Then save file on your disk and install it.

请让我知道,如果你有任何问题。

Please let me know if you have any problem.

这篇关于ValidationMessageFor语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 18:34