How can I convert ISO639-3 three-letter language names (e.g. "PLK", "DEU", "ENU") to language codes (ie. 0x0415 for PLK, 0x0407 for DEU, 0x0409 for ENU) or to culture name (ie. "pl-PL" for PLK, "de" for DEU, "en-US" for ENU)?
I need to make the reverse conversion from the one in the following line of code:
GetLocaleInfoA(0x0415, LOCALE_SABBREVLANGNAME, buffer.data(), buffer.size());
// now buffer will have "PLK"
I would like to be able to write something like:
LCID langCode = SomeMagicalFunctionThatISearchFor("PLK");
//and landCode should be now 0x0415 (1045 in decimal)
My code targets Microsoft Windows, so use of WinAPI is possible.