Public Member Functions | |
addTranslation (StashedTranslation $item) | |
Adds a new translation to the stash. | |
deleteTranslations (User $user) | |
Delete all stashed translations for the given user. | |
Definition at line 8 of file TranslationStashWriter.php.
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.
MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashWriter::deleteTranslations | ( | User | $user | ) |
Delete all stashed translations for the given user.
Implemented in MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashStorage.