Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
FuzzyBot.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\SystemUsers;
5
6use MediaWiki\User\User;
7
15class FuzzyBot {
16 public static function getUser(): User {
17 return User::newSystemUser( self::getName(), [ 'steal' => true ] );
18 }
19
20 public static function getName(): string {
21 global $wgTranslateFuzzyBotName;
22
23 return $wgTranslateFuzzyBotName;
24 }
25}
FuzzyBot - the misunderstood workhorse.
Definition FuzzyBot.php:15