Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage Class Reference

Class for special page Special:ManageMessageGroups. More...

Inheritance diagram for MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage:

Public Member Functions

 __construct (Language $contLang, NamespaceInfo $nsInfo, RevisionLookup $revLookup, GroupSynchronizationCache $synchronizationCache, JobQueueGroup $jobQueueGroup, MessageIndex $messageIndex, LinkBatchFactory $linkBatchFactory, MessageGroupSubscription $messageGroupSubscription)
 
 doesWrites ()
 
 getDescription ()
 
 execute ( $par)
 

Static Public Member Functions

static tabify (Skin $skin, array &$tabs)
 Adds the task-based tabs on Special:Translate and few other special pages.
 

Protected Member Functions

 getGroupName ()
 
 getLimit ()
 How many changes can be shown per page.
 
 getLegend ()
 
 showChanges (int $limit)
 
 formatChange (MessageGroup $group, MessageSourceChange $changes, string $language, string $type, array $params, int &$limit)
 
 processSubmit ()
 

Static Protected Member Functions

static changeId (string $groupId, string $language, string $type, string $key)
 

Protected Attributes

DifferenceEngine $diff
 
string $cdb
 Path to the change cdb file, derived from the name.
 
bool $hasRight = false
 Has the necessary right specified by the RIGHT constant.
 

Detailed Description

Class for special page Special:ManageMessageGroups.

On this special page file based message groups can be managed (FileBasedMessageGroup). This page allows updating of the file cache, import and fuzzy for source language messages, as well as import/update of messages in other languages.

Author
Niklas Laxström
Siebrand Mazeland

@license GPL-2.0-or-later

Definition at line 53 of file ManageGroupsSpecialPage.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage::__construct ( Language $contLang,
NamespaceInfo $nsInfo,
RevisionLookup $revLookup,
GroupSynchronizationCache $synchronizationCache,
JobQueueGroup $jobQueueGroup,
MessageIndex $messageIndex,
LinkBatchFactory $linkBatchFactory,
MessageGroupSubscription $messageGroupSubscription )

Definition at line 73 of file ManageGroupsSpecialPage.php.

Member Function Documentation

◆ changeId()

static MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage::changeId ( string $groupId,
string $language,
string $type,
string $key )
staticprotected

Definition at line 578 of file ManageGroupsSpecialPage.php.

◆ doesWrites()

MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage::doesWrites ( )

Definition at line 96 of file ManageGroupsSpecialPage.php.

◆ execute()

MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage::execute ( $par)

Definition at line 108 of file ManageGroupsSpecialPage.php.

◆ formatChange()

MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage::formatChange ( MessageGroup $group,
MessageSourceChange $changes,
string $language,
string $type,
array $params,
int & $limit )
protected

Definition at line 308 of file ManageGroupsSpecialPage.php.

◆ getDescription()

MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage::getDescription ( )

Definition at line 104 of file ManageGroupsSpecialPage.php.

◆ getGroupName()

MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage::getGroupName ( )
protected

Definition at line 100 of file ManageGroupsSpecialPage.php.

◆ getLegend()

MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage::getLegend ( )
protected

Definition at line 188 of file ManageGroupsSpecialPage.php.

◆ getLimit()

MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage::getLimit ( )
protected

How many changes can be shown per page.

Definition at line 176 of file ManageGroupsSpecialPage.php.

◆ processSubmit()

MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage::processSubmit ( )
protected

Definition at line 469 of file ManageGroupsSpecialPage.php.

◆ showChanges()

MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage::showChanges ( int $limit)
protected

Definition at line 198 of file ManageGroupsSpecialPage.php.

◆ tabify()

static MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage::tabify ( Skin $skin,
array & $tabs )
static

Adds the task-based tabs on Special:Translate and few other special pages.

Hook: SkinTemplateNavigation::Universal

Definition at line 591 of file ManageGroupsSpecialPage.php.

Member Data Documentation

◆ $cdb

string MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage::$cdb
protected

Path to the change cdb file, derived from the name.

Definition at line 60 of file ManageGroupsSpecialPage.php.

◆ $diff

DifferenceEngine MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage::$diff
protected

Definition at line 56 of file ManageGroupsSpecialPage.php.

◆ $hasRight

bool MediaWiki\Extension\Translate\Synchronization\ManageGroupsSpecialPage::$hasRight = false
protected

Has the necessary right specified by the RIGHT constant.

Definition at line 62 of file ManageGroupsSpecialPage.php.


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