在 MVC3 中根据文化信息查找视图的好方法
有时,.resx 文件不能满足所有 g10n 问题。我们需要对某些国家有不同的看法。
例如,对于美国,我们使用 View.cshtml,对于澳大利亚,我们使用 View.en-AU.cshtml。
我绝对可以构建一段代码来根据文化信息查找文件名,但我想检查.net 或 MVC3 是否有任何框架可以自动完成这项工作或通过简单的函数调用完成这项工作?
谢谢
Sometimes, .resx files don't satisfy all the g10n issues. We need a seperate view for some countries.
For example, for US we use View.cshtml, for Austrilia, we use View.en-AU.cshtml.
I can definitely build a piece of code to find file names based on culture info, but I want to check if there is any framework comes with .net or MVC3 can do the job automatically or with a simple function call?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论