Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Translation.SourceLanguage

Queries the input language to translate from.

Component Version macOS Windows Linux Server iOS SDK
Translation 16.0 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "Translation.SourceLanguage"; SessionID )   More

Parameters

Parameter Description Example
SessionID The translation session. $session

Result

Returns langugae identifier or error.

Description

Queries the input language to translate from.
If this value is set to empty, the session tries to identify the source language automatically. If it can't identify the language, it prompts the person to choose the source language to use for the translation.

Note: This value doesn't update after translation. To see what source language the session uses for a particular translation, check the response sourceLanguage property.

Examples

Try the function and see what it returns:

Set Variable [ $session ; Value: MBS( "Translation.StartSession"; "de"; "en") ]
Show Custom Dialog [ "r" ; MBS( "Translation.SourceLanguage"; $session ) & " -> " & MBS( "Translation.TargetLanguage"; $sessio… ]
Set Variable [ $r ; Value: MBS( "Translation.Release"; $session) ]

See also

This function is free to use.

Created 24th November 2025, last changed 24th November 2025


Translation.ReleaseAll - Translation.StartSession