如何使用vb.net在Windows应用程序中动态更改不同的语言 [英] How to change different languages dynamically in windows application using vb.net

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

问题描述

嗨朋友们,我在Windows应用程序中有了新的要求。我将动态地为我的应用程序提供差异语言。如果我们能在印度采取不同的语言。我想要所有与印度有关的语言。如何在Windows应用程序中执行此任务。



请任何人帮助我...

Hi friends , I have a new requirement in windows application. I will provide the difference languages dynamically to my application . If we can take the different langues in india. I want all languages related to india. How will do this task in windows application.

Please any one help me...

推荐答案

阅读全球化和本地化。并且:你需要有人翻译你的应用程序的所有菜单和消息 - 使用印度的许多语言,这可能是一项相当昂贵的任务。

另一点是:你想要语言有多动态选择是什么?在.exe.config文件中配置并因此在程序执行期间保持不变,或者您是否想在程序中更改语言?

前一个选项相当简单,只需从中读取文化文件并在程序中提前设置CurrentCulture和CurrentUICulture(在静态Main()中)以及稍后开始的每个线程。
Read about Globalization and Localization. And: you will need someone translating all the menus and messages of your application - with the many languages of India, that can be quite an expensive task.
Another point is: how dynamic do you want the language selection to be? Configured in the .exe.config file and thus constant during execution of the program, or do you want to change the language during the program?
The former option is rather simple, just read the culture from that file and set the CurrentCulture and CurrentUICulture early (in static Main()) in the program and for every thread which gets started later on.


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

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