Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
ReadableTtmServer.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\TtmServer;
5
23 public function query( string $sourceLanguage, string $targetLanguage, string $text ): array;
24
29 public function isLocalSuggestion( array $suggestion ): bool;
30
36 public function expandLocation( array $suggestion ): string;
37}
Interface for TTMServer that can be queried (=all of them).
expandLocation(array $suggestion)
Given suggestion returned by this TTMServer, constructs fully qualified URL to the location of the tr...
query(string $sourceLanguage, string $targetLanguage, string $text)
Fetches all relevant suggestions for given text.
isLocalSuggestion(array $suggestion)
Determines if the suggestion returned by this TTMServer comes from this wiki or any other wiki.