Ignore:
Timestamp:
May 13, 2006, 8:47:23 PM (18 years ago)
Author:
bcornec
Message:

Stable is reverted to r436 (2.0.7) to put it in line with 2.0.8 and start from there over

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/common/libmondo-stream.c

    r501 r541  
    100100#include "mondostructures.h"
    101101#include "libmondo-devices.h"
     102#include "lib-common-externs.h"
    102103#include "libmondo-stream.h"
    103104#include "libmondo-string-EXT.h"
    104105#include "libmondo-files-EXT.h"
    105 #include "newt-specific-EXT.h"
     106#include "libmondo-gui-EXT.h"
    106107#include "libmondo-fork-EXT.h"
    107108#include "libmondo-tools-EXT.h"
     
    518519        //      log_it("g_current_media_number = %d", g_current_media_number);
    519520        sprintf(tmp,
    520                 _("When the tape drive goes quiet, please insert volume %d in this series."),
     521                "When the tape drive goes quiet, please insert volume %d in this series.",
    521522                tapeno);
    522523        popup_and_OK(tmp);
    523         open_evalcall_form(_("Waiting while the tape drive settles"));
    524     } else {
    525         open_evalcall_form(_("Waiting while the tape drive rewinds"));
     524        open_evalcall_form("Waiting while the tape drive settles");
     525    } else {
     526        open_evalcall_form("Waiting while the tape drive rewinds");
    526527    }
    527528
     
    730731                                bkpinfo->internal_tape_block_size))) {
    731732        log_OS_error(g_tape_fifo);
    732         log_to_screen(_("Cannot openin stream device"));
     733        log_to_screen("Cannot openin stream device");
    733734        return (1);
    734735    }
    735     log_to_screen(_("Reading stream"));
     736    log_to_screen("Reading stream");
    736737    log_it("stream device = '%s'", bkpinfo->media_device);
    737738/* skip data disks */
    738739    open_evalcall_form("Skipping data disks on stream");
    739     log_to_screen(_("Skipping data disks on stream"));
     740    log_to_screen("Skipping data disks on stream");
    740741    if (!(fout = fopen(outfname, "w"))) {
    741742        log_OS_error(outfname);
    742         log_to_screen(_("Cannot openout datadisk all.tar.gz file"));
     743        log_to_screen("Cannot openout datadisk all.tar.gz file");
    743744        return (-1);
    744745    }
    745746    if (!(datablock = (char *) malloc(256 * 1024))) {
    746         log_to_screen(_("Unable to malloc 256*1024"));
     747        log_to_screen("Unable to malloc 256*1024");
    747748        exit(1);
    748749    }
     
    821822        return (0);
    822823    } else {
    823         log_to_screen(_("Failed to openout to cdstream (fifo)"));
     824        log_to_screen("Failed to openout to cdstream (fifo)");
    824825        return (1);
    825826    }
     
    854855         open_device_via_buffer(tapedev, 'w', internal_tape_block_size))) {
    855856        log_OS_error(g_tape_fifo);
    856         log_to_screen(_("Cannot openin stream device"));
     857        log_to_screen("Cannot openin stream device");
    857858        return (1);
    858859    }
     
    997998    if (!fout) {
    998999        log_OS_error(outfname);
    999         log_to_screen(_("Cannot openout file"));
     1000        log_to_screen("Cannot openout file");
    10001001        return (1);
    10011002    }
     
    10551056    }
    10561057    if (strcmp(temp_cksum, actual_cksum)) {
    1057         sprintf(tmp, _("actual cksum=%s; recorded cksum=%s"), actual_cksum,
     1058        sprintf(tmp, "actual cksum=%s; recorded cksum=%s", actual_cksum,
    10581059                temp_cksum);
    10591060        log_to_screen(tmp);
    1060         sprintf(tmp, _("%s (%ld K) is corrupt on tape"), temp_fname,
     1061        sprintf(tmp, "%s (%ld K) is corrupt on tape", temp_fname,
    10611062                (long) orig_size >> 10);
    10621063        log_to_screen(tmp);
     
    12101211        log_it("mediasize = %ld", mediasize);
    12111212        we_need_a_new_tape = TRUE;
    1212         log_to_screen(_("Should have started a new tape/CD already"));
     1213        log_to_screen("Should have started a new tape/CD already");
    12131214    }
    12141215    if ((g_tape_posK + length_of_incoming_file / 1024) >> 10 >=
     
    13671368                                bkpinfo->internal_tape_block_size))) {
    13681369        log_OS_error(g_tape_fifo);
    1369         log_to_screen(_("Cannot openin stream device"));
     1370        log_to_screen("Cannot openin stream device");
    13701371        return (1);
    13711372    }
     
    14051406    if (g_current_media_number > MAX_NOOF_MEDIA) {
    14061407        res++;
    1407         log_to_screen(_("Too many tapes. Man, you need to use nfs!"));
     1408        log_to_screen("Too many tapes. Man, you need to use nfs!");
    14081409    }
    14091410    if (bkpinfo->backup_media_type == cdstream) {
     
    14171418        g_tape_stream = popen(command, "w");
    14181419        if (!g_tape_stream) {
    1419             log_to_screen(_("Failed to openout to cdstream (fifo)"));
     1420            log_to_screen("Failed to openout to cdstream (fifo)");
    14201421            return (1);
    14211422        }
     
    14271428                                    bkpinfo->internal_tape_block_size))) {
    14281429            log_OS_error(g_tape_fifo);
    1429             log_to_screen(_("Cannot openin stream device"));
     1430            log_to_screen("Cannot openin stream device");
    14301431            return (1);
    14311432        }
     
    15121513    /*@ end vars *************************************************** */
    15131514
    1514     open_evalcall_form(_("Writing data disks to tape"));
    1515     log_to_screen(_("Writing data disks to tape"));
     1515    open_evalcall_form("Writing data disks to tape");
     1516    log_to_screen("Writing data disks to tape");
    15161517    log_it("Data disks = %s", fname);
    15171518    if (!does_file_exist(fname)) {
    1518         sprintf(tmp, _("Cannot find %s"), fname);
     1519        sprintf(tmp, "Cannot find %s", fname);
    15191520        log_to_screen(tmp);
    15201521        return (1);
     
    17051706    if (!g_tape_stream) {
    17061707        log_to_screen
    1707             (_("You're not backing up to tape. Why write a tape header?"));
     1708            ("You're not backing up to tape. Why write a tape header?");
    17081709        return (1);
    17091710    }
     
    17501751
    17511752    /*@ end vars *************************************************** */
    1752     sprintf(tmp, _("Wrong marker! (Should be %s, "),
     1753    sprintf(tmp, "Wrong marker! (Should be %s, ",
    17531754            marker_to_string(should_be));
    1754     sprintf(tmp + strlen(tmp), _("is actually %s)"), marker_to_string(it_is));
     1755    sprintf(tmp + strlen(tmp), "is actually %s)", marker_to_string(it_is));
    17551756    log_to_screen(tmp);
    17561757}
Note: See TracChangeset for help on using the changeset viewer.