ZennoLab Assemblies Documentation
Translate Method (TextProcessing)
Example 
ZennoLab.Macros Namespace > TextProcessing Class : Translate Method

Type: System.String

DLL library.

Type: System.String

The source text.

Type: System.String

Target language.

Type: System.String

Source language (default: auto).

Type: System.String

Proxy URL string

Type: System.String

Additional parameters string

Translate text through the specified DLL library.
Syntax

Parameters

dllName

Type: System.String

DLL library.

text

Type: System.String

The source text.

targetLanguge

Type: System.String

Target language.

sourceLanguage

Type: System.String

Source language (default: auto).

proxyStr

Type: System.String

Proxy URL string

additionalParameters

Type: System.String

Additional parameters string

Return Value

Type: System.String

Result text.

Example
The following code example demonstrates uses of the TextTranslate method.
string res = Macros.TextProcessing.TextTranslate("BaiduTranslate.dll", "Hello!", "Chinese");
$res = Macros::TextProcessing::TextTranslate("BaiduTranslate.dll", "Hello!", "Chinese");
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

TextProcessing Class
TextProcessing Members
Spintax Method
Translit Method