How to tell if windows is non-U.S. version?

G

Guest

Hi,

OUr .NET app is written specifically to run on the English version of
Windows server. Some customers are running Windows Frenchm other versions.
I'm not talking about regional settings, but actually French Windows itself.

How can one tell if Windows itself is English, versus French version with
English (U.S) regional settings?

thanks
Robb
 
K

Kevin Yu [MSFT]

Hi Robb,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to get the language verison of
the windows system. If there is any misunderstanding, please feel free to
let me know.

To get the language version in .NET, we can use
System.Globalization.CultureInfo.InstalledUICulture. This property doesn't
depend on the regional setting. For more information, please visit the
following link:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemglobalizationcultureinfoclassinstalleduiculturetopic.asp

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
G

Guest

Thanks Kevin, that is what I was looking for.

But to test this, how do I check the installed OS language? Right-click on
my computer, look under properties? Or what?

thanks
Robb
 
K

Kevin Yu [MSFT]

Hi Robb,

As far as I know, we just check the language of the os from the appearance
of the menus and start up menus.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
G

Guest

Kevin,

In this case that isn't possible, because the customer in question is in
Australia. We have asked them to set their regional settings to English(US),
but that has not solved the problem. Via email, we are trying to have them
verify what lang is installed?

thanks
Robb
 
K

Kevin Yu [MSFT]

Hi Robb,

I'm not quite sure what question your customer is having, because your
original question is how to get the language version of the OS. If they are
using the French version, the InstalledUICulture property should return the
CultureInfo for French. You can try to ask them what version of Windows
they are using. I think they know the answer themselves. :)

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top