Changing lang.langcode from 3 to 2 letters

Exporting translation bundles for each target language using the sample macro from the documentation:

' Make filename "test_<langcode>.tba/tbu" 
    Dim filename As String 
    filename = "F:\jenkins\jobs\l10n-infrasign-b8\workspace\INFRASIGN_L10N_" & lang.LangCode
    bundle.License ("")
    prj.ExportTransBundle bundle, filename

gives me

INFRASIGN_L10N_esp.tbulic
INFRASIGN_L10N_nld.tbulic
INFRASIGN_L10N_enu.tbulic

I need:

fINFRASIGN_L10N_es.tbulic
fINFRASIGN_L10N_nl.tbulic
fINFRASIGN_L10N_en.tbulic

Any way to format lang.LangCode?

Thank you!

emoji
Parents Reply Children