I want to get the system Language that the user chooses.
I mean by system Language, the language that the user select from the right part of the taskbar, next to the clock.
I inserted the GetSystemDefaultLangID, and GetUserDefaultLangID from the APIViewer.
I am calling them, but the result is not changing while changing the language.
When I change the regional settings from the control panel, the Language ID I am getting from the GetUserDefaultLangID function is changing, but unfortunately it’s not the case I want.
So what do you think I must do to fix my problem??
Thanks for your help.
Const LOCALE_SENGCOUNTRY = &H1002 ' English name of country
Const LOCALE_SENGLANGUAGE = &H1001 ' English name of language
Const LOCALE_SNATIVELANGNAME = &H4 ' native name of language
Const LOCALE_SNATIVECTRYNAME = &H8 ' native name of country
Private Declare Function GetLocaleInfo Lib "kernel32" Alias "GetLocaleInfoA" (ByVal Locale As Long, ByVal LCType As Long, ByVal lpLCData As String, ByVal cchData As Long) As Long
Thanks for your help, but this fuction too is getting it's Source from the Regional Setting in the Control Pannel.
I want to get the infotmations from the Language choosen in the taskbar.
So, please if you have any new idea, just let me know.
Originally posted by Pc_Madness Where can u find your language in the taskbar???
Here is what he is talking about. (see the image below)
If you have multiple languages set for Windows, it will add an app to your system tray to allow you to togle between languages that you use.
In XP they moved it from the system tray to the taskbar.
I played with all the local based APIs that I could find. Unfortunately they all return the default language.
I guess Microsofts thinking is that your program should only respond to the users default language.
If this is the case, then the only use of being able to togle languages is for changing the keyboard layout/characters and for accessing web pages.
Nahlous, do you know of any programs that respond to the languge that you have selected?
Hmm, wait a second isn't IE able to do this?
I know the browser sends info to sites regarding you currently selected language. I've done this to test a multilanguage site that I was developing......
But I could be mistaken, meaning I may have had to actually change the default language.