This function translates the specified text from the user interface language to English.
object.TranslateByDictToEN(aDictionaryId,
aText)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISLanguageUtils interface |
|
aDictionaryId |
In, Required | int |
ID of the dictionary |
aText |
In, Required | string |
The text that should be translated |
string
Display the French text translated to English.
sub Main()
Dim aLanguageUtils
Dim aPatient
Dim aMessage
Set aLanguageUtils = Profile.LanguageUtils
set aPatient = Profile.SelectPatient
aMessage = t("Âge") & ": " & aPatient.Age & vbNewLine &_
t("DDN") & ": " & aPatient.DOB & vbNewLine &_
t("N°fichier") & ": " & aPatient.FileNum & vbNewLine
Profile.MsgBox(aMessage)
end Sub
function t(aText)
t = Profile.LanguageUtils.TranslateByDictToEN(1, aText)
end function
The user interface language should be French.