Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
WorkflowStatesMessageGroupLoader.php
1<?php
2declare( strict_types = 1 );
3
11 public function getGroups(): array {
12 global $wgTranslateWorkflowStates;
13 $groups = [];
14 if ( $wgTranslateWorkflowStates ) {
15 $groups['translate-workflow-states'] = new WorkflowStatesMessageGroup();
16 }
17
18 return $groups;
19 }
20
22 public static function registerLoader( array &$groupLoader, array $deps ): void {
23 $groupLoader[] = new self();
24 }
25}
Loads WorkflowStatesMessageGroup, and handles the related cache.
static registerLoader(array &$groupLoader, array $deps)
Hook: TranslateInitGroupLoaders.
getGroups()
Fetches and returns an array of MessageGroups.
Interface for message group loaders.