Translates the given key to its configured match in the language set by CurrentLanguage. | |
Syntax: | String = object.Translate ( Key ) |
Parameters: |
Key As
String -
|
Description: | Translates the given key to its configured match
in the language set by the CurrentLanguage property.
The key compare is case sensitive so "Hello" can translate to a
different value than "HELLO". If no language is set as the CurrentLanguage this method
will generate an error. Example: Sub Translate_Example() Dim oLangMap As
CIMLangMapper.CIMLangMap Set oLangMap =
CreateObject("CIMLangMapper.CIMLangMap") oLangMap.Load
"c:\trans.clm" oLangMap.CurrentLanguage ="JPN" MsgBox "The translation of Hello is:
" & oLangMap.Translate("Hello") End Sub |
See Also: | CurrentLanguage , CIMTranslationGroup.CurrentTranslationValue |