MVC3中的多语言网站 [英] Multilingual Site in MVC3
问题描述
Hello Coder's。
i我在ASP.NET MVC3中用土耳其语和英语创建网站。
i am使用下面的代码使我的网站多语言。
http://www.codeproject.com/Articles/207602/Creating-a-Bilingual-ASP-NET-MVC3-Application-Part
但问题是这会导致我的浏览器网址。
我不想这样做,因为这会影响我的其他代码。
问题: -
http:// localhost:53866 / en / Index / GetCourseList / 13
http:/ / localhost:53866 / tr / Index / GetCourseList / 13
i不想在网址中添加en和tr ..
还有其他方法可以让网站多语言在MVC中使用。
请帮助..
谢谢,
Salman Ansari
试试这个: -
http://afana.me/post/aspnet-mvc-internationalization.aspx [ ^ ]
谢谢你的回复
但我之前看过那个链接,但他们正在使用单独的View for Each语言,如index_eng.cshtml,index_arabic.cshtml,但我不想重复我的观点。 / BLOCKQUOTE>
Hello Coder''s.
i am creating website in ASP.NET MVC3 which is in Turkish and English language.
i am using below code to make my site multi lingual.
http://www.codeproject.com/Articles/207602/Creating-a-Bilingual-ASP-NET-MVC3-Application-Part
but problem is that that will chnage my browser url.
I do not want to do this because that will affect my other code.
Problem:-
http://localhost:53866/en/Index/GetCourseList/13
http://localhost:53866/tr/Index/GetCourseList/13
i do not want to add en and tr in url..
Is there any other way to make website multi lingual in MVC.
Please help..
Thanks,
Salman Ansari解决方案try this:-
http://afana.me/post/aspnet-mvc-internationalization.aspx[^]
Thanks your reply
But i have seen that link before but they are using separate View for Each language like index_eng.cshtml,index_arabic.cshtml but i do not want to Repeat my Views.
这篇关于MVC3中的多语言网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!