https://bugzilla.wikimedia.org/show_bug.cgi?id=57964
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from [email protected] --- Created attachment 16734 --> https://bugzilla.wikimedia.org/attachment.cgi?id=16734&action=edit Removed else throw MWexception line -111 The fatal exception is being thrown because in /Translate/ffs/GettextFFS.php its defined if ( $match !== null ) { $headerBlock = self::formatForWiki( $match, 'trim' ); $headers = self::parseHeaderTags( $headerBlock ); // Check for pot-mode by checking if the header is fuzzy $flags = self::parseFlags( $headerSection ); if ( in_array( 'fuzzy', $flags, true ) ) { $potmode = true; } } else { throw new MWException( "Gettext file header was not found:\n\n$data" ); } This overwrites the checkError call in SpecialImportTransaltions.php protected function checkError( $msg ) { // Give grep a chance to find the usages: // translate-import-err-dl-failed, translate-import-err-ul-failed, // translate-import-err-invalid-title, translate-import-err-no-such-file, // translate-import-err-stale-group, translate-import-err-no-headers, // translate-import-err-warnings if ( $msg[0] !== 'ok' ) { $errorWrap = "<div class='error'>\n$1\n</div>"; $msg[0] = 'translate-import-err-' . $msg[0]; $this->getOutput()->wrapWikiMsg( $errorWrap, $msg ); $this->outputForm(); return true; } return false; } Remove the else statement in public static function parseGettextData( $data, $useCtxtAsKey, $mangler, $keyAlgorithm ) GettextFFS.php I have attached the correct file. -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
