Implements support for Microsoft translation api v3. More...
Public Member Functions | |
__construct (HttpRequestFactory $httpRequestFactory, string $serviceName, array $config) | |
getType () | |
@inheritDoc | |
Public Member Functions inherited from MediaWiki\Extension\Translate\WebService\TranslationWebService | |
getName () | |
Gets the name of this service, for example to display it for the user. | |
getQueries (string $text, string $sourceLanguage, string $targetLanguage) | |
Get queries for this service. | |
getResultData (TranslationQueryResponse $response) | |
Get the web service specific response returned by QueryAggregator. | |
__construct (string $service, array $config) | |
isSupportedLanguagePair (string $sourceLanguage, string $targetLanguage) | |
Test whether given language pair is supported by the service. | |
setLogger (LoggerInterface $logger) | |
checkTranslationServiceFailure () | |
Checks whether the service has exceeded failure count. | |
Protected Member Functions | |
mapCode (string $code) | |
@inheritDoc | |
doPairs () | |
@inheritDoc | |
getQuery (string $text, string $sourceLanguage, string $targetLanguage) | |
@inheritDoc | |
parseResponse (TranslationQueryResponse $reply) | |
@inheritDoc | |
wrapUntranslatable (string $text) | |
@inheritDoc | |
unwrapUntranslatable (string $text) | |
@inheritDoc | |
Protected Member Functions inherited from MediaWiki\Extension\Translate\WebService\TranslationWebService | |
getSupportedLanguagePairs () | |
reportTranslationServiceFailure (string $msg) | |
Increases the failure count for this service. | |
Additional Inherited Members | |
Static Public Member Functions inherited from MediaWiki\Extension\Translate\WebService\TranslationWebService | |
static | factory (string $serviceName, array $config) |
Get a webservice handler. | |
Protected Attributes inherited from MediaWiki\Extension\Translate\WebService\TranslationWebService | |
$service | |
$config | |
$logger | |
$serviceFailureCount = 5 | |
$serviceFailurePeriod = 900 | |
Implements support for Microsoft translation api v3.
Definition at line 17 of file MicrosoftWebService.php.
MediaWiki\Extension\Translate\WebService\MicrosoftWebService::__construct | ( | HttpRequestFactory | $httpRequestFactory, |
string | $serviceName, | ||
array | $config ) |
Definition at line 20 of file MicrosoftWebService.php.
|
protected |
@inheritDoc
Reimplemented from MediaWiki\Extension\Translate\WebService\TranslationWebService.
Definition at line 49 of file MicrosoftWebService.php.
|
protected |
@inheritDoc
Reimplemented from MediaWiki\Extension\Translate\WebService\TranslationWebService.
Definition at line 96 of file MicrosoftWebService.php.
MediaWiki\Extension\Translate\WebService\MicrosoftWebService::getType | ( | ) |
@inheritDoc
Reimplemented from MediaWiki\Extension\Translate\WebService\TranslationWebService.
Definition at line 30 of file MicrosoftWebService.php.
|
protected |
@inheritDoc
Reimplemented from MediaWiki\Extension\Translate\WebService\TranslationWebService.
Definition at line 35 of file MicrosoftWebService.php.
|
protected |
@inheritDoc
Reimplemented from MediaWiki\Extension\Translate\WebService\TranslationWebService.
Definition at line 134 of file MicrosoftWebService.php.
|
protected |
@inheritDoc
Reimplemented from MediaWiki\Extension\Translate\WebService\TranslationWebService.
Definition at line 158 of file MicrosoftWebService.php.
|
protected |
@inheritDoc
Reimplemented from MediaWiki\Extension\Translate\WebService\TranslationWebService.
Definition at line 151 of file MicrosoftWebService.php.