setMachine( new FstReplacementMachine( 'en', [ 'en', 'en-x-piglatin' ] ) ); } // phpcs:ignore MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic public function findVariantLink( $link, $nt, $ignoreOtherCond ) { $ns = $nt->getNamespace(); // do not try to find variants for usernames if ( $ns->isUser() || $ns->isUserTalk ) { return [ 'nt' => $nt, 'link' => $link ]; } // FIXME check whether selected language is 'en' return parent::findVariantLink( $link, $nt, $ignoreOtherCond ); } }