|
-
Jun 15th, 2011, 06:09 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Please explain GetSystemDefaultLangID() API
Hi
With ref to API (GetSystemDefaultLangID()) I'd like to know:
1) Can it be used as a solid way to "regionalize" your app,
does it work with all Win OS ? From 98 to Seven ? Is it reliable ?
2) The value returned can be "hacked" ? Can the user change this info, I mean the average user can easely do it or does it take an hacker on steroids to modify it ?
3) There are codes for even the smallest countries, for example Uruguay, Luxembourg, Panama, Israel.... This means that manufacturers produce the OS marketed exactly for these countries ?? Please explain, thanks.
Regards
-
Jun 15th, 2011, 07:32 AM
#2
Re: Please explain GetSystemDefaultLangID() API
1) a - Can it be used as a solid way to "regionalize" your app?
I don't think so, it only returns local system's language identifier. Based on returned value you will have to assign appropriate language (if that's what you want) but you will have to develop that all by yourself.
1) b - does it work with all Win OS ? From 98 to Seven ? Is it reliable?
It has to be at least Windows 2000 Professional or Windows 2000 Server.
2) The value returned can be "hacked" ? Can the user change this info, I mean the average user can easely do it or does it take an hacker on steroids to modify it ?
It's an OS level system info so if someone actually did hack it then you better restore it.
3) There are codes for even the smallest countries...
Yes, of course. Many contries may have English as national language but dialects are all different.
That's basically why there is a constant for Primary Language and the Sublanguage:
LANG_ENGLISH / SUBLANG_ENGLISH_AUS
LANG_ENGLISH / SUBLANG_ENGLISH_CAN
LANG_ENGLISH / SUBLANG_ENGLISH_INDIA
LANG_ENGLISH / SUBLANG_ENGLISH_UK
LANG_ENGLISH / SUBLANG_ENGLISH_US
-
Jun 15th, 2011, 07:39 AM
#3
Thread Starter
Hyperactive Member
Re: Please explain GetSystemDefaultLangID() API
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|