%PDF- %PDF-
Direktori : /proc/985914/root/www/varak.net/wiki.varak.net/extensions/Translate/ttmserver/ |
Current File : //proc/985914/root/www/varak.net/wiki.varak.net/extensions/Translate/ttmserver/RemoteTTMServer.php |
<?php /** * TTMServer - The Translate extension translation memory interface * * @file * @author Niklas Laxström * @copyright Copyright © 2012-2013, Niklas Laxström * @license GPL-2.0-or-later * @ingroup TTMServer */ /** * Class for handling remote TTMServers over MediaWiki API. * Currently querying is done in TranslationHelpers, and * this class only handles location retrieval. * @since 2012-06-27 * @ingroup TTMServer */ class RemoteTTMServer extends TTMServer implements ReadableTTMServer { public function query( $sourceLanguage, $targetLanguage, $text ) { // @todo Implement some day perhaps? return []; } public function isLocalSuggestion( array $suggestion ) { return false; } public function expandLocation( array $suggestion ) { return $suggestion['location']; } }