在Winform中本地化GUI控件 [英] Localizing GUI Controls in Winform

查看:159
本文介绍了在Winform中本地化GUI控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在表单中本地化标签和此类控件.
不幸的是,我无法在启动表单的标签中找到本地化的字符串
.Forms Localizable属性设置为Form.我发现的唯一区别是
表单内部有一个面板,这些面板放置在该面板中..
有没有一种方法可以将面板本地化...
请帮助解决这种情况并本地化我的GUI控件


在此先感谢

I am trying to localize my labels and such control in my form.
Unforunately i am not able to find a localized string in my Labels of my start up form
.Forms Localizable property is set to Form. The only difference which i am finding is
There is a panel inside the form and these panels are placed inside this panel..
Is there a way to localize the panel...
pls help to comeout of this scenario and localize my GUI controls


thanks in advance

推荐答案

这不是查找"或本地化面板"的问题.可能您不了解本地化和全球化.该技术定义明确.它基于资源,附属程序集,后备以及当前的线程和线程UI文化.您围绕它开发了什么吗?

您甚至将您的应用程序全球化了吗?在本地化之前,您需要对应用程序进行全球化.首先,一切可能取决于文化的内容都应放在资源中,其次,您的设计应灵活且对所有文本的长度都具有高度的容忍性.

从这里开始:
http://msdn.microsoft.com/en-us/library/aa292205 (v = vs.71).aspx [ GUI外观-C#.Net [屏幕分辨率改变时,Zom Out发生故障 [ ^ ].讨论的内容是对表格大小的屏幕分辨率的容忍度,但这对于本地化也非常有用.

—SA
It''s not a matter of "finding" or "localizing a panel". Probably you have no idea of localization and globalization. The technology is well defined. It is based on resources, satellite assemblies, fallback and current thread and thread UI culture. Did you develop anything around it?

Did you even globalized your application? Before localizing, you need to globalize the application. First, everything which may depend on culture should be in resources, secondly, your design should be flexible and highly tolerant to the lengths of all texts.

Start here:
http://msdn.microsoft.com/en-us/library/aa292205(v=vs.71).aspx[^].

For the ideas on flexible UI desing, take a look at my past asnwers:
GUI Apperance - C#.Net[^],
Zom Out malfunctions when Screen resolution changes[^]. The discussion is about tolerance to screen resolution of form size, but this is extremely useful for localization as well.

—SA


这篇关于在Winform中本地化GUI控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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