20 public function query( $sourceLanguage, $targetLanguage, $text ) {
30 return $suggestion[
'location'];
Class for handling remote TTMServers over MediaWiki API.
isLocalSuggestion(array $suggestion)
Determines if the suggestion returned by this TTMServer comes from this wiki or any other wiki.
query( $sourceLanguage, $targetLanguage, $text)
Fetches all relevant suggestions for given text.
expandLocation(array $suggestion)
Given suggestion returned by this TTMServer, constructs fully qualified URL to the location of the tr...
Some general static methods for instantiating TTMServer and helpers.
Interface for TTMServer that can be queried (=all of them).