Localisation of some English hard-coded error messages in Special:Import.
authorRotem Liss <rotem@users.mediawiki.org>
Wed, 28 Jun 2006 12:15:51 +0000 (12:15 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Wed, 28 Jun 2006 12:15:51 +0000 (12:15 +0000)
includes/SpecialImport.php
languages/Messages.php
languages/MessagesHe.php

index 8a121ee..156ea8b 100644 (file)
@@ -56,7 +56,7 @@ function wfSpecialImport( $page = '' ) {
                                $history );
                        break;
                default:
-                       $source = new WikiError( "Unknown import source type" );
+                       $source = new WikiErrorMsg( "importunknownsource" );
                }
 
                if( WikiError::isError( $source ) ) {
@@ -751,7 +751,7 @@ class ImportStreamSource {
        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 );
        }
@@ -786,7 +786,7 @@ class ImportStreamSource {
                $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 );
index f7dc519..e8a729c 100644 (file)
@@ -1467,6 +1467,9 @@ All transwiki import actions are logged at the [[Special:Log/import|import log]]
 '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)',
index c66c23d..49a7fa1 100644 (file)
@@ -1309,6 +1309,9 @@ $NEWPAGE
 "import-revision-count"    => "$1 גרסאות",
 "importnopages"            => "אין דפים לייבוא.",
 "importfailed"             => "הייבוא נכשל: $1",
+"importunknownsource"      => "סוג ייבוא בלתי ידוע",
+"importcantopen"           => "פתיחת קובץ הייבוא נכשלה",
+"importbadinterwiki"       => "קישור אינטרוויקי שגוי",
 "importnotext"             => "ריק או חסר טקסט",
 "importsuccess"            => "הייבוא הושלם בהצלחה!",
 "importhistoryconflict"    => "ישנה התנגשות עם ההיסטוריה הקיימת של הדף (ייתכן שהדף יובא בעבר)",