Asp.net多语言Web应用程序 - 本地化 [英] Asp.net multilingual web application - localization

查看:181
本文介绍了Asp.net多语言Web应用程序 - 本地化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是你的最好的方式来建立多语种asp.net本地化的Web应用程序(仅适用于字符串资源的本地化UI)的意见。尤其是这两个东西:

What's your opinion for the best possible way to build asp.net multilingual localized web application (only UI localization of string resources). Especially this two things:


  1. 如何存储资源? XML文件,RESX文件或其他什么东西?

  2. 如何处理URL的?我不想让语言参数查询字符串所有的时间,所以我需要使用URL重写可能?

/ BR

推荐答案

你有没有看着在ASP.NET的本地化支持?它使用资源组件和设置基于浏览器的设置默认的资源。您还可以通过该线程处理请求设置Culture和UICulture设置覆盖该设置。

Have you looked into the localization support in ASP.NET? It uses resource assemblies and sets the default resource based on the browser's settings. You can also override the setting by setting the culture and uiculture settings for the thread handling the request.

如果你不喜欢使用资源组件(这确实需要,当你想改变一个项目重建),你也可以创建ASP.NET(的此链接使用MS Access作为一个例子,你可以尝试自定义为SQL或其他一些供应商)。

If you don't like using the resource assemblies (which do require a project rebuild when you want to make changes), you can also create a custom resource provider for ASP.NET (this link uses MS Access as an example, you can try to customize it for SQL or some other provider).

http://asp.net 有一些教程,让你开始,喜欢的这个

http://asp.net has some tutorials to get you started, like this one.

这篇关于Asp.net多语言Web应用程序 - 本地化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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