Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\TranslatorInterface\LegacyTranslationAids Class Reference

Provides minimal translation aids which integrate with the edit page and on diffs for translatable messages. More...

Public Member Functions

 __construct (MessageHandle $handle, IContextSource $context, LanguageFactory $languageFactory)
 
 getBoxes ()
 Returns block element HTML snippet that contains the translation aids.
 

Detailed Description

Provides minimal translation aids which integrate with the edit page and on diffs for translatable messages.

Author
Niklas Laxström @license GPL-2.0-or-later

Definition at line 22 of file LegacyTranslationAids.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\TranslatorInterface\LegacyTranslationAids::__construct ( MessageHandle $handle,
IContextSource $context,
LanguageFactory $languageFactory )

Definition at line 32 of file LegacyTranslationAids.php.

Member Function Documentation

◆ getBoxes()

MediaWiki\Extension\Translate\TranslatorInterface\LegacyTranslationAids::getBoxes ( )

Returns block element HTML snippet that contains the translation aids.

Not all boxes are shown all the time depending on whether they have any information to show and on configuration variables.

Returns
string Block level HTML snippet or empty string.

Definition at line 60 of file LegacyTranslationAids.php.


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