Changeset 1020
- Timestamp:
- 01/11/07 07:04:43 (2 years ago)
- Files:
-
- branches/wheeljack/lib/MT/App/CMS.pm (modified) (4 diffs)
- branches/wheeljack/lib/MT/BackupRestore.pm (modified) (1 diff)
- branches/wheeljack/lib/MT/L10N/ja.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/wheeljack/lib/MT/App/CMS.pm
r1019 r1020 11247 11247 if ($e) { 11248 11248 $result = 0; 11249 $error = 'Required modules (Archive::Tar and/or IO::Uncompress::Gunzip) are missing.';11249 $error = $app->translate('Required modules (Archive::Tar and/or IO::Uncompress::Gunzip) are missing.'); 11250 11250 } else { 11251 11251 my $temp_dir = $app->config('TempDir'); … … 11292 11292 if ($@) { 11293 11293 $result = 0; 11294 $error = 'Required module (Archive::Zip) is missing.';11294 $error = $app->translate('Required module (Archive::Zip) is missing.'); 11295 11295 } else { 11296 11296 my $temp_dir = $app->config('TempDir'); … … 11590 11590 my $asset; 11591 11591 my @errors; 11592 my $error_assets = {}; 11592 11593 require MT::BackupRestore; 11593 11594 if ($is_asset) { 11594 11595 $asset = shift @$assets; 11595 my $error_assets = {};11596 11596 $asset->{fh} = $fh; 11597 11597 MT::BackupRestore->restore_asset(undef, $asset, $objects, $error_assets, sub { $app->print(@_); }); 11598 11598 if (defined($error_assets->{$asset->{asset_id}})) { 11599 11599 $app->log({ 11600 message => $app->translate('Restoring an actual file for an asset failed: [_1]', $error_assets->{$asset->{asset_id}}),11600 message => $app->translate('Restoring an actual file for an asset failed: ') . $error_assets->{$asset->{asset_id}}, 11601 11601 level => MT::Log::WARNING(), 11602 11602 class => 'system', … … 11636 11636 my $log_url = $app->uri(mode => 'view_log', args => {}); 11637 11637 $param->{error} = $app->translate('Some objects were not restored because their parent objects were not restored.'); 11638 $param->{error_url} = $log_url; 11639 } elsif (scalar(keys %$error_assets)) { 11640 $param->{error} = $app->translate('Some of actual files for assets are not restored correctly.'); 11641 my $log_url = $app->uri(mode => 'view_log', args => {}); 11638 11642 $param->{error_url} = $log_url; 11639 11643 } else { branches/wheeljack/lib/MT/BackupRestore.pm
r990 r1020 323 323 if (!-w "$vol$dir") { 324 324 my $voldir = "$vol$dir"; 325 # we do need decode_utf8here325 # we do need utf8_off here 326 326 $errors->{$id} = MT->translate('[_1] is not writable.', MT::I18N::utf8_off($voldir)); 327 327 } else { branches/wheeljack/lib/MT/L10N/ja.pm
r1019 r1020 317 317 äž...\n", 318 318 "Restoring [_1] (ID: [_2]) was deferred because its parents objects have not been restored yet.\n" => "芪ãªããžã§ã¯ããèŠã€ãããªããã[_1](ID: [_2])ã®åŸ©å 319 ã¯å»¶æãããŸããã ",319 ã¯å»¶æãããŸããã\n", 320 320 "[_1] [_2] (ID: [_3]) has been restored successfully with new ID: [_4]\n" => "[_2](ID: [_3])ãæ°ããID:[_4]ã§åŸ©å 321 321 ãããŸããã\n", … … 1168 1168 'Please upload [_1] in this page.' => 'ãã®ããŒãžã§ã¯[_1]ãã¢ããããŒãããŠãã ããã', 1169 1169 'File was not uploaded.' => 'ãã¡ã€ã«ãã¢ããããŒããããŸããã§ããã', 1170 'Restoring an actual file for an asset failed: [_1]' => 'ã¢ã€ãã ã®å®éã®ãã¡ã€ã«ã埩å 1171 ã§ããŸããã§ãã] [_1]', 1170 'Restoring an actual file for an asset failed: ' => 'ã¢ã€ãã ã®å®éã®ãã¡ã€ã«ã埩å 1171 ã§ããŸããã§ããã', 1172 'Some of actual files for assets are not restored correctly.' => 'å®éã®ãã¡ã€ã«ã埩å 1173 ã§ããªãã£ãã¢ã€ãã ããããŸãã', 1172 1174 'Some objects were not restored because their parent objects were not restored.' => '芪ãªããžã§ã¯ããèŠã€ãããªãã®ã§åŸ©å 1173 1175 ã§ããªãã£ããªããžã§ã¯ãããããŸãã', … … 1178 1180 'Select Weblog' => 'ããã°ãéžæ', 1179 1181 'Selected Weblog' => 'éžæãããããã°', 1180 1182 'Required modules (Archive::Tar and/or IO::Uncompress::Gunzip) are missing.' => 'Archive::TarãŸãã¯IO::Uncompress::GunzipãèŠã€ãããªãã®ã§åŠçã§ããŸããã', 1183 'Required module (Archive::Zip) is missing.' => 'Archive::ZipãèŠã€ãããªãã®ã§åŠçã§ããŸããã', 1184 1181 1185 ## lib/MT/Asset.pm 1182 1186 'File' => 'ãã¡ã€ã«',
