コミュニティ

How to get the LanguageIdEnum from the language internal name

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人中0人がこの記事が役に立ったと言っています

コメント

2件のコメント

  • Avatar
    Permanently deleted user

     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.

    0
  • Avatar
    Anna Savinova

    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.

    0

サインインしてコメントを残してください。