$history );
break;
default:
- $source = new WikiError( "Unknown import source type" );
+ $source = new WikiErrorMsg( "importunknownsource" );
}
if( WikiError::isError( $source ) ) {
function newFromFile( $filename ) {
$file = @fopen( $filename, 'rt' );
if( !$file ) {
- return new WikiError( "Couldn't open import file" );
+ return new WikiErrorMsg( "importcantopen" );
}
return new ImportStreamSource( $file );
}
$base = Title::getInterwikiLink( $interwiki );
$link = Title::newFromText( "$interwiki:Special:Export/$page" );
if( empty( $base ) || empty( $link ) ) {
- return new WikiError( 'Bad interwiki link' );
+ return new WikiErrorMsg( 'importbadinterwiki' );
} else {
$params = $history ? 'history=1' : '';
$url = $link->getFullUrl( $params );
'import-revision-count' => '$1 revision(s)',
'importnopages' => "No pages to import.",
'importfailed' => "Import failed: $1",
+'importunknownsource' => "Unknown import source type",
+'importcantopen' => "Couldn't open import file",
+'importbadinterwiki' => "Bad interwiki link",
'importnotext' => 'Empty or no text',
'importsuccess' => 'Import succeeded!',
'importhistoryconflict' => 'Conflicting history revision exists (may have imported this page before)',
"import-revision-count" => "$1 גרסאות",
"importnopages" => "אין דפים לייבוא.",
"importfailed" => "הייבוא נכשל: $1",
+"importunknownsource" => "סוג ייבוא בלתי ידוע",
+"importcantopen" => "פתיחת קובץ הייבוא נכשלה",
+"importbadinterwiki" => "קישור אינטרוויקי שגוי",
"importnotext" => "ריק או חסר טקסט",
"importsuccess" => "הייבוא הושלם בהצלחה!",
"importhistoryconflict" => "ישנה התנגשות עם ההיסטוריה הקיימת של הדף (ייתכן שהדף יובא בעבר)",