Search code examples
vbscriptlocale

VBScript GetLocale returns the wrong value


I'm trying to test some scripting that will run on non-English Windows installations. I'm trying to simulate that by installing the required languages and setting my locale accordingly.

However, when I run the VBScript, I notice that the language box in the task bar changes back to en-US, and the GetLocale function always returns 1033.

What else do I need to do to properly simulate a different locale?


Solution

  • Based on my own research, it appears to be the "Format" setting in the Region and Language control panel that corresponds with the GetLocale value.

    Unfortunately, this has no bearing on the display language for the OS, which is what I was really interested in.