在网站上使用法语,德语等不同语言 [英] use different languages like french,German in website

查看:96
本文介绍了在网站上使用法语,德语等不同语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的网站上使用不同的语言,如法语,德语。

这个在asp.net开发需要什么样的编码?

解决方案

当你考虑MVC App的本地化时,你应该考虑下面提到的场景。



1.查看验证



2.简单的文化转换机制



3.Model验证信息本地化



4.DisplayName属性本地化



5.OutputCache和本地化



欲了解更多详情以上场景检查:



ASP.NET MVC本地化完整指南



http://adamyan.blogspot.com/2010/02/aspnet-mvc- 2-localization-complete.html [ ^ ]



ASP.NET MVC中的全球化,国际化和本地化



http://www.hanselman.com/blog/GlobalizationInternationalizationAndLocalizationInASPNETMVC3JavaScriptAndJQueryPart1。 aspx [ ^ ]



我希望这会对你有所帮助。


为此你需要了解ASP.NET中本地化或全球化的概念。

您需要为不同语言创建许多资源文件,并且在运行时根据客户端浏览器的文化值,CLR将获取不同的资源文件并在页面上显示相应的结果。



请理解这些条款。

全球化

本地化

资源文件



-SG


下面的文章可能对你有所帮助..



ASP.NET 2.0 Globalization&本地化解决方案 [ ^ ]

I want to use different languages like french,German in my website.
for this to develop in in asp.net what kind of coding required?

解决方案

When you consider the localization of MVC App, you should consider below mentioned scenarios.

1.Views validation

2.Simple culture switching mechanism

3.Model Validation messages localization

4.DisplayName attribute localization

5.OutputCache and Localization

For get more details of above scenarios check :

ASP.NET MVC Localization complete guide

http://adamyan.blogspot.com/2010/02/aspnet-mvc-2-localization-complete.html[^]

Globalization, Internationalization and Localization in ASP.NET MVC

http://www.hanselman.com/blog/GlobalizationInternationalizationAndLocalizationInASPNETMVC3JavaScriptAndJQueryPart1.aspx[^]

I hope this will help to you.


for this you need to understand the concept of localization or globalization in ASP.NET.
you need to create many resource file for different languages and at runtime depending upon the culture value of the client browser CLR will pick up the different resource file and show the appropriate result on the page.

Please Understand these terms.
Globalization
Localization
Resource File

-SG


Below article might help you..

ASP.NET 2.0 Globalization & Localization solution[^]


这篇关于在网站上使用法语,德语等不同语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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