在应用程序中更改语言

问题描述:

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

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.