SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1761 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"

serverModelAlwaysCheckTag = myAlwaysCheckTag;
TM.serverModelAlwaysCheckAttribute = myAlwaysCheckAttribute;
var split = TranslationManager.splitBody(inStr);
outStr = TM.translate(split.inStr);
if (outStr != ??????)
outStr = split.preInStr + outStr + split.postInStr;
}
...
return outStr;
}
In this example, notice that the translated document in the form of outStr is built by creating a
TranslationManager object named TM and then calling this object??™s translate() method:
TM.translate(split.inStr).
Locking code
Translations are generally intended for onscreen presentation only. Although there??™s no rule prohibiting
translated content from being written out to disk, most applications need the original content to run. To
protect the original content, Dreamweaver includes a special locking tag. This XML tag pair,
..., stops the enclosed content (the translation) from being edited,
while simultaneously storing a copy of the original content in a special format.
The tag has several attributes:
n translatorClass??”The identifying name of the translator as specified in
getTranslatorInfo().
n type??”The type or tag name for the markup to be translated.
n depFiles??”A comma-separated list of any files on which the locked content depends.


Pages:
1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773