User Guide
Translation functions 291
dreamweaver.getTranslatorList()
Availability
Dreamweaver 3.
Description
This function gets a list of the installed translators.
Arguments
None.
Returns
An array of strings where each string represents the name of a translator as it appears in the
Translation preferences.
dreamweaver.useTranslatedSource()
Availability
Dreamweaver 2.
Description
This function specifies that the values that dom.nodeToOffsets() and dom.getSelection()
return. These are used by
dom.offsetsToNode() and dom.setSelection() and should be
offsets into the translated source (the HTML that is contained in the DOM after a translator
runs), not the untranslated source.
Note: This function is relevant only in Property inspector files.
Arguments
bUseTranslatedSource
• The bUseTranslatedSource argument is a Boolean value: true if the function uses offsets
into the translated source;
false if the function uses the untranslated source.
The default value of the argument is
false. Dreamweaver automatically uses the untranslated
source for subsequent calls to
dw.getSelection(), dw.setSelection(),
dw.nodeToOffsets(), and dw.offsetsToNode() when the script that calls
dw.useTranslatedSource() finishes executing, if dw.useTranslatedSource() is not
explicitly called with an argument of
false before then.
Returns
Nothing.
000_DW_API_Print.book Page 291 Wednesday, August 20, 2003 9:14 AM