How to get the language value?

S

shapper

Hello,

I know that Thread.CurrentThread.CurrentCulture will get me "en-US",
"en-GB", "fr-FR" and so on ...

I want to get only the language value. I mean the two first letters:
"en" or "fr".

How can I do this?

Thanks,

Miguel
 
G

Guest

Miguel I meant this:

System.Threading.Thread.CurrentThread.CurrentCulture.Parent.Name
 

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

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,119
Latest member
IrmaNorcro
Top