I need to get the LanguageIdEnum for each of the available predefined languages. I've searched the manual and cannot see a way to do this. How can I do this please?
We are using the C++ FREngine interface.
I need to get the LanguageIdEnum for each of the available predefined languages. I've searched the manual and cannot see a way to do this. How can I do this please?
We are using the C++ FREngine interface.
0 out of 0 found this helpful
Comments
2 comments
Okay, what I have done is copied and pasted the language ID list from frengine.tlh and then edited it to create a map between internal language name and LCID. However, there are some omissions. I have decided to assign these in a 'sensible' manner as follows:
{ "English", 1033 },
{ "Arabic", 1025 },
{ "Spanish", 1034 },
{ "Dutch", 1043 },
{ "French", 1036 },
{ "German", 1031 },
{ "Italian", 1040 },
{ "JapaneseModern", 1041 },
{ "Malay", 1086 },
{ "KoreanHangul", 1042 },
{ "Norwegian", 1044},
Thus Spanish has the Castilian Spanish LCID, and English has the United States English LCID.
Unfortunately, only the BaseLanguage includes the LanguageId property.
So the possible solution is to perform the following chain of actions:
PredefinedLanguage → TextLanguage → BaseLanguage (if there are many languages, you can choose the language with the same InternalName) → LanguageId.
Please sign in to leave a comment.