Translate extension for MediaWiki
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashSpecialPage Class Reference

Special page for new users to translate example messages. More...

Inheritance diagram for MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashSpecialPage:

Public Member Functions

 __construct (private readonly LanguageNameUtils $languageNameUtils, private readonly TranslationStashReader $stash, private readonly UserOptionsLookup $userOptionsLookup, private readonly LanguageFactory $languageFactory, private readonly ServiceOptions $options,)
 doesWrites ()
 @inheritDoc
 execute ( $params)
 @inheritDoc

Public Attributes

const CONSTRUCTOR_OPTIONS

Protected Member Functions

 getGroupName ()
 getSourceLanguage ()
 Returns the source language for messages.

Detailed Description

Special page for new users to translate example messages.

Author
Santhosh Thottingal @license GPL-2.0-or-later

Definition at line 24 of file TranslationStashSpecialPage.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashSpecialPage::__construct ( private readonly LanguageNameUtils $languageNameUtils,
private readonly TranslationStashReader $stash,
private readonly UserOptionsLookup $userOptionsLookup,
private readonly LanguageFactory $languageFactory,
private readonly ServiceOptions $options )

Definition at line 30 of file TranslationStashSpecialPage.php.

Member Function Documentation

◆ doesWrites()

MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashSpecialPage::doesWrites ( )

@inheritDoc

Definition at line 42 of file TranslationStashSpecialPage.php.

◆ execute()

MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashSpecialPage::execute ( $params)

@inheritDoc

Definition at line 51 of file TranslationStashSpecialPage.php.

◆ getGroupName()

MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashSpecialPage::getGroupName ( )
protected

Definition at line 46 of file TranslationStashSpecialPage.php.

◆ getSourceLanguage()

MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashSpecialPage::getSourceLanguage ( )
protected

Returns the source language for messages.

Definition at line 175 of file TranslationStashSpecialPage.php.

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Extension\Translate\TranslatorSandbox\TranslationStashSpecialPage::CONSTRUCTOR_OPTIONS
Initial value:
= [
'TranslateSandboxLimit',
]

Definition at line 26 of file TranslationStashSpecialPage.php.


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