Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashWriter Interface Reference
Inheritance diagram for MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashWriter:
MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashStorage

Public Member Functions

 addTranslation (StashedTranslation $item)
 Adds a new translation to the stash.
 
 deleteTranslations (User $user)
 Delete all stashed translations for the given user.
 

Detailed Description

Definition at line 8 of file TranslationStashWriter.php.

Member Function Documentation

◆ addTranslation()

MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashWriter::addTranslation ( StashedTranslation $item)

Adds a new translation to the stash.

If the same key already exists, the previous translation and metadata will be replaced with the new one.

Implemented in MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashStorage.

◆ deleteTranslations()

MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashWriter::deleteTranslations ( User $user)

Delete all stashed translations for the given user.

Implemented in MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashStorage.


The documentation for this interface was generated from the following file: