DLT. - DeepL Translate

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > DLT. - DeepL-Translate >

DLT. - DeepL Translate

DLT.Translate Text

Previous Top Next


MiniRobotLanguage (MRL)

 

DLT.Translate Text

Translates text using DeepL with customizable settings

 

 

Intention

 

The DLT.Translate Text command (short form DLT.tra) is a powerful tool that leverages the capabilities of the DeepL translation service to translate a given text from one language to another. DeepL is a state-of-the-art machine translation service that uses artificial intelligence to achieve high-quality translations. It supports a wide range of languages and is renowned for its ability to capture nuances and maintain the original tone of the text.

 

To use the DLT.Translate Text command, you need to have a valid API key for the DeepL service. This key is used to authenticate your requests and access the translation service.

Please note that the DeepL service may or may not be free, and usage costs may apply depending on your subscription plan with DeepL.com

 

The DLT.Translate Text command takes up to four parameters. The first parameter, P1, is mandatory and specifies the text to be translated. The remaining parameters are optional and allow you to customize the translation process:

 

 

 

 

Syntax

 

 

DLT.Translate Text|P1[|P2][|P3][|P4]

 

 

Parameter Explanation

 

P1 - The text to be translated. This parameter is mandatory.

 

P2 - (optional) The variable to store the translation result. If omitted, the translation result is placed on the Top of Stack (TOS).

 

P3 - (optional) The source language for the translation. If omitted, the translation service will automatically detect the source language.

 

P4 - (optional) The target language for the translation. If omitted, the translation service will use the default target language set by the DLT.Set Target Language command.

 

 

 

Example

 

'***********************************

'

'***********************************
'  This command translates the text "Hello" and places the translation result on the Top of Stack. The source and target languages are automatically detected or set to the default values.
DLT.Translate Text|"Hello"

 

'  This command translates the English text "Hello" into German and stores the translation result in the $$Res variable.

DLT.Translate Text|"Hello"|$$Res|en|de

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: