Ignore:
Timestamp:
Apr 30, 2006, 2:04:16 AM (18 years ago)
Author:
bcornec
Message:

merge -r489:506 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/mondorestore/mondo-restore.c

    r489 r507  
    507507 * The message to display if we detect that the user is using a Compaq Proliant.
    508508 */
    509 #define COMPAQ_PROLIANTS_SUCK "Partition and format your disk using Compaq's disaster recovery CD. After you've done that, please reboot with your Mondo CD/floppy in Interactive Mode."
     509#define COMPAQ_PROLIANTS_SUCK _("Partition and format your disk using Compaq's disaster recovery CD. After you've done that, please reboot with your Mondo CD/floppy in Interactive Mode.")
    510510
    511511
     
    537537    if (!does_file_exist(g_mountlist_fname)) {
    538538        log_to_screen(g_mountlist_fname);
    539         log_to_screen("does not exist");
     539        log_to_screen(_("does not exist"));
    540540        return (1);
    541541    }
     
    545545    if (retval) {
    546546        log_to_screen
    547             ("Warning - load_raidtab_into_raidlist returned an error");
     547            (_("Warning - load_raidtab_into_raidlist returned an error"));
    548548    }
    549549    res = edit_mountlist(g_mountlist_fname, mountlist, raidlist);
     
    555555    save_raidlist_to_raidtab(raidlist, RAIDTAB_FNAME);
    556556
    557     log_to_screen("I have finished editing the mountlist for you.");
     557    log_to_screen(_("I have finished editing the mountlist for you."));
    558558
    559559    return (retval);
     
    604604    popup_and_OK(COMPAQ_PROLIANTS_SUCK);
    605605    if (ask_me_yes_or_no
    606         ("Would you like to reboot and use your Compaq CD to prep your hard drive?"))
     606        (_("Would you like to reboot and use your Compaq CD to prep your hard drive?")))
    607607    {
    608608        fatal_error
    609             ("Aborting. Please reboot and prep your hard drive with your Compaq CD.");
     609            (_("Aborting. Please reboot and prep your hard drive with your Compaq CD."));
    610610    }
    611611}
     
    644644        interactively_obtain_media_parameters_from_user(bkpinfo, FALSE);
    645645    } else {
    646         popup_and_OK("No restoring or comparing will take place today.");
     646        popup_and_OK(_("No restoring or comparing will take place today."));
    647647        if (is_this_device_mounted("/mnt/cdrom")) {
    648648            run_program_and_log_output("umount /mnt/cdrom", FALSE);
     
    776776    if (g_text_mode) {
    777777        if (!ask_me_yes_or_no
    778             ("Interactive Mode + textonly = experimental! Proceed anyway?"))
     778            (_("Interactive Mode + textonly = experimental! Proceed anyway?")))
    779779        {
    780780            fatal_error("Wise move.");
     
    817817        save_mountlist_to_disk(mountlist, g_mountlist_fname);
    818818        save_raidlist_to_raidtab(raidlist, RAIDTAB_FNAME);
    819         mvaddstr_and_log_it(1, 30, "Restoring Interactively");
     819        mvaddstr_and_log_it(1, 30, _("Restoring Interactively"));
    820820        if (bkpinfo->differential) {
    821             log_to_screen("Because this is a differential backup, disk");
     821            log_to_screen(_("Because this is a differential backup, disk"));
    822822            log_to_screen
    823                 (" partitioning and formatting will not take place.");
     823                (_(" partitioning and formatting will not take place."));
    824824            done = TRUE;
    825825        } else {
    826826            if (ask_me_yes_or_no
    827                 ("Do you want to erase and partition your hard drives?")) {
     827                (_("Do you want to erase and partition your hard drives?"))) {
    828828                if (partition_table_contains_Compaq_diagnostic_partition
    829829                    (mountlist)) {
     
    836836                    if (ptn_errs) {
    837837                        log_to_screen
    838                             ("Warning. Errors occurred during disk partitioning.");
     838                            (_("Warning. Errors occurred during disk partitioning."));
    839839                    }
    840840
     
    842842                    if (!fmt_errs) {
    843843                        log_to_screen
    844                             ("Errors during disk partitioning were handled OK.");
     844                            (_("Errors during disk partitioning were handled OK."));
    845845                        log_to_screen
    846                             ("Partitions were formatted OK despite those errors.");
     846                            (_("Partitions were formatted OK despite those errors."));
    847847                        ptn_errs = 0;
    848848                    }
     
    854854            } else {
    855855                mvaddstr_and_log_it(g_currentY++, 0,
    856                                     "User opted not to partition the devices");
     856                                    _("User opted not to partition the devices"));
    857857                if (ask_me_yes_or_no
    858                     ("Do you want to format your hard drives?")) {
     858                    (_("Do you want to format your hard drives?"))) {
    859859                    fmt_errs = format_everything(mountlist, TRUE);
    860860                    if (!fmt_errs) {
     
    869869                mvaddstr_and_log_it(g_currentY++,
    870870                                    0,
    871                                     "Errors occurred. Please repartition and format drives manually.");
     871                                    _("Errors occurred. Please repartition and format drives manually."));
    872872                done = FALSE;
    873873            }
     
    875875                mvaddstr_and_log_it(g_currentY++,
    876876                                    0,
    877                                     "Errors occurred during partitioning. Formatting, however, went OK.");
     877                                    _("Errors occurred during partitioning. Formatting, however, went OK."));
    878878                done = TRUE;
    879879            }
    880880            if (!done) {
    881                 if (!ask_me_yes_or_no("Re-edit the mountlist?")) {
     881                if (!ask_me_yes_or_no(_("Re-edit the mountlist?"))) {
    882882                    retval++;
    883883                    goto end_of_func;
     
    895895    /* restore */
    896896    if ((restore_all =
    897          ask_me_yes_or_no("Do you want me to restore all of your data?")))
     897         ask_me_yes_or_no(_("Do you want me to restore all of your data?"))))
    898898    {
    899899        log_msg(1, "Restoring all data");
     
    902902        if ((restore_all =
    903903             ask_me_yes_or_no
    904              ("Do you want me to restore _some_ of your data?"))) {
     904             (_("Do you want me to restore _some_ of your data?")))) {
    905905        strcpy(old_restpath, bkpinfo->restore_path);
    906906        for (done = FALSE; !done;) {
     
    915915// (NB: %s is where your filesystem is mounted now, by default)", MNT_RESTORING);
    916916                if (popup_and_get_string
    917                     ("Restore path", "Restore files to where?", tmp,
     917                    (_("Restore path"), _("Restore files to where?"), tmp,
    918918                     MAX_STR_LEN / 4)) {
    919919                    if (!strcmp(tmp, "/")) {
    920                         if (!ask_me_yes_or_no("Are you sure?")) {
     920                        if (!ask_me_yes_or_no(_("Are you sure?"))) {
    921921                            goto gotos_suck;
    922922                        }
     
    932932                }
    933933                if (!ask_me_yes_or_no
    934                     ("Restore another subset of your backup?")) {
     934                    (_("Restore another subset of your backup?"))) {
    935935                    done = TRUE;
    936936                }
     
    943943        mvaddstr_and_log_it(g_currentY++,
    944944                            0,
    945                             "User opted not to restore any data.                                  ");
     945                            _("User opted not to restore any data.                                  "));
    946946    }
    947947    if (retval) {
    948948        mvaddstr_and_log_it(g_currentY++,
    949949                            0,
    950                             "Errors occurred during the restore phase.            ");
    951     }
    952 
    953     if (ask_me_yes_or_no("Initialize the boot loader?")) {
     950                            _("Errors occurred during the restore phase.            "));
     951    }
     952
     953    if (ask_me_yes_or_no(_("Initialize the boot loader?"))) {
    954954        run_boot_loader(TRUE);
    955955    } else {
    956956        mvaddstr_and_log_it(g_currentY++,
    957957                            0,
    958                             "User opted not to initialize the boot loader.");
     958                            _("User opted not to initialize the boot loader."));
    959959    }
    960960
     
    965965    /*  if (restore_some || restore_all || */
    966966    if (ask_me_yes_or_no
    967         ("Label your ext2 and ext3 partitions if necessary?")) {
     967        (_("Label your ext2 and ext3 partitions if necessary?"))) {
    968968        mvaddstr_and_log_it(g_currentY, 0,
    969                             "Using e2label to label your ext2,3 partitions");
     969                            _("Using e2label to label your ext2,3 partitions"));
    970970        if (does_file_exist("/tmp/fstab.new")) {
    971971            strcpy(fstab_fname, "/tmp/fstab.new");
     
    980980        if (res) {
    981981            log_to_screen
    982                 ("label-partitions-as-necessary returned an error");
    983             mvaddstr_and_log_it(g_currentY++, 74, "Failed.");
     982                (_("label-partitions-as-necessary returned an error"));
     983            mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));
    984984        } else {
    985985            mvaddstr_and_log_it(g_currentY++, 74, "Done.");
     
    992992        mvaddstr_and_log_it(g_currentY++,
    993993                            0,
    994                             "Warning - errors occurred during the restore phase.");
     994                            _("Warning - errors occurred during the restore phase."));
    995995    }
    996996  end_of_func:
     
    10441044            retval += compare_mode(bkpinfo, mountlist, raidlist);
    10451045        } else {
    1046             log_to_screen("OK, I shan't restore/compare any files.");
     1046            log_to_screen(_("OK, I shan't restore/compare any files."));
    10471047        }
    10481048    }
     
    10541054    if (system("umount /tmp/isodir 2> /dev/null")) {
    10551055        log_to_screen
    1056             ("WARNING - unable to unmount device where the ISO files are stored.");
     1056            (_("WARNING - unable to unmount device where the ISO files are stored."));
    10571057    }
    10581058//    }
     
    11151115    if (!evaluate_mountlist(mountlist, tmpA, tmpB, tmpC)) {
    11161116        sprintf(tmp,
    1117                 "Mountlist analyzed. Result: \"%s %s %s\" Switch to Interactive Mode?",
     1117                _("Mountlist analyzed. Result: \"%s %s %s\" Switch to Interactive Mode?"),
    11181118                tmpA, tmpB, tmpC);
    11191119        if (ask_me_yes_or_no(tmp)) {
     
    11251125    }
    11261126    save_mountlist_to_disk(mountlist, g_mountlist_fname);
    1127     mvaddstr_and_log_it(1, 30, "Restoring Automatically");
     1127    mvaddstr_and_log_it(1, 30, _("Restoring Automatically"));
    11281128    if (bkpinfo->differential) {
    1129         log_to_screen("Because this is a differential backup, disk");
    1130         log_to_screen("partitioning and formatting will not take place.");
     1129        log_to_screen(_("Because this is a differential backup, disk"));
     1130        log_to_screen(_("partitioning and formatting will not take place."));
    11311131        res = 0;
    11321132    } else {
     
    11541154                if (res) {
    11551155                    log_to_screen
    1156                         ("Warning. Errors occurred during partitioning.");
     1156                        (_("Warning. Errors occurred during partitioning."));
    11571157                    res = 0;
    11581158                }
     
    11601160            retval += res;
    11611161            if (!res) {
    1162                 log_to_screen("Preparing to format your disk(s)");
     1162                log_to_screen(_("Preparing to format your disk(s)"));
    11631163                sleep(1);
    11641164                system("sync");
    1165                 log_to_screen("Please wait. This may take a few minutes.");
     1165                log_to_screen(_("Please wait. This may take a few minutes."));
    11661166                res += format_everything(mountlist, FALSE);
    11671167            }
     
    11731173        mvaddstr_and_log_it(g_currentY++,
    11741174                            0,
    1175                             "Failed to partition and/or format your hard drives.");
    1176 
    1177         if (ask_me_yes_or_no("Try in interactive mode instead?")) {
     1175                            _("Failed to partition and/or format your hard drives."));
     1176
     1177        if (ask_me_yes_or_no(_("Try in interactive mode instead?"))) {
    11781178            retval = interactive_mode(bkpinfo, mountlist, raidlist);
    11791179            goto after_the_nuke;
    11801180        } else
    11811181            if (!ask_me_yes_or_no
    1182                 ("Would you like to try to proceed anyway?")) {
     1182                (_("Would you like to try to proceed anyway?"))) {
    11831183            return (retval);
    11841184        }
     
    11881188        unmount_all_devices(mountlist);
    11891189        log_to_screen
    1190             ("Unable to mount all partitions. Sorry, I cannot proceed.");
     1190            (_("Unable to mount all partitions. Sorry, I cannot proceed."));
    11911191        return (retval);
    11921192    }
     
    12041204    mvaddstr_and_log_it(g_currentY,
    12051205                        0,
    1206                         "Using e2label to label your ext2,3 partitions");
     1206                        _("Using e2label to label your ext2,3 partitions"));
    12071207
    12081208    sprintf(tmp, "label-partitions-as-necessary %s < /tmp/fstab",
     
    12101210    res = run_program_and_log_output(tmp, TRUE);
    12111211    if (res) {
    1212         log_to_screen("label-partitions-as-necessary returned an error");
    1213         mvaddstr_and_log_it(g_currentY++, 74, "Failed.");
     1212        log_to_screen(_("label-partitions-as-necessary returned an error"));
     1213        mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));
    12141214    } else {
    1215         mvaddstr_and_log_it(g_currentY++, 74, "Done.");
     1215        mvaddstr_and_log_it(g_currentY++, 74, _("Done."));
    12161216    }
    12171217    retval += res;
     
    12191219  after_the_nuke:
    12201220    if (retval) {
    1221         log_to_screen("Errors occurred during the nuke phase.");
     1221        log_to_screen(_("Errors occurred during the nuke phase."));
    12221222    } else if (strstr(call_program_and_get_last_line_of_output("cat /proc/cmdline"), "RESTORE"))    // Bruno's thing
    12231223    {
    12241224        log_to_screen
    1225             ("PC was restored successfully. Thank you for using Mondo Rescue.");
     1225            (_("PC was restored successfully. Thank you for using Mondo Rescue."));
    12261226        log_to_screen
    1227             ("Please visit our website at http://www.mondorescue.org for more information.");
     1227            (_("Please visit our website at http://www.mondorescue.org for more information."));
    12281228    } else {
    1229         strcpy(tmp," Mondo has restored your system. Please remove the backup media and reboot.\n\nPlease visit our website at http://www.mondorescue.org for more information.");
     1229        strcpy(tmp,_(" Mondo has restored your system. Please remove the backup media and reboot.\n\nPlease visit our website at http://www.mondorescue.org for more information."));
    12301230        if (strstr(call_program_and_get_last_line_of_output("cat /proc/cmdline"), "restore") == NULL) {
    12311231            popup_and_OK(tmp);
    12321232        }
    12331233        log_to_screen
    1234             ("Mondo has restored your system. Please remove the backup media and reboot.");
     1234            (_("Mondo has restored your system. Please remove the backup media and reboot."));
    12351235        log_to_screen
    1236             ("Please visit our website at http://www.mondorescue.org for more information.");
     1236            (_("Please visit our website at http://www.mondorescue.org for more information."));
    12371237    }
    12381238    g_I_have_just_nuked = TRUE;
     
    12831283    if (!g_restoring_live_from_cd) {
    12841284        popup_and_OK
    1285             ("Please insert tape/CD/boot floppy, then hit 'OK' to continue.");
     1285            (_("Please insert tape/CD/boot floppy, then hit 'OK' to continue."));
    12861286        sleep(1);
    12871287    }
     
    12961296    log_msg(2, "bkpinfo->isodir = %s", bkpinfo->isodir);
    12971297
    1298     open_evalcall_form("Thinking...");
     1298    open_evalcall_form(_("Thinking..."));
    12991299
    13001300    get_cfg_file_from_archive_or_bust(bkpinfo);
     
    13091309        save_filelist(filelist, "/tmp/selected-files.txt");
    13101310        strcpy(old_restpath, bkpinfo->restore_path);
    1311         if (popup_and_get_string("Restore path",
    1312                                  "Restore files to where? )",
     1311        if (popup_and_get_string(_("Restore path"),
     1312                                 _("Restore files to where? )"),
    13131313                                 bkpinfo->restore_path, MAX_STR_LEN / 4)) {
    13141314            iamhere("Restoring everything");
     
    14061406
    14071407    if (!(fin = fopen(slice_fname(bigfileno, 0, ARCHIVES_PATH, ""), "r"))) {
    1408         log_to_screen("Cannot even open bigfile's info file");
     1408        log_to_screen(_("Cannot even open bigfile's info file"));
    14091409        return (1);
    14101410    }
     
    15191519    log_msg(3, "file_to_openout = %s", file_to_openout);
    15201520    if (!(fout = fopen(file_to_openout, "w"))) {
    1521         log_to_screen("Cannot openout outfile_fname - hard disk full?");
     1521        log_to_screen(_("Cannot openout outfile_fname - hard disk full?"));
    15221522        return (1);
    15231523    }
     
    15421542                    g_current_media_number, sliceno);
    15431543            log_msg(2, tmp);
    1544             sprintf(tmp, "Restoring from %s #%d",
     1544            sprintf(tmp, _("Restoring from %s #%d"),
    15451545                    media_descriptor_string(bkpinfo->backup_media_type),
    15461546                    g_current_media_number);
    15471547            log_to_screen(tmp);
    15481548            insist_on_this_cd_number(bkpinfo, g_current_media_number);
    1549             log_to_screen("Continuing to restore.");
     1549            log_to_screen(_("Continuing to restore."));
    15501550        } else {
    15511551            strcpy(tmp,
     
    15761576                    strcpy(suffix, "");
    15771577                } else {
    1578                     log_to_screen("OK, that's pretty fsck0red...");
     1578                    log_to_screen(_("OK, that's pretty fsck0red..."));
    15791579                    return (1);
    15801580                }
     
    20342034            if (run_program_and_log_output(tmp, FALSE)) {
    20352035                log_to_screen
    2036                     ("(compare_a_tarball) Compression program not found - oh no!");
     2036                    (_("(compare_a_tarball) Compression program not found - oh no!"));
    20372037                paranoid_MR_finish(1);
    20382038            }
     
    20922092            if (res) {
    20932093                log_to_screen
    2094                     ("Errors occurred while setting extended attributes");
     2094                    (_("Errors occurred while setting extended attributes"));
    20952095            } else {
    20962096                log_msg(1, "I set xattr OK");
     
    21032103            if (res) {
    21042104                log_to_screen
    2105                     ("Errors occurred while setting access control lists");
     2105                    (_("Errors occurred while setting access control lists"));
    21062106            } else {
    21072107                log_msg(1, "I set ACL OK");
     
    21202120    if (does_file_exist("/PAUSE")) {
    21212121        popup_and_OK
    2122             ("Press ENTER to go on. Delete /PAUSE to stop these pauses.");
     2122            (_("Press ENTER to go on. Delete /PAUSE to stop these pauses."));
    21232123    }
    21242124    unlink(filelist_subset_fname);
     
    23172317
    23182318    if (does_file_exist("/PAUSE") && current_tarball_number >= 50) {
    2319         log_to_screen("Paused after set %ld", current_tarball_number);
    2320         popup_and_OK("Pausing. Press ENTER to continue.");
     2319        log_to_screen(_("Paused after set %ld"), current_tarball_number);
     2320        popup_and_OK(_("Pausing. Press ENTER to continue."));
    23212321    }
    23222322
     
    23812381    read_cfg_var(g_mondo_cfg_file, "total-slices", tmp);
    23822382    total_slices = atol(tmp);
    2383     sprintf(tmp, "Reassembling large files      ");
     2383    sprintf(tmp, _("Reassembling large files      "));
    23842384    mvaddstr_and_log_it(g_currentY, 0, tmp);
    23852385    if (length_of_file(BIGGIELIST) < 6) {
     
    23972397    log_msg(2, tmp);
    23982398
    2399     open_progress_form("Reassembling large files",
    2400                        "I am now reassembling all the large files.",
    2401                        "Please wait. This may take some time.",
     2399    open_progress_form(_("Reassembling large files"),
     2400                       _("I am now reassembling all the large files."),
     2401                       _("Please wait. This may take some time."),
    24022402                       "", total_slices);
    24032403    for (bigfileno = 0, finished = FALSE; !finished;) {
     
    24202420                insist_on_this_cd_number(bkpinfo,
    24212421                                         ++g_current_media_number);
    2422                 sprintf(tmp, "Restoring from %s #%d",
     2422                sprintf(tmp, _("Restoring from %s #%d"),
    24232423                        media_descriptor_string(bkpinfo->
    24242424                                                backup_media_type),
     
    24342434        } else {
    24352435            just_changed_cds = FALSE;
    2436             sprintf(tmp, "Restoring big file %ld", bigfileno + 1);
     2436            sprintf(tmp, _("Restoring big file %ld"), bigfileno + 1);
    24372437            update_progress_form(tmp);
    24382438            res =
     
    24632463    if (does_file_exist("/PAUSE")) {
    24642464        popup_and_OK
    2465             ("Press ENTER to go on. Delete /PAUSE to stop these pauses.");
     2465            (_("Press ENTER to go on. Delete /PAUSE to stop these pauses."));
    24662466    }
    24672467    close_progress_form();
    24682468    if (retval) {
    2469         mvaddstr_and_log_it(g_currentY++, 74, "Errors.");
     2469        mvaddstr_and_log_it(g_currentY++, 74, _("Errors."));
    24702470    } else {
    2471         mvaddstr_and_log_it(g_currentY++, 74, "Done.");
     2471        mvaddstr_and_log_it(g_currentY++, 74, _("Done."));
    24722472    }
    24732473    paranoid_free(xattr_fname);
     
    25172517    assert(bkpinfo != NULL);
    25182518
    2519     mvaddstr_and_log_it(g_currentY, 0, "Restoring from archives");
     2519    mvaddstr_and_log_it(g_currentY, 0, _("Restoring from archives"));
    25202520    log_msg(2,
    25212521            "Insisting on 1st CD, so that I can have a look at LAST-FILELIST-NUMBER");
     
    25272527    read_cfg_var(g_mondo_cfg_file, "last-filelist-number", tmp);
    25282528    max_val = atol(tmp) + 1;
    2529     sprintf(progress_str, "Restoring from %s #%d",
     2529    sprintf(progress_str, _("Restoring from %s #%d"),
    25302530            media_descriptor_string(bkpinfo->backup_media_type),
    25312531            g_current_media_number);
    25322532    log_to_screen(progress_str);
    2533     open_progress_form("Restoring from archives",
    2534                        "Restoring data from the archives.",
    2535                        "Please wait. This may take some time.",
     2533    open_progress_form(_("Restoring from archives"),
     2534                       _("Restoring data from the archives."),
     2535                       _("Please wait. This may take some time."),
    25362536                       progress_str, max_val);
    25372537    for (;;) {
     
    25592559            if (current_tarball_number == 0) {
    25602560                log_to_screen
    2561                     ("No tarballs. Strange. Maybe you only backed up freakin' big files?");
     2561                    (_("No tarballs. Strange. Maybe you only backed up freakin' big files?"));
    25622562                return (0);
    25632563            }
     
    25692569            }
    25702570            g_current_media_number++;
    2571             sprintf(progress_str, "Restoring from %s #%d",
     2571            sprintf(progress_str, _("Restoring from %s #%d"),
    25722572                    media_descriptor_string(bkpinfo->backup_media_type),
    25732573                    g_current_media_number);
    25742574            log_to_screen(progress_str);
    25752575        } else {
    2576             sprintf(progress_str, "Restoring from fileset #%ld on %s #%d",
     2576            sprintf(progress_str, _("Restoring from fileset #%ld on %s #%d"),
    25772577                    current_tarball_number,
    25782578                    media_descriptor_string(bkpinfo->backup_media_type),
     
    25862586                                              filelist);
    25872587            }
    2588             sprintf(tmp, "%s #%d, fileset #%ld - restore ",
     2588            sprintf(tmp, _("%s #%d, fileset #%ld - restore "),
    25892589                    media_descriptor_string(bkpinfo->backup_media_type),
    25902590                    g_current_media_number, current_tarball_number);
    25912591            if (res) {
    2592                 strcat(tmp, "reported errors");
     2592                strcat(tmp, _("reported errors"));
    25932593            } else if (attempts > 1) {
    2594                 strcat(tmp, "succeeded");
     2594                strcat(tmp, _("succeeded"));
    25952595            } else {
    2596                 strcat(tmp, "succeeded");
     2596                strcat(tmp, _("succeeded"));
    25972597            }
    25982598            if (attempts > 1) {
    2599                 sprintf(tmp + strlen(tmp), " (%d attempts) - review logs",
     2599                sprintf(tmp + strlen(tmp), _(" (%d attempts) - review logs"),
    26002600                        attempts);
    26012601            }
     
    26122612    close_progress_form();
    26132613    if (retval) {
    2614         mvaddstr_and_log_it(g_currentY++, 74, "Errors.");
     2614        mvaddstr_and_log_it(g_currentY++, 74, _("Errors."));
    26152615    } else {
    2616         mvaddstr_and_log_it(g_currentY++, 74, "Done.");
     2616        mvaddstr_and_log_it(g_currentY++, 74, _("Done."));
    26172617    }
    26182618    paranoid_free(tmp);
     
    26972697            noof_biggiefiles);
    26982698    log_msg(2, tmp);
    2699     open_progress_form("Reassembling large files",
    2700                        "I am now reassembling all the large files.",
    2701                        "Please wait. This may take some time.",
     2699    open_progress_form(_("Reassembling large files"),
     2700                       _("I am now reassembling all the large files."),
     2701                       _("Please wait. This may take some time."),
    27022702                       "", total_slices);
    27032703
     
    27192719            p++;
    27202720        }
    2721         sprintf(tmp, "Restoring big file %ld (%lld K)",
     2721        sprintf(tmp, _("Restoring big file %ld (%lld K)"),
    27222722                current_bigfile_number + 1, biggie_size / 1024);
    27232723        update_progress_form(tmp);
     
    27702770    if (does_file_exist("/PAUSE")) {
    27712771        popup_and_OK
    2772             ("Press ENTER to go on. Delete /PAUSE to stop these pauses.");
     2772            (_("Press ENTER to go on. Delete /PAUSE to stop these pauses."));
    27732773    }
    27742774
    27752775    close_progress_form();
    27762776    if (retval) {
    2777         mvaddstr_and_log_it(g_currentY++, 74, "Errors.");
     2777        mvaddstr_and_log_it(g_currentY++, 74, _("Errors."));
    27782778    } else {
    2779         mvaddstr_and_log_it(g_currentY++, 74, "Done.");
     2779        mvaddstr_and_log_it(g_currentY++, 74, _("Done."));
    27802780    }
    27812781    paranoid_free(biggies_whose_EXATs_we_should_set);
     
    28332833    malloc_string(xattr_fname);
    28342834    malloc_string(acl_fname);
    2835     mvaddstr_and_log_it(g_currentY, 0, "Restoring from archives");
     2835    mvaddstr_and_log_it(g_currentY, 0, _("Restoring from archives"));
    28362836    read_cfg_var(g_mondo_cfg_file, "last-filelist-number", tmp);
    28372837    max_val = atol(tmp) + 1;
     
    28412841    run_program_and_log_output("pwd", 5);
    28422842
    2843     sprintf(progress_str, "Restoring from media #%d",
     2843    sprintf(progress_str, _("Restoring from media #%d"),
    28442844            g_current_media_number);
    28452845    log_to_screen(progress_str);
    2846     open_progress_form("Restoring from archives",
    2847                        "Restoring data from the archives.",
    2848                        "Please wait. This may take some time.",
     2846    open_progress_form(_("Restoring from archives"),
     2847                       _("Restoring data from the archives."),
     2848                       _("Please wait. This may take some time."),
    28492849                       progress_str, max_val);
    28502850
     
    28802880        }
    28812881        sprintf(tmp,
    2882                 "Restoring from fileset #%ld (name=%s, size=%ld K)",
     2882                _("Restoring from fileset #%ld (name=%s, size=%ld K)"),
    28832883                current_afioball_number, tmp_fname, (long) tmp_size >> 10);
    28842884        res =
     
    28892889        retval += res;
    28902890        if (res) {
    2891             sprintf(tmp, "Fileset %ld - errors occurred",
     2891            sprintf(tmp, _("Fileset %ld - errors occurred"),
    28922892                    current_afioball_number);
    28932893            log_to_screen(tmp);
     
    29012901        current_afioball_number++;
    29022902        g_current_progress++;
    2903         sprintf(progress_str, "Restoring from fileset #%ld on %s #%d",
     2903        sprintf(progress_str, _("Restoring from fileset #%ld on %s #%d"),
    29042904                current_afioball_number,
    29052905                media_descriptor_string(bkpinfo->backup_media_type),
     
    29132913    close_progress_form();
    29142914    if (retval) {
    2915         mvaddstr_and_log_it(g_currentY++, 74, "Errors.");
     2915        mvaddstr_and_log_it(g_currentY++, 74, _("Errors."));
    29162916    } else {
    2917         mvaddstr_and_log_it(g_currentY++, 74, "Done.");
     2917        mvaddstr_and_log_it(g_currentY++, 74, _("Done."));
    29182918    }
    29192919    paranoid_free(tmp);
     
    29662966    if (!find_home_of_exe("petris") && !g_text_mode) {
    29672967        newtDrawRootText(0, g_noof_rows - 2,
    2968                          "Press ALT-<left cursor> twice to play Petris :-) ");
     2968                         _("Press ALT-<left cursor> twice to play Petris :-) "));
    29692969        newtRefresh();
    29702970    }
    2971     mvaddstr_and_log_it(g_currentY, 0, "Preparing to read your archives");
     2971    mvaddstr_and_log_it(g_currentY, 0, _("Preparing to read your archives"));
    29722972    if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    29732973        mount_cdrom(bkpinfo);
    29742974        mvaddstr_and_log_it(g_currentY++, 0,
    2975                             "Restoring OS and data from streaming media");
     2975                            _("Restoring OS and data from streaming media"));
    29762976        if (bkpinfo->backup_media_type == cdstream) {
    29772977            openin_cdstream(bkpinfo);
     
    29902990    } else {
    29912991        mvaddstr_and_log_it(g_currentY++, 0,
    2992                             "Restoring OS and data from CD       ");
     2992                            _("Restoring OS and data from CD       "));
    29932993        mount_cdrom(bkpinfo);
    29942994        resA = restore_all_tarballs_from_CD(bkpinfo, filelist);
     
    29972997    chdir(cwd);
    29982998    if (resA + resB) {
    2999         log_to_screen("Errors occurred while data was being restored.");
     2999        log_to_screen(_("Errors occurred while data was being restored."));
    30003000    }
    30013001    if (length_of_file("/etc/raidtab") > 0) {
     
    31083108        retval++;
    31093109        log_to_screen
    3110             ("Error(s) occurred while processing filelist and wildcard");
     3110            (_("Error(s) occurred while processing filelist and wildcard"));
    31113111    }
    31123112    iamhere("FIXME");
     
    32033203   *                                                                        *
    32043204   **************************************************************************/
     3205
     3206#ifdef ENABLE_NLS
     3207    setlocale(LC_ALL, "");
     3208    (void) textdomain("mondo");
     3209#endif
     3210
    32053211    if (getuid() != 0) {
    3206         fprintf(stderr, "Please run as root.\r\n");
     3212        fprintf(stderr, _("Please run as root.\n"));
    32073213        exit(127);
    32083214    }
     
    33493355        strcpy(bkpinfo->restore_path, "/tmp/TESTING");
    33503356        bkpinfo->backup_media_type = dvd;
    3351         open_progress_form("Reassembling /dev/hda1",
    3352                            "Shark is a bit of a silly person.",
    3353                            "Please wait. This may take some time.",
     3357        open_progress_form(_("Reassembling /dev/hda1"),
     3358                           _("Shark is a bit of a silly person."),
     3359                           _("Please wait. This may take some time."),
    33543360                           "", 1999);
    33553361        system("rm -Rf /tmp/*pih*");
     
    34273433        retval = run_grub(FALSE, "/dev/hda");
    34283434        if (retval) {
    3429             log_to_screen("Failed to write Master Boot Record");
     3435            log_to_screen(_("Failed to write Master Boot Record"));
    34303436        }
    34313437        paranoid_MR_finish(0);
     
    34383444        if (argc != 1) {
    34393445            popup_and_OK
    3440                 ("Live mode doesn't support command-line parameters yet.");
     3446                (_("Live mode doesn't support command-line parameters yet."));
    34413447            paranoid_MR_finish(1);
    34423448//    return(1);
     
    34703476        log_msg(2, "FYI, MOUNTLIST_FNAME = %s ", g_mountlist_fname);
    34713477        if (argc == 3 && strcmp(argv[1], "--monitas-memorex") == 0) {
    3472             log_to_screen("Uh, that hasn't been implemented yet.");
     3478            log_to_screen(_("Uh, that hasn't been implemented yet."));
    34733479            paranoid_MR_finish(1);
    34743480        }
     
    34993505        if (retval) {
    35003506            log_to_screen
    3501                 ("Warning - load_raidtab_into_raidlist returned an error");
     3507                (_("Warning - load_raidtab_into_raidlist returned an error"));
    35023508        }
    35033509
     
    35533559            }
    35543560            if (retval) {
    3555                 log_to_screen("Failed to write Master Boot Record");
     3561                log_to_screen(_("Failed to write Master Boot Record"));
    35563562            }
    35573563        } else if (argc == 2 && strcmp(argv[1], "--isonuke") == 0) {
     
    35593565            retval = iso_mode(bkpinfo, mountlist, raidlist, TRUE);
    35603566        } else if (argc != 1) {
    3561             log_to_screen("Invalid paremeters");
     3567            log_to_screen(_("Invalid paremeters"));
    35623568            paranoid_MR_finish(1);
    35633569        } else {
     
    35713577        if (does_file_exist("/tmp/changed.files")) {
    35723578            log_to_screen
    3573                 ("See /tmp/changed.files for list of files that have changed.");
     3579                (_("See /tmp/changed.files for list of files that have changed."));
    35743580        }
    35753581        mvaddstr_and_log_it(g_currentY++,
    35763582                            0,
    3577                             "Run complete. Errors were reported. Please review the logfile.");
     3583                            _("Run complete. Errors were reported. Please review the logfile."));
    35783584    } else {
    35793585        if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    35803586            mvaddstr_and_log_it(g_currentY++,
    35813587                                0,
    3582                                 "Run complete. Please remove floppy/CD/media and reboot.");
     3588                                _("Run complete. Please remove floppy/CD/media and reboot."));
    35833589        } else {
    35843590            run_program_and_log_output("sync", FALSE);
     
    36013607            mvaddstr_and_log_it(g_currentY++,
    36023608                                0,
    3603                                 "Run complete. Please remove media and reboot.");
     3609                                _("Run complete. Please remove media and reboot."));
    36043610        }
    36053611    }
     
    36113617            if (mount_all_devices(mountlist, TRUE)) {
    36123618                log_to_screen
    3613                     ("Unable to re-mount partitions for post-nuke stuff");
     3619                    (_("Unable to re-mount partitions for post-nuke stuff"));
    36143620            } else {
    36153621                log_msg(1, "Re-mounted partitions for post-nuke stuff");
     
    36443650    run_program_and_log_output(tmp, FALSE);
    36453651    log_to_screen
    3646         ("Restore log copied to /tmp/mondo-restore.log on your hard disk");
     3652        (_("Restore log copied to /tmp/mondo-restore.log on your hard disk"));
    36473653    sprintf(tmp,
    3648             "Mondo-restore is exiting (retval=%d)                                      ",
     3654            _("Mondo-restore is exiting (retval=%d)                                      "),
    36493655            retval);
    36503656    log_to_screen(tmp);
Note: See TracChangeset for help on using the changeset viewer.