class TranslateProcessor extends xm_doclink_processor

Class TranslateProcessor

Properties

TranslationController $mod

Methods

array
get_action($id, $document_index = null)

Get action

init()

No description

bool|array|Template
process_translation(DocumentIndex $document_index, mixed $action_status = false, bool $direct_show = false)

Process translation

string|array
translate(string|Template $content, null|int $document_index_id = null, bool $only_cached = false, bool $force = true)

No description

Details

at line 39
array get_action($id, $document_index = null)

Get action

Parameters

$id
$document_index

Return Value

array

at line 22
init()

No description

at line 53
bool|array|Template process_translation(DocumentIndex $document_index, mixed $action_status = false, bool $direct_show = false)

Process translation

Parameters

DocumentIndex $document_index
mixed $action_status
bool $direct_show

Return Value

bool|array|Template

Exceptions

Exception

at line 111
string|array translate(string|Template $content, null|int $document_index_id = null, bool $only_cached = false, bool $force = true)

No description

Parameters

string|Template $content
null|int $document_index_id

The document index id

bool $only_cached
bool $force

Force the translation

Return Value

string|array

Exceptions

Exception