class Google extends BaseTranslationApi
Properties
TranslationController | $mod | from BaseTranslationApi | |
array | $ignoreTags | from BaseTranslationApi | |
protected string | $url | from BaseTranslationApi | |
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
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
Details
at line 107
protected array
checkRequirements()
No description
in
BaseTranslationApi at line 186
bool|null
getAPIStatus(string $apiStatusMessage = '')
No description
in
BaseTranslationApi at line 67
string
getContent()
No description
at line 15
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 22
setKey(string $key)
No description
in
BaseTranslationApi at line 135
protected void
setParameters(string $content, string $target_language)
Sets possible content and target language
in
BaseTranslationApi at line 60
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 29
array
translate(null|string $content = null, null|string $target_language = null)
No description