多语言应用 [英] Muliti Language Application

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

问题描述

嗨Frnds,
我需要开发一个Muliti Lanugage应用程序.我对此一无所知.
我如何才能同时更改按钮,标签语言和我需要在sql server中将输入保存为本地语言的方式.而我该如何检索输出!


请帮帮我.
感谢

Hi Frnds,
I need to develop a Muliti Lanugage Application. I don''t have any idea for this.
How can i change my Buttons, labels Language at the same time i need to save my input in a local language in sql server. And How can i retrive the Output!!


Please Help me.
thanks

推荐答案

某些链接-

http://msdn.microsoft.com/en-us/library/y99d1cd3 (v = vs.80).aspx [ .NET-使用资源文件进行本地化 [
Some links -

http://msdn.microsoft.com/en-us/library/y99d1cd3(v=vs.80).aspx[^]

.NET - Localization using Resource file[^]


理论是使用不同的资源文件,每个资源文件一个您支持的其他语言.相同的资源具有相同的名称,因此无论您使用哪种语言,BTN_SEARCH都是搜索按钮上显示的任何文本.然后,在初始化代码中,从资源文件中加载按钮,菜单,标签等的文本,而不是使用静态字符串.您所需要做的就是交换资源文件,并且您的应用程序已更改语言.

就实践而言,我从未真正做到过.我希望有人在CP上写了一篇非常好的how-to文章,所以您可能希望进行搜索.
The theory is to use different resource files, one for each different language you are supporting. Identical resources have identical names, so that BTN_SEARCH would be whatever text goes on a search button regardless of what language you are using. Then in your initialization code, you load text for buttons, menus, labels, etc. from the resource file rather than use static strings. All you have to do is swap resource files, and your application has changed language.

As far as practice, I''ve never actually done this. I expect that someone has written a very good how-to article here at CP, so you might want to do a search.


这篇关于多语言应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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