Changeset 4978

Show
Ignore:
Timestamp:
11/04/09 06:12:39 (3 weeks ago)
Author:
auno
Message:

Show message if URL is too long for large manifest file. BugzID#102982

Location:
branches/greyhound
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branches/greyhound/lib/MT/CMS/Tools.pm

    r4956 r4978  
    11091109      File::Spec->splitpath($uploaded) 
    11101110      if defined($uploaded); 
     1111    $app->mode('start_restore'); 
    11111112    if ( defined($uploaded_filename) 
    11121113        && ( $uploaded_filename =~ /^.+\.manifest$/i ) ) 
     
    22242225      . $param->{overwrite_templates} 
    22252226      . '&redirect=1'; 
     2227    if ( length $param->{dialog_params} > 2083 ) 
     2228    {    # 2083 is Maximum URL length in IE 
     2229        $param->{error} = $app->translate( 
     2230"Manifest file '[_1]' is too large. Please use import direcotry for restore.", 
     2231            $app->param('file') 
     2232        ); 
     2233        $param->{open_dialog} = 0; 
     2234        $app->mode('start_restore'); 
     2235    } 
    22262236    $app->load_tmpl( 'restore.tmpl', $param ); 
    22272237 
  • branches/greyhound/lib/MT/L10N/ja.pm

    r4970 r4978  
    12341234## lib/MT/BackupRestore/BackupFileHandler.pm 
    12351235        'Uploaded file was not a valid Movable Type backup manifest file.' => 'アップロヌドされたファむルはMovable Typeバックアップで䜜成されたマニフェストファむルではありたせん。', 
     1236        'Manifest file \'[_1]\' is too large. Please use import direcotry for restore.' => 'バックアップファむル\'[_1]\'が倧きすぎたす。むンポヌトディレクトリを利甚しお埩å 
     1237ƒã—おください。', 
    12361238        'Uploaded file was backed up from Movable Type but the different schema version ([_1]) from the one in this system ([_2]).  It is not safe to restore the file to this version of Movable Type.' => 'アップロヌドされたファむルはこのシステムのバヌゞョン([_2])ずは異なるバヌゞョン([_1])でバックアップされおいたす。このファむルを䜿っお埩å 
    12371239ƒã™ã‚‹ã“ずはできたせん。', 
  • branches/greyhound/tmpl/cms/restore.tmpl

    r4199 r4978  
    1111        <mt:var name="error"> 
    1212    </mtapp:statusmsg> 
    13 <mt:Else> 
     13</mt:if> 
    1414<div id="restore-panel"> 
    1515    <mt:if name="missing_sax"> 
     
    6161    </mt:if> 
    6262</div> 
    63 </mt:if> 
    6463<mt:include name="include/footer.tmpl">