更改程序的自然语言 [英] Change the Natural Language of program

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

问题描述

朋友,
我已经完成了一个软件程序.那是英文.请提出如何快速将语言更改为中文的建议.
谢谢.

Hi Friends,
I have completed a software program. That is in English. Please suggest How can I quickly change the language to Chinese.
Thank you.

推荐答案

我建​​议您从这里开始: http://msdn.microsoft.com/en-us/library/aa292205(v = vs.71).aspx [ ^ ], http://msdn. microsoft.com/en-us/library/ms788718.aspx [ ^ ].

基本上,您需要先将代码全球化.这主要是将所有字符串数据放入资源中,摆脱了字符串常量(尤其是立即硬编码的常量).然后,可以添加Satellite Assemblies一对一地定位到所需的区域性.很棒的是,如果全球化的话,您甚至不需要重新修改现有的代码!

一个困难的问题是UI布局:应该使它对文本的长度不敏感.这是可以解决的,但是大多数可用的UI不能全球化,但这就是原因.您需要掌握非常谨慎的UI设计风格.

请阅读我针对另一个问题而提出的关于UI设计的建议: GUI Apperance-C#.净 [ ^ ].

—SA
I would suggest you start from here: http://msdn.microsoft.com/en-us/goglobal/bb688139[^].

See also: http://msdn.microsoft.com/en-us/library/aa292205(v=vs.71).aspx[^], http://msdn.microsoft.com/en-us/library/ms788718.aspx[^].

Basically, you need to globalize you code first. This is mainly putting all your string data to resources, getting rid of string constants (especially immediate hard-coded ones). Then you can localize to required cultures one-by-one, adding Satellite Assemblies. Great thing is, you don''t even need to re-touch your existing code, if it was globalized well!

One difficult problem is UI layout: it should be made insensitive to the lengths of the texts. This is quite solvable, but most available UI is not globalizeable but that reason. You need to master really careful UI design style.

Please read my recommendations on UI design I put in response to another Question: GUI Apperance - C#.Net[^].

—SA


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

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