如何在Windows应用程序中动态更改区域语言 [英] How to dynamically change the regional language in windows application

查看:102
本文介绍了如何在Windows应用程序中动态更改区域语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

希望一切都好.

我们需要在产品中提供名称和地址等重要字段(包括用户输入)的动态翻译.我们可以使用翻译器,但只有在我们可以连接互联网的情况下,它才有效.我们需要一种在脱机模式下和控件中工作的解决方案.我们需要知道以上是否可能吗?请随时询问您对此是否有任何疑问.

需要/同时需要翻译:
*用户输入数据(文本框)

*标签,下拉项


请尽可能提供所需的API和示例帮助我.

在此先感谢:-)
-
问候,
Manohar.

Hi All,

Hope all is well.

We need to provide dynamic translation of names and other important fields like address etc(including the user input) in our product. We can use translators but it works only if we have internet connection. We need a solution to work during offline mode and for controls. We need to know whether the above is possible? Please feel free to ask if you have any queries regarding this.

Need translation for/while:
*the user inputs the data(textbox)

*labels,dropdown items


Please help me with the required API and a sample if possible.

Thanks in advance:-)
--
Regards,
Manohar.

推荐答案

GUI字符串很容易更改,可以将.lang文件与一起使用,也可以将每个字符串存储在项目资源中. 请阅读
GUI strings are easily changed, you can use .lang files with or you can store each string within project resources.
Please read this and this.

On the other hand I don''t see why would you need to translate user input.
And I cannot think of easily applied offline solution for such requirement.


这篇关于如何在Windows应用程序中动态更改区域语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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