public function execute() { $bot = new FuzzyScript($this->getArg(0)); if ($this->hasOption('skiplanguages')) { $bot->skipLanguages = array_map('trim', explode(',', $this->getOption('skiplanguages'))); } $bot->comment = $this->getOption('comment'); $bot->dryrun = !$this->hasOption('really'); $bot->setProgressCallback(array($this, 'myOutput')); $bot->execute(); }
$_skipLanguages = array_map( 'trim', explode( ',', $options['skiplanguages'] ) ); $bot->skipLanguages = $_skipLanguages; } if ( isset( $options['norc'] ) ) { $cs->norc = true; } if ( isset( $options['comment'] ) ) { $bot->comment = $options['comment']; } if ( isset( $options['really'] ) ) { $bot->dryrun = false; } $bot->execute(); /// @endcond /** * Class for marking translation fuzzy. */ class FuzzyScript { /// \list{String} List of patterns to mark. private $titles = array(); /// \bool Check for configuration problems. private $allclear = false; /// \bool Dont do anything unless confirmation is given public $dryrun = true; /// \string Edit summary.