Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
WritableTtmServer.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\TtmServer;
5
7
22 public function update( MessageHandle $handle, ?string $targetText ): bool;
23
29 public function beginBootstrap(): void;
30
32 public function beginBatch(): void;
33
35 public function batchInsertDefinitions( array $batch ): void;
36
38 public function batchInsertTranslations( array $batch ): void;
39
41 public function endBatch(): void;
42
44 public function endBootstrap(): void;
45
47 public function setDoReIndex(): void;
48}
Class for pointing to messages, like Title class is for titles.
Interface for TtmServer that can be updated.
batchInsertTranslations(array $batch)
Called multiple times per batch if necessary.
batchInsertDefinitions(array $batch)
Called multiple times per batch if necessary.
update(MessageHandle $handle, ?string $targetText)
Shovels the new translation into translation memory.
setDoReIndex()
Instruct the service to fully wipe the index and start from scratch.
beginBootstrap()
Called when starting to fill the translation memory.
beginBatch()
Called before every batch (MessageGroup).
endBatch()
Called after every batch (MessageGroup).