PassoloApp.OnAutoTranslate
This event handler is called when a string needs to be auto-translated. PslTranslations.SourceString contains the string to be translated. PslTranslations.Add can be used to add translations for PslTranslations.SourceString.
Syntax
OnAutoTranslate (Translations as PslTranslations, MinMatch as long, MaxCount as long) as void
Translations The PslTranslations object.
MinMatch Specifies the minimum percent match required. A value of 100 stands for an exact match.
MaxCount Specifies the maximum number of translations to be returned.
Example
Public Sub PSL_OnAutoTranslate(Translations As PslTranslations, ByVal MinMatch As Long, ByVal MaxCount As Long)
' Always translate "OK" to "OK"
If Translations.SourceString = "OK" Then
Translations.Add("OK", "OK",100, "System Macro")
End If
End Sub