how to convert SAPI's MS LANG ID to BCP 47 language tag?
问题 The call to SAPI's get language method returns an MS LangID, but for my purpose, it needs to be converted to a BCP 47 language tag (eg. en-GB) . how do we do it? I am not able to do it using LCIDToLocalName, as to use this function, I need to convert the returned value into the LCID format first. For eg, it returns "809" for english, now how do I convert it into LCID first, as LCIDHex for English is "0809", and LCIDec is "2057". Any help would be appreciated. Edit: Following is the code if (S