在 Asp.net MVC 中实现 XML 本地化的最佳方法?
我们正在开发一个 Asp.net MVC 3 应用程序。客户要求之一是应该使用 XML 文件来实现本地化。客户会不时更新它们。
结构应如下所示:
<lang>
<item key="moduleName">Admin</item>
<item key="yes">Yes</item>
<item key="no">No</item>
</lang>
实现该结构的最佳方法是什么?
你能给我指点什么好的解决办法吗?
We're developing a Asp.net MVC 3 application. One of the customer requirements that localization should be implemented using XML files. The customer is going to update them from time to time.
The structure should be as following:
<lang>
<item key="moduleName">Admin</item>
<item key="yes">Yes</item>
<item key="no">No</item>
</lang>
What is the best way to implement that?
Could you point me to any good solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于 ASP.net 使用的 resx 格式也是 XML,所以我会考虑使用它而不是创建自己的
优点:
Since the resx format used by ASP.net is XML also, I would consider using it and not creating your own
Advantages: