Is there some way in the Win32 API to convert a three letter language code, as returned by GetLocaleInfo()
with LOCALE_SABBREVLANGNAME
specified, to a corresponding LANGID
or LCID
? That is, going in "reverse" to what GetLocaleInfo()
normally does?
What I'm trying to do is to parse what kind of language a resource DLL is using, and so far, without touching anything about the DLL, going by the dll name with a format nameLNG.dll
, where LNG
is a three letter language code, seems to be the easiest method, assuming such a function exists.
If this isn't easy to do, I guess Plan B is to give our language DLL's a version info resource, specify their respective cultures there, and later on in the application, read which cultures they use.