Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MessagePrefixMessageGroup.php
1<?php
2declare( strict_types = 1 );
3
4use MediaWiki\Context\IContextSource;
5
15 protected $language;
16
17 public function __construct() {
18 }
19
20 public function setLanguage( $code ) {
21 $this->language = $code;
22 }
23
24 public function getId() {
25 return '!prefix';
26 }
27
28 public function getLabel( ?IContextSource $context = null ) {
29 return 'Message prefixes';
30 }
31
32 public function getDescription( ?IContextSource $context = null ) {
33 return '"Messages in this message group are dynamically added based on ' .
34 'selecting of message prefix on Special:MessageGroupStats';
35 }
36
37 public function getDefinitions() {
38 return [];
39 }
40
41 public function getValidator() {
42 return null;
43 }
44}
Contains an unmanaged message group for fetching stats using message prefixes.
getDefinitions()
Fetch definitions from database.
getLabel(?IContextSource $context=null)
getDescription(?IContextSource $context=null)
Returns a longer description about the group.
getValidator()
Returns a message validator object or null.
Group for messages that can be controlled via a page in MediaWiki namespace.