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/mondorestore/mondo-rstr-compare.c

    r522 r541  
    135135    if (!(fin = fopen(slice_fname(bigfileno, 0, ARCHIVES_PATH, ""), "r"))) {
    136136        sprintf(tmp_ptr,
    137                 _("Cannot open bigfile %ld (%s)'s info file"),
     137                "Cannot open bigfile %ld (%s)'s info file",
    138138                bigfileno + 1, bigfile_fname_ptr);
    139139        log_to_screen(tmp_ptr);
     
    149149    log_msg(2, "biggiestruct.checksum = %s", biggiestruct.checksum);
    150150
    151     sprintf(tmp_ptr, _("Comparing %s"), bigfile_fname_ptr);
     151    sprintf(tmp_ptr, "Comparing %s", bigfile_fname_ptr);
    152152
    153153    if (!g_text_mode) {
     
    252252    }
    253253    mvaddstr_and_log_it(g_currentY, 0,
    254                         _("Comparing large files                                                  "));
    255     open_progress_form(_("Comparing large files"),
    256                        _("I am now comparing the large files"),
    257                        _("against the filesystem. Please wait."), "",
     254                        "Comparing large files                                                  ");
     255    open_progress_form("Comparing large files",
     256                       "I am now comparing the large files",
     257                       "against the filesystem. Please wait.", "",
    258258                       noof_biggiefiles);
    259259    for (bigfileno = 0; bigfileno < noof_biggiefiles; bigfileno++) {
     
    268268    return (0);
    269269    if (retval) {
    270         mvaddstr_and_log_it(g_currentY++, 74, _("Errors."));
    271     } else {
    272         mvaddstr_and_log_it(g_currentY++, 74, _("Done."));
     270        mvaddstr_and_log_it(g_currentY++, 74, "Errors.");
     271    } else {
     272        mvaddstr_and_log_it(g_currentY++, 74, "Done.");
    273273    }
    274274    return (retval);
     
    428428
    429429    assert(bkpinfo != NULL);
    430     mvaddstr_and_log_it(g_currentY, 0, _("Comparing archives"));
     430    mvaddstr_and_log_it(g_currentY, 0, "Comparing archives");
    431431    read_cfg_var(g_mondo_cfg_file, "last-filelist-number", tmp);
    432432
    433433    max_val = atol(tmp);
    434     sprintf(progress_str, _("Comparing with %s #%d "),
     434    sprintf(progress_str, "Comparing with %s #%d ",
    435435            media_descriptor_string(bkpinfo->backup_media_type),
    436436            g_current_media_number);
    437437
    438     open_progress_form(_("Comparing files"),
    439                        _("Comparing tarballs against filesystem."),
    440                        _("Please wait. This may take some time."),
     438    open_progress_form("Comparing files",
     439                       "Comparing tarballs against filesystem.",
     440                       "Please wait. This may take some time.",
    441441                       progress_str, max_val);
    442442
     
    475475            log_msg(2, "OK, I think it's time for another CD...");
    476476            g_current_media_number++;
    477             sprintf(progress_str, _("Comparing with %s #%d "),
     477            sprintf(progress_str, "Comparing with %s #%d ",
    478478                    media_descriptor_string(bkpinfo->backup_media_type),
    479479                    g_current_media_number);
     
    488488    close_progress_form();
    489489    if (retval) {
    490         mvaddstr_and_log_it(g_currentY++, 74, _("Errors."));
    491     } else {
    492         mvaddstr_and_log_it(g_currentY++, 74, _("Done."));
     490        mvaddstr_and_log_it(g_currentY++, 74, "Errors.");
     491    } else {
     492        mvaddstr_and_log_it(g_currentY++, 74, "Done.");
    493493    }
    494494    paranoid_free(tarball_fname);
     
    541541    noof_changed_files = count_lines_in_file("/tmp/changed.txt");
    542542    if (noof_changed_files) {
    543         sprintf(tmp, _("%ld files do not match the backup            "),
     543        sprintf(tmp, "%ld files do not match the backup            ",
    544544                noof_changed_files);
    545545        //      mvaddstr_and_log_it( g_currentY++, 0, tmp );
     
    548548        paranoid_system(command);
    549549    } else {
    550         sprintf(tmp, _("All files match the backup                     "));
     550        sprintf(tmp, "All files match the backup                     ");
    551551        mvaddstr_and_log_it(g_currentY++, 0, tmp);
    552552        log_to_screen(tmp);
     
    598598    while (get_cfg_file_from_archive(bkpinfo)) {
    599599        if (!ask_me_yes_or_no
    600             (_("Failed to find config file/archives. Choose another source?")))
     600            ("Failed to find config file/archives. Choose another source?"))
    601601        {
    602602            fatal_error("Unable to find config file/archives. Aborting.");
     
    607607    read_cfg_file_into_bkpinfo(g_mondo_cfg_file, bkpinfo);
    608608    g_current_media_number = 1;
    609     mvaddstr_and_log_it(1, 30, _("Comparing Automatically"));
     609    mvaddstr_and_log_it(1, 30, "Comparing Automatically");
    610610    iamhere("Pre-MAD");
    611611    retval = mount_all_devices(mountlist, FALSE);
     
    626626        mvaddstr_and_log_it(g_currentY++,
    627627                            0,
    628                             _("Warning - differences found during the compare phase"));
     628                            "Warning - differences found during the compare phase");
    629629    }
    630630
     
    633633    if (count_lines_in_file("/tmp/changed.txt") > 0) {
    634634        mvaddstr_and_log_it(g_currentY++, 0,
    635                             _("Differences found while files were being compared."));
     635                            "Differences found while files were being compared.");
    636636        streamline_changes_file("/tmp/changed.files", "/tmp/changed.txt");
    637637        if (count_lines_in_file("/tmp/changed.files") <= 0) {
    638638            mvaddstr_and_log_it(g_currentY++, 0,
    639                                 _("...but they were logfiles and temporary files. Your archives are fine."));
     639                                "...but they were logfiles and temporary files. Your archives are fine.");
    640640            log_to_screen
    641                 (_("The differences were logfiles and temporary files. Your archives are fine."));
     641                ("The differences were logfiles and temporary files. Your archives are fine.");
    642642        } else {
    643643            q = count_lines_in_file("/tmp/changed.files");
    644             sprintf(tmp, _("%ld significant difference%s found."), q,
     644            sprintf(tmp, "%ld significant difference%s found.", q,
    645645                    (q != 1) ? "s" : "");
    646646            mvaddstr_and_log_it(g_currentY++, 0, tmp);
     
    648648
    649649            strcpy(tmp,
    650                    _("Type 'less /tmp/changed.files' for a list of non-matching files"));
     650                   "Type 'less /tmp/changed.files' for a list of non-matching files");
    651651            mvaddstr_and_log_it(g_currentY++, 0, tmp);
    652652            log_to_screen(tmp);
     
    658658    } else {
    659659        log_to_screen
    660             (_("No significant differences were found. Your backup is perfect."));
     660            ("No significant differences were found. Your backup is perfect.");
    661661    }
    662662    kill_petris();
     
    694694    run_program_and_log_output(command, FALSE);
    695695    mvaddstr_and_log_it(g_currentY,
    696                         0, _("Verifying archives against filesystem"));
     696                        0, "Verifying archives against filesystem");
    697697
    698698    if (bkpinfo->disaster_recovery
     
    714714    }
    715715
    716     mvaddstr_and_log_it(g_currentY++, 74, _("Done."));
     716    mvaddstr_and_log_it(g_currentY++, 74, "Done.");
    717717    paranoid_free(dir);
    718718    paranoid_free(command);
     
    751751    run_program_and_log_output(command, FALSE);
    752752    mvaddstr_and_log_it(g_currentY,
    753                         0, _("Verifying archives against filesystem"));
     753                        0, "Verifying archives against filesystem");
    754754    res = verify_tape_backups(bkpinfo);
    755755    chdir(dir);
    756756    if (res) {
    757         mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));
    758     } else {
    759         mvaddstr_and_log_it(g_currentY++, 74, _("Done."));
     757        mvaddstr_and_log_it(g_currentY++, 74, "Failed.");
     758    } else {
     759        mvaddstr_and_log_it(g_currentY++, 74, "Done.");
    760760    }
    761761    paranoid_free(dir);
Note: See TracChangeset for help on using the changeset viewer.