translateXML |
This method enables you to translate the text of the xml node to the language in which the XForm is currently being displayed.
Syntax
localization.translateXML(<XMLDocument>);
Parameters
Parameter |
Description |
---|---|
XMLDocument |
Required. Refers to the XML which has the text node to be translated. |
Return Value
This method returns an XML object with the translated text node.
Example
The following example shows how to use the makeCompositeText method:
<xml id="selectAppDefinition"> <Application> <description translatable="true">Select Version</description> <caption translatable="true">Select Version</caption> <url>/cordys/com/cordys/cap/runtime/selectversion.caf</url> <id>selectAppDefinition</id> <frame features="dialogHeight:95%;dialogWidth:70%;"/> </Application> </xml>
application.importType("translation.library.util.Localization"); var localization = new Localization(dictionary); localization.translateXML(selectAppDefinition.XMLDocument.documentElement);