Ignore:
Timestamp:
Apr 28, 2006, 12:34:03 AM (18 years ago)
Author:
bcornec
Message:

Integration of a big patch from rene-marc dolhen <rmd_at_mecreant.org> to support internationalization with gettext.

File:
1 edited

Legend:

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

    r484 r497  
    758758                    orig_cksum);
    759759            log_msg(2, tmp);
    760             sprintf(tmp, "%s has changed on live filesystem",
     760            sprintf(tmp, _("%s has changed on live filesystem"),
    761761                    biggie_fname);
    762762            log_to_screen(tmp);
     
    811811    sprintf(curr_acl_list_fname, ACL_BIGGLST_FNAME_RAW_SZ,
    812812            bkpinfo->tmpdir);
    813     log_to_screen("Verifying regular archives on tape");
     813    log_to_screen(_("Verifying regular archives on tape"));
    814814    total_afioballs = get_last_filelist_number(bkpinfo) + 1;
    815     open_progress_form("Verifying filesystem",
    816                        "I am verifying archives against your live filesystem now.",
    817                        "Please wait. This may take a couple of hours.", "",
     815    open_progress_form(_("Verifying filesystem"),
     816                       _("I am verifying archives against your live filesystem now."),
     817                       _("Please wait. This may take a couple of hours."), "",
    818818                       total_afioballs);
    819819    res = read_header_block_from_stream(&size, fname, &ctrl_chr);
     
    854854        res = verify_an_afioball_from_stream(bkpinfo, fname, size);
    855855        if (res) {
    856             sprintf(tmp, "Afioball %ld differs from live filesystem",
     856            sprintf(tmp, _("Afioball %ld differs from live filesystem"),
    857857                    current_afioball_number);
    858858            log_to_screen(tmp);
     
    938938    noof_biggiefiles = (long) size;
    939939    log_msg(1, "noof_biggiefiles = %ld", noof_biggiefiles);
    940     open_progress_form("Verifying big files", comment,
    941                        "Please wait. This may take some time.", "",
     940    open_progress_form(_("Verifying big files"), comment,
     941                       _("Please wait. This may take some time."), "",
    942942                       noof_biggiefiles);
    943943    for (res = read_header_block_from_stream(&size, orig_fname, &ctrl_chr);
     
    955955            p++;
    956956        }
    957         sprintf(comment, "Verifying bigfile #%ld (%ld K)",
     957        sprintf(comment, _("Verifying bigfile #%ld (%ld K)"),
    958958                current_biggiefile_number, (long) size >> 10);
    959959        update_progress_form(comment);
     
    10311031        log_msg(2, tmp);
    10321032        if (bkpinfo->manual_cd_tray) {
    1033             popup_and_OK("Please push CD tray closed.");
     1033            popup_and_OK(_("Please push CD tray closed."));
    10341034        }
    10351035        if (find_and_mount_actual_cd(bkpinfo, mountpoint)) {
    1036             log_to_screen("failed to mount actual CD");
     1036            log_to_screen(_("failed to mount actual CD"));
    10371037            return (1);
    10381038        }
     
    10441044        mddevice = make_vn(fname);
    10451045        if (ret) {
    1046             sprintf(tmp, "make_vn of %s failed; unable to verify ISO\n",
     1046            sprintf(tmp, _("make_vn of %s failed; unable to verify ISO\n"),
    10471047                    fname);
    10481048            log_to_screen(tmp);
     
    10551055#endif
    10561056        if (run_program_and_log_output(command, FALSE)) {
    1057             sprintf(tmp, "%s failed; unable to mount ISO image\n",
     1057            sprintf(tmp, _("%s failed; unable to mount ISO image\n"),
    10581058                    command);
    10591059            log_to_screen(tmp);
     
    11331133
    11341134    log_msg(3, "verify_tape_backups --- starting");
    1135     log_to_screen("Verifying backups");
     1135    log_to_screen(_("Verifying backups"));
    11361136    openin_tape(bkpinfo);
    11371137/* verify archives themselves */
     
    11581158            && length_of_file(changed_files_fname) > 2) {
    11591159            log_to_screen
    1160                 ("Warning - unable to check logfile to derive list of changed files");
     1160                (_("Warning - unable to check logfile to derive list of changed files"));
    11611161        } else {
    11621162            log_to_screen
    1163                 ("No differences found. Therefore, no 'changed.files' text file.");
     1163                (_("No differences found. Therefore, no 'changed.files' text file."));
    11641164        }
    11651165    }
     
    11771177        log_msg(0, tmp);
    11781178        log_to_screen
    1179             ("See /tmp/changed.files for a list of nonmatching files.");
     1179            (_("See /tmp/changed.files for a list of nonmatching files."));
    11801180        log_to_screen
    1181             ("The files probably changed on filesystem, not on backup media.");
     1181            (_("The files probably changed on filesystem, not on backup media."));
    11821182        //      retval++;
    11831183    }
Note: See TracChangeset for help on using the changeset viewer.