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

Integration point to MediaWiki for the legacy translation aids. More...

Inheritance diagram for MediaWiki\Extension\Translate\TranslatorInterface\LegacyInterfaceHookHandler:

Public Member Functions

 __construct (LanguageFactory $languageFactory)
 
 onAlternateEdit ( $editPage)
 Do not show the usual introductory messages on edit page for messages.
 
 onEditPage__showEditForm_initial ( $editPage, $out)
 Enhances the action=edit view for wikitext editor with some translation aids.
 
 onTitleGetEditNotices ( $title, $oldid, &$notices)
 
 onArticleContentOnDiff ( $diffEngine, $output)
 Enhances the action=diff view with some translations aids.
 
 onSidebarBeforeOutput ( $skin, &$sidebar)
 Adds toolbox menu item to pages, showing all other available translations for a message.
 

Detailed Description

Integration point to MediaWiki for the legacy translation aids.

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

Definition at line 24 of file LegacyInterfaceHookHandler.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\TranslatorInterface\LegacyInterfaceHookHandler::__construct ( LanguageFactory $languageFactory)

Definition at line 34 of file LegacyInterfaceHookHandler.php.

Member Function Documentation

◆ onAlternateEdit()

MediaWiki\Extension\Translate\TranslatorInterface\LegacyInterfaceHookHandler::onAlternateEdit ( $editPage)

Do not show the usual introductory messages on edit page for messages.

Parameters
EditPage$editPage

Definition at line 42 of file LegacyInterfaceHookHandler.php.

◆ onArticleContentOnDiff()

MediaWiki\Extension\Translate\TranslatorInterface\LegacyInterfaceHookHandler::onArticleContentOnDiff ( $diffEngine,
$output )

Enhances the action=diff view with some translations aids.

Parameters
DifferenceEngine$diffEngine
OutputPage$output

Definition at line 92 of file LegacyInterfaceHookHandler.php.

◆ onEditPage__showEditForm_initial()

MediaWiki\Extension\Translate\TranslatorInterface\LegacyInterfaceHookHandler::onEditPage__showEditForm_initial ( $editPage,
$out )

Enhances the action=edit view for wikitext editor with some translation aids.

Parameters
EditPage$editPage
OutputPage$out

Definition at line 55 of file LegacyInterfaceHookHandler.php.

◆ onSidebarBeforeOutput()

MediaWiki\Extension\Translate\TranslatorInterface\LegacyInterfaceHookHandler::onSidebarBeforeOutput ( $skin,
& $sidebar )

Adds toolbox menu item to pages, showing all other available translations for a message.

Only shown when it actually is a translatable/translated message.

@inheritDoc

Definition at line 111 of file LegacyInterfaceHookHandler.php.

◆ onTitleGetEditNotices()

MediaWiki\Extension\Translate\TranslatorInterface\LegacyInterfaceHookHandler::onTitleGetEditNotices ( $title,
$oldid,
& $notices )

Definition at line 73 of file LegacyInterfaceHookHandler.php.


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