/
† description_translate ()

† description_translate ()

Deprecated and removed in API Version 2.8.1

description_translate ( session, object, id, type, target_language )

Is a function to translate text string to another language

Input

parameters:

session: is the session id obtained in the session_init call

object: object, which description will be used as source to translate ( LIBRARY_PROGRAM | LIBRARY_PROTOCOL | LIBRARY_TEMPLATE | LIBRARY_TASK )

id: id of object

type: type of description (NAME | DESCRIPTION)

target_language: target language of tranlsation

Output

parameters:

result: is translated text string

ErrorMsg: any fault in the call, either in the validation of input parameters, errors in the connection to the database or any other error, this parameter returns the error message produced

Request

sample:

description_translate( "LC000000.1212212", "LIBRARY_PROGRAM", 12, "NAME", "en");

Response

sample:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<result>hello</result>

<ErrorMsg></ErrorMsg>

Notes:

 If id parameter is null, object parameter will be considered as string to translate, in this case type also is redundant.

 

 

Related content