Changeset 507 in MondoRescue for trunk/mondo/mondo/common/libmondo-stream.c
- Timestamp:
- Apr 30, 2006, 2:04:16 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-stream.c
r171 r507 13 13 #include "mondostructures.h" 14 14 #include "libmondo-devices.h" 15 #include "lib-common-externs.h"16 15 #include "libmondo-stream.h" 17 16 #include "libmondo-string-EXT.h" 18 17 #include "libmondo-files-EXT.h" 19 #include " libmondo-gui-EXT.h"18 #include "newt-specific-EXT.h" 20 19 #include "libmondo-fork-EXT.h" 21 20 #include "libmondo-tools-EXT.h" … … 416 415 // log_it("g_current_media_number = %d", g_current_media_number); 417 416 asprintf(&tmp, 418 "When the tape drive goes quiet, please insert volume %d in this series.",417 _("When the tape drive goes quiet, please insert volume %d in this series."), 419 418 tapeno); 420 419 popup_and_OK(tmp); 421 420 paranoid_free(tmp); 422 open_evalcall_form( "Waiting while the tape drive settles");423 } else { 424 open_evalcall_form( "Waiting while the tape drive rewinds");421 open_evalcall_form(_("Waiting while the tape drive settles")); 422 } else { 423 open_evalcall_form(_("Waiting while the tape drive rewinds")); 425 424 } 426 425 … … 613 612 bkpinfo->internal_tape_block_size))) { 614 613 log_OS_error(g_tape_fifo); 615 log_to_screen( "Cannot openin stream device");614 log_to_screen(_("Cannot openin stream device")); 616 615 return (1); 617 616 } 618 log_to_screen( "Reading stream");617 log_to_screen(_("Reading stream")); 619 618 log_it("stream device = '%s'", bkpinfo->media_device); 620 619 /* skip data disks */ 621 620 open_evalcall_form("Skipping data disks on stream"); 622 log_to_screen( "Skipping data disks on stream");621 log_to_screen(_("Skipping data disks on stream")); 623 622 if (!(fout = fopen(outfname, "w"))) { 624 623 log_OS_error(outfname); 625 log_to_screen( "Cannot openout datadisk all.tar.gz file");624 log_to_screen(_("Cannot openout datadisk all.tar.gz file")); 626 625 return (-1); 627 626 } 628 627 if (!(datablock = (char *) malloc(256 * 1024))) { 629 log_to_screen( "Unable to malloc 256*1024");628 log_to_screen(_("Unable to malloc 256*1024")); 630 629 exit(1); 631 630 } … … 707 706 return (0); 708 707 } else { 709 log_to_screen( "Failed to openout to cdstream (fifo)");708 log_to_screen(_("Failed to openout to cdstream (fifo)")); 710 709 return (1); 711 710 } … … 739 738 open_device_via_buffer(tapedev, 'w', internal_tape_block_size))) { 740 739 log_OS_error(g_tape_fifo); 741 log_to_screen( "Cannot openin stream device");740 log_to_screen(_("Cannot openin stream device")); 742 741 return (1); 743 742 } … … 872 871 if (!fout) { 873 872 log_OS_error(outfname); 874 log_to_screen( "Cannot openout file");873 log_to_screen(_("Cannot openout file")); 875 874 return (1); 876 875 } … … 930 929 } 931 930 if (strcmp(temp_cksum, actual_cksum)) { 932 asprintf(&tmp, "actual cksum=%s; recorded cksum=%s", actual_cksum,931 asprintf(&tmp, _("actual cksum=%s; recorded cksum=%s"), actual_cksum, 933 932 temp_cksum); 934 933 log_to_screen(tmp); 935 934 paranoid_free(tmp); 936 935 937 asprintf(&tmp, "%s (%ld K) is corrupt on tape", temp_fname,936 asprintf(&tmp, _("%s (%ld K) is corrupt on tape"), temp_fname, 938 937 (long) orig_size >> 10); 939 938 log_to_screen(tmp); … … 1078 1077 log_it("mediasize = %ld", mediasize); 1079 1078 we_need_a_new_tape = TRUE; 1080 log_to_screen( "Should have started a new tape/CD already");1079 log_to_screen(_("Should have started a new tape/CD already")); 1081 1080 } 1082 1081 if ((g_tape_posK + length_of_incoming_file / 1024) >> 10 >= … … 1238 1237 bkpinfo->internal_tape_block_size))) { 1239 1238 log_OS_error(g_tape_fifo); 1240 log_to_screen( "Cannot openin stream device");1239 log_to_screen(_("Cannot openin stream device")); 1241 1240 return (1); 1242 1241 } … … 1275 1274 if (g_current_media_number > MAX_NOOF_MEDIA) { 1276 1275 res++; 1277 log_to_screen( "Too many tapes. Man, you need to use nfs!");1276 log_to_screen(_("Too many tapes. Man, you need to use nfs!")); 1278 1277 } 1279 1278 if (bkpinfo->backup_media_type == cdstream) { … … 1288 1287 paranoid_free(command); 1289 1288 if (!g_tape_stream) { 1290 log_to_screen( "Failed to openout to cdstream (fifo)");1289 log_to_screen(_("Failed to openout to cdstream (fifo)")); 1291 1290 return (1); 1292 1291 } … … 1298 1297 bkpinfo->internal_tape_block_size))) { 1299 1298 log_OS_error(g_tape_fifo); 1300 log_to_screen( "Cannot openin stream device");1299 log_to_screen(_("Cannot openin stream device")); 1301 1300 return (1); 1302 1301 } … … 1379 1378 /*@ end vars *************************************************** */ 1380 1379 1381 open_evalcall_form( "Writing data disks to tape");1382 log_to_screen( "Writing data disks to tape");1380 open_evalcall_form(_("Writing data disks to tape")); 1381 log_to_screen(_("Writing data disks to tape")); 1383 1382 log_it("Data disks = %s", fname); 1384 1383 if (!does_file_exist(fname)) { 1385 asprintf(&tmp, "Cannot find %s", fname);1384 asprintf(&tmp, _("Cannot find %s"), fname); 1386 1385 log_to_screen(tmp); 1387 1386 paranoid_free(tmp); … … 1568 1567 if (!g_tape_stream) { 1569 1568 log_to_screen 1570 ( "You're not backing up to tape. Why write a tape header?");1569 (_("You're not backing up to tape. Why write a tape header?")); 1571 1570 return (1); 1572 1571 } … … 1602 1601 1603 1602 /*@ end vars *************************************************** */ 1604 asprintf(&tmp, "Wrong marker! (Should be %s, is actually %s)",1603 asprintf(&tmp, _("Wrong marker! (Should be %s, is actually %s)"), 1605 1604 marker_to_string(should_be), marker_to_string(it_is)); 1606 1605 log_to_screen(tmp);
Note:
See TracChangeset
for help on using the changeset viewer.