如何制作多语言程序 [英] How make a multi-language program

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

问题描述

嗨 如何制作多语言程序,例如英语和其他语言
我应该使用XML
请以示例为例
谢谢!

Hi How make a multi-language program to, for example English and other languages
Should I use XML
Please Take the example of a sample
Thanks!

推荐答案

这是一个很大的话题,但是所有解决方案都是众所周知的,并且.NET完全支持.
在我解释全球化和本地化的地方,请参阅我过去的回答:
多语言WINFORm [ http://msdn.microsoft.com/zh-cn/library/aa292205(v = vs.71).aspx [使用RESX文件进行WPF本地化 [人类可读的枚举元数据 [ ^ ].

对于Windows应用程序,使您的应用程序具有灵活性也很重要,因此它对UI中字符串的长度不敏感.
请在这里查看我过去的建议:
GUI外观-C#.Net [屏幕分辨率改变时,Zom Out发生故障 [ ^ ].

对于ASP.NET,请参阅本文:在ASP.NET 2.0中神秘化的全球化和本地化 [ ^ ].

—SA
This is a big topic, but all solutions are well-known and thoroughly supported by .NET.

See my past answer where I explain globalization and localization:
Multi Langauge WINFORm[^].

For detail, look here first: http://msdn.microsoft.com/en-us/library/aa292205(v=vs.71).aspx[^].

Read this CodeProject article:
WPF Localization Using RESX Files[^].

See also my article on a specific topic of enumeration globalization/localization: Human-readable Enumeration Meta-data[^].

For Windows application, it is also important to make your application flexible, so it won''t be sensitive to lengths of the strings in the UI.
Please see my past recommendations here:
GUI Apperance - C#.Net[^],
Zom Out malfunctions when Screen resolution changes[^].

For ASP.NET, see this article: Globalization and localization demystified in ASP.NET 2.0[^].

—SA


我认为您希望您的应用程序以不同的语言显示.如果是这样,那么请看一下这两篇文章:

-立即更改表单中的语言 [即时更改应用程序用户界面的文化 [
I think you want your application to be shown in different languages. If that is so, then have a look at these two articles:

- Instantly Changing Language in the Form[^]

- Changing Your Application User Interface Culture On The Fly[^]

Hope it helped. :thumbsup:


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

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