From: hpoussin(a)svn.reactos.com
Fix sublanguage IDs in .rc files:
- LANG_ENGLISH -> SUBLANG_ENGLISH_US
- LANG_JAPANESE -> SUBLANG_DEFAULT
- others -> SUBLANG_NEUTRAL
For reference, this is the search order currently used by ReactOS (copied
from Wine, I'm not claiming Windows uses this same exact search order too,
haven't tested):
1. specified language
2. specified language with neutral sublanguage
3. neutral language with neutral sublanguage
if no explicitly specified language
4. current thread locale language
5. user locale language
6. user locale language with neutral sublanguage
7. system locale language
8. system locale language with neutral sublanguage
9. LANG_ENGLISH/SUBLANG_DEFAULT
If searching for all of these fails, the first resource item found in the
resource file matching the resource type and resource id is used.
You can find this in lib/ntdll/ldr/res.c function LdrFindResource_U().
GvG