Implements support Apetrium translator api. More...
Protected Member Functions | |
mapCode ($code) | |
Map a MediaWiki (almost standard) language code to the code used by the translation service. | |
doPairs () | |
Get the list of supported language pairs for the web service. | |
doRequest ($text, $from, $to) | |
Get the suggestion. |
Implements support Apetrium translator api.
Definition at line 17 of file ApertiumWebService.php.
ApertiumWebService::doPairs | ( | ) | [protected] |
Get the list of supported language pairs for the web service.
The codes should be the ones used by the service. Caching is handled by the public getSupportedLanguagePairs.
Reimplemented from TranslationWebService.
Definition at line 22 of file ApertiumWebService.php.
ApertiumWebService::doRequest | ( | $ | text, | |
$ | from, | |||
$ | to | |||
) | [protected] |
Get the suggestion.
See getSuggestions for the public method.
string | $text Text to translate. | |
string | $from Language code of the text, as used by the service. | |
string | $to Language code of the translation, as used by the service. |
Reimplemented from TranslationWebService.
Definition at line 41 of file ApertiumWebService.php.
ApertiumWebService::mapCode | ( | $ | code | ) | [protected] |
Map a MediaWiki (almost standard) language code to the code used by the translation service.
string | $code MediaWiki language code. |
Reimplemented from TranslationWebService.
Definition at line 18 of file ApertiumWebService.php.