Deepl
class Deepl extends BaseTranslationApi
Class Deepl
Constants
APIURL_ENDPOINT_TRANSLATE |
|
APIURL_ENDPOINT_USAGE |
|
Properties
TranslationController | $mod | from BaseTranslationApi | |
array | $ignoreTags | from BaseTranslationApi | |
protected string | $url | ||
protected string | $source_language | from BaseTranslationApi | |
protected string | $content | from BaseTranslationApi | |
protected string | $target_language | from BaseTranslationApi | |
protected string | $translated_content | from BaseTranslationApi | |
protected string | $key |
Methods
No description
No description
No description
Send feedback aka improved human translation to the API
Sets the config var 'translation_enabled' to false to disable automatic translations.
No description
Sets possible content and target language
No description
No description
Details
at line 164
protected array
checkRequirements()
No description
at line 117
bool|null
getAPIStatus(string $apiStatusMessage = '')
No description
in
BaseTranslationApi at line 67
string
getContent()
No description
at line 28
string
getKey()
No description
in
BaseTranslationApi at line 53
string
getSourceLanguage()
No description
in
BaseTranslationApi at line 81
string
getTargetLanguage()
No description
in
BaseTranslationApi at line 95
string
getTranslatedContent()
No description
in
BaseTranslationApi at line 39
string
getUrl()
No description
in
BaseTranslationApi at line 109
bool
hasFeedbackLoop()
No description
in
BaseTranslationApi at line 125
void
sendFeedback(string $text, string $human, string $srcLang, string $tgtLang, string $originalTranslation)
Send feedback aka improved human translation to the API
in
BaseTranslationApi at line 215
void
setBackgroundTranslationToDisabled()
Sets the config var 'translation_enabled' to false to disable automatic translations.
Is triggered for example by a translation character quota bigger than 98%
in
BaseTranslationApi at line 74
setContent(string $content)
No description
at line 35
setKey(string $key)
No description
in
BaseTranslationApi at line 135
protected void
setParameters(string $content, string $target_language)
Sets possible content and target language
at line 43
setSourceLanguage(string $source_language)
No description
in
BaseTranslationApi at line 88
setTargetLanguage(string $target_language)
No description
in
BaseTranslationApi at line 102
setTranslatedContent(string $translated_content)
No description
in
BaseTranslationApi at line 46
setUrl(string $url)
No description
at line 68
array
translate(null|string $content = null, null|string $target_language = null)
No description