This function translates the specified text to the dictionary lexicon.
object.Translate(Text)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISDictionary interface |
|
Text |
In, Required | string |
The specified text for translation |
string
Display the name of the dictionary and the translation of the specified text to the dictionary lexicon.
Dim aDictionary
Dim aAllEntries, aEntry
Dim aDictInfo
Dim i
Set aDictionary = Profile.GetDictionary("Legal")
set aAllEntries = aDictionary.AllEntries
aDictInfo = _
"Dictionary name: " & aDictionary.Name & vbNewLine & vbNewLine &_
"Before translation After translation"
for i = 0 to aAllEntries.Count - 1
set aEntry = aAllEntries.Item(i)
aDictInfo = aDictInfo & vbNewLine & aEntry.SingleMain &_
" " & aDictionary.Translate(aEntry.SingleMain)
next
Profile.MsgBox(aDictInfo)
In Profile Client v8 on User Interface the dictionary can be found in
.