How2 get the full name of the language from the PslLanguage.LangCode?

Hello community, 

I work with PASSOLO automation several years. Now I'm challenged to get the full language name[1] using the PASSOLO automation. 

I'm able to get all translation languages, but I'd like to get the complete string like it is listet in the ComboBox behind "Sprache" (see [1])

Aim is an output like: 

lang.LangCode: chs
lang.LangID:      2052
Language:         Chinesisch (vereinfacht / China)

Thanks in advance for all hints. 

[1] E. g.: 

lang.LangCode: chs 
lang.LangID: 2052


Trados Studio language settings window with 'Sprache' dropdown showing 'Chinesisch (vereinfacht  China)' selected. Fields display Primar-ID: 4, Sub-ID: 2, and language codes 2052, 804, chs, zh-CN, zh, chi, zho.



Generated Image Alt-Text
[edited by: Trados AI at 6:15 AM (GMT 1) on 16 Apr 2024]
emoji