ASP.NET MVC 2的i18n [英] ASP.NET MVC 2 i18n

查看:184
本文介绍了ASP.NET MVC 2的i18n的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现下面的页面上国际化和ASP.NET:的http://维基.asp.net / page.aspx / 55 /国际/

I found the following page on i18n and ASP.NET: http://wiki.asp.net/page.aspx/55/internationalization/

该视频是非常有益的,尽管它们适用于ASP.NET的WebForms比ASP.NET MVC,例如更多的视频告诉你如何控制国际化,而不是文本 - 这使我又认识:没有(或者我不能在我的MVC应用找到)一个资源文件夹 - 只需像文件夹AppData的

The videos were very helpful although they apply to ASP.NET WebForms more than ASP.NET MVC, e.g., the videos show you how to internationalize controls rather than text -- which leads me to another realization: there isn't (or I couldn't find) a resources folder in my MVC applications -- just folders like AppData.

有没有一种简单的方法(如在视频),以国际化的ASP.NET MVC纯文本?如果不是这样,我必须使用某种形式的ASP控制的?

Is there a simple way (like in the videos) to internationalize plain text in ASP.NET MVC? If not, do I have to use some sort of ASP control?

推荐答案

有一个引导的位置:

http://adamyan.blogspot.com/ 2010/02 / ASPNET-MVC-2定位 - complete.html

斯科特Guthrie的链接到它最近通过Twitter,所以我会接受它一定是好的。

Scott Guthrie linked to it recently via twitter, so I'll take it must be good.

编辑:记得检查下面的帖子在博客,因为它会告诉你如何使用的路线,而不是会话值配置为用户的语言。 http://adamyan.blogspot.com/2010/07 /addition-to-aspnet-mvc-localization.html

remember to check the following post in the blog, as it tells you how to use routes instead of session values to configure the language for the user. http://adamyan.blogspot.com/2010/07/addition-to-aspnet-mvc-localization.html

这篇关于ASP.NET MVC 2的i18n的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆