开发者

ASP.NET WebForms with MVC localization issue

I have a mixed project: WebForms with ASP.NET MVC2 and is running OK. I have done this tutorial on separate MVC Project and localization is working fine.

However, when I want to apply localization (mentioned above) in my mixed project, it seems to be ignored. It doesn't matter wh开发者_C百科at I set in global.asax file (de-DE, fr-FR, pl-PL) always get en-EN or en-GB. This is really strange. web.config is correct and doesn't force the localization.

Any clues why it is ignored in mixed project?


Just happend to me.

My resources project contains Forms.resx and Forms.fr-fr.resx. The neutral culture is set to en-us.

My ASP MVC 2 project has a reference to the previous one. No neutral culture was set. Implementing localization caused validation not to validate anymore.

Setting the same neutral culture in the web project made stuff work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜