Is it possible to change Windows UI language without logoff?

Posted on

QUESTION :

In order to test the localization in my program I need to switch the Windows user language to the various languages my program supports. After installing the necessary “Multilingual User Interface” packs (MUI packs) this works fine, except that I have to log off from Windows and log in again every time I change the language.

Is there any way to avoid this, i.e., switch language without having to log off?

EDIT:

Just to make it very clear, I really do want to change the Windows language. I know that I can simulate the results this will have in my program, but that’s not what my question is about.

ANSWER :

You didn’t mention the which programming language you are using.
But if it is by any change VB.Net you can use:

Application.CurrentCulture = New System.Globalization.CultureInfo("nl-NL") 'Dutch

When you use C#:

Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo("nl-NL") //Dutch

Some references:

  • MSDN Setting the Culture and UI Culture for Web Forms Globalization
  • MSDN Walkthrough: Localizing Windows Forms

If you are changing the language of Windows interface, yes you need to do it. But if you are changing the location (which it’s what I think you need), no.

Language packs are available in Windows 7 Ultimate through Windows Update as optional updates. They aren’t installed automatically.

To install a language pack, follow these steps:

Click to open Region and Language.

Click the Keyboards and Languages tab.

Under Display language, click Install/uninstall languages, and then follow the steps. If you’re prompted for an administrator password or confirmation, type the password or provide confirmation.

Note
The Display language section will be visible only if you have already installed a Language Interface Pack or if your edition of Windows supports a language pack. Language packs are available only in Windows 7 Ultimate and Windows 7 Enterprise.

I found that if you kill the explorer.exe process, and starts it again, your UI change is applied.

Leave a Reply

Your email address will not be published. Required fields are marked *