在应用程序中更改语言 [英] changing the language within the application

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

问题描述

我正在构建一个应用程序,并且该应用程序是供国际使用的,因此我对其进行了设置,以便可以从一开始就更改语言,但是当他们转到下一页(窗口)时,必须再次更改它,等等,我需要 知道如何做,以便他们将其更改为说西班牙语,并且在整个应用程序中都保持该语言不变.

I am building  a application and  it is for international use  so I have it set up so that the language can be changed  at the beginning but when they go to the next page (window ) they have to change it again and  so on , I need to know how to do it  so that if they change it to say spanish  it stays in that language  throughout the application. 

推荐答案

您好Jeffrey,

Hi Jeffrey,

如果您正在使用CultureInfo进行本地化功能,则可以看看 在.NET的所有版本中设置默认密码.

If you are using CultureInfo to make the localization function, then you might take a look at SETTING DEFAULT CURRENTCULTURE IN ALL VERSIONS OF .NET.

它可以帮助您更改AppDomain整个线程的默认CultureInfo.

It could help you to change the default CultureInfo for whole threads of your AppDomain.

因此,不再需要为新打开的窗口更改CultureInfo.

So there will be no longer to change the CultureInfo for the new opening windows.

顺便说一句,我认为

By the way, I think this thread should be helpful to you, too.


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

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