Changeset 507 in MondoRescue for trunk/mondo/mondo/common/libmondo-tools.c


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/common/libmondo-tools.c

    r426 r507  
    1010#include "my-stuff.h"
    1111#include "mondostructures.h"
    12 #include "lib-common-externs.h"
    1312#include "libmondo-tools.h"
    14 #include "libmondo-gui-EXT.h"
     13#include "newt-specific-EXT.h"
    1514#include "libmondo-files-EXT.h"
    1615#include "libmondo-fork-EXT.h"
     
    109108        newtSuspend();
    110109#endif
    111     printf("ASSERTION FAILED: `%s'\n", exp);
    112     printf("\tat %s:%d in %s\n\n", file, line, function);
    113     printf("(I)gnore, ignore (A)ll, (D)ebug, a(B)ort, or (E)xit? ");
     110    printf(_("ASSERTION FAILED: `%s'\n"), exp);
     111    printf(_("\tat %s:%d in %s\n\n"), file, line, function);
     112    printf(_("(I)gnore, ignore (A)ll, (D)ebug, a(B)ort, or (E)xit? "));
    114113    do {
    115114        is_valid = TRUE;
     
    138137        case '\n':
    139138            printf
    140                 ("(I)gnore, ignore (A)ll, (D)ebug, a(B)ort, or (E)xit? ");
     139                (_("(I)gnore, ignore (A)ll, (D)ebug, a(B)ort, or (E)xit? "));
    141140            break;
    142141        default:
    143142            is_valid = FALSE;
    144             printf("Invalid choice.\n");
     143            printf(_("Invalid choice.\n"));
    145144            break;
    146145        }
     
    840839    if (atol(tmp) < 35000) {
    841840        retval++;
    842         log_to_screen("You must have at least 32MB of RAM to use Mondo.");
     841        log_to_screen(_("You must have at least 32MB of RAM to use Mondo."));
    843842    }
    844843    if (atol(tmp) < 66000) {
    845844        log_to_screen
    846             ("WARNING! You have very little RAM. Please upgrade to 64MB or more.");
     845            (_("WARNING! You have very little RAM. Please upgrade to 64MB or more."));
    847846    }
    848847    paranoid_free(tmp);
     
    872871        ("grep ramdisk /proc/devices", FALSE)) {
    873872        if (!ask_me_yes_or_no
    874             ("Your kernel has no ramdisk support. That's mind-numbingly stupid but I'll allow it if you're planning to use a failsafe kernel. Are you?"))
     873            (_("Your kernel has no ramdisk support. That's mind-numbingly stupid but I'll allow it if you're planning to use a failsafe kernel. Are you?")))
    875874        {
    876875            //          retval++;
    877876            log_to_screen
    878                 ("It looks as if your kernel lacks ramdisk and initrd support.");
     877                (_("It looks as if your kernel lacks ramdisk and initrd support."));
    879878            log_to_screen
    880                 ("I'll allow you to proceed but FYI, if I'm right, your kernel is broken.");
     879                (_("I'll allow you to proceed but FYI, if I'm right, your kernel is broken."));
    881880        }
    882881    }
     
    900899        !run_program_and_log_output
    901900        ("mount | grep -w dos | grep -v /dev/fd | grep -v nexdisk", 0)) {
    902         log_to_screen("I think you have a Windows 9x partition.");
     901        log_to_screen(_("I think you have a Windows 9x partition."));
    903902        retval += whine_if_not_found("parted");
    904903#ifndef __IA64__
     
    906905        // retval +=
    907906        if (!find_home_of_exe("ms-sys")) {
    908             log_to_screen("Please install ms-sys just in case.");
     907            log_to_screen(_("Please install ms-sys just in case."));
    909908        }
    910909#endif
     
    916915        } else {
    917916            log_to_screen
    918                 ("Your system lacks the 'cmp' binary. I'll create a dummy cmp for you.");
     917                (_("Your system lacks the 'cmp' binary. I'll create a dummy cmp for you."));
    919918            if (run_program_and_log_output
    920919                ("cp -f `which true` /usr/bin/cmp", 0)) {
     
    931930        if (strstr(tmp, "autofs")) {
    932931            log_to_screen
    933                 ("Your CD-ROM is mounted via autofs. I therefore cannot tell");
     932                (_("Your CD-ROM is mounted via autofs. I therefore cannot tell"));
    934933            log_to_screen
    935                 ("if a CD actually is inserted. If a CD is inserted, please");
    936             log_to_screen("eject it. Thank you.");
     934                (_("if a CD actually is inserted. If a CD is inserted, please"));
     935            log_to_screen(_("eject it. Thank you."));
    937936            log_it
    938937                ("Ignoring autofs CD-ROM 'mount' since we hope nothing's in it.");
     
    961960            retval++;
    962961            log_to_screen
    963                 ("Please find out what happened to /etc/modules.conf");
     962                (_("Please find out what happened to /etc/modules.conf"));
    964963        }
    965964    }
     
    974973
    975974    if (run_program_and_log_output("mindi -V", 1)) {
    976         log_to_screen("Could not ascertain mindi's version number.");
     975        log_to_screen(_("Could not ascertain mindi's version number."));
    977976        log_to_screen
    978             ("You have not installed Mondo and/or Mindi properly.");
    979         log_to_screen("Please uninstall and reinstall them both.");
     977            (_("You have not installed Mondo and/or Mindi properly."));
     978        log_to_screen(_("Please uninstall and reinstall them both."));
    980979        fatal_error("Please reinstall Mondo and Mindi.");
    981980    }
     
    983982        ("mindi --makemountlist /tmp/mountlist.txt.test", 5)) {
    984983        log_to_screen
    985             ("Mindi --makemountlist /tmp/mountlist.txt.test failed for some reason.");
     984            (_("Mindi --makemountlist /tmp/mountlist.txt.test failed for some reason."));
    986985        log_to_screen
    987             ("Please run that command by hand and examine /var/log/mindi.log");
     986            (_("Please run that command by hand and examine /var/log/mindi.log"));
    988987        log_to_screen
    989             ("for more information. Perhaps your /etc/fstab file is insane.");
     988            (_("for more information. Perhaps your /etc/fstab file is insane."));
    990989        log_to_screen
    991             ("Perhaps Mindi's MakeMountlist() subroutine has a bug. We'll see.");
     990            (_("Perhaps Mindi's MakeMountlist() subroutine has a bug. We'll see."));
    992991        retval++;
    993992    }
     
    996995        && !does_file_exist("/etc/raidtab")) {
    997996        log_to_screen
    998             ("You have RAID partitions but no /etc/raidtab - creating one from /proc/mdstat");
     997            (_("You have RAID partitions but no /etc/raidtab - creating one from /proc/mdstat"));
    999998        create_raidtab_from_mdstat("/etc/raidtab", "/proc/mdstat");
    1000999    }
    10011000
    10021001    if (retval) {
    1003         mvaddstr_and_log_it(g_currentY++, 74, "Failed.");
     1002        mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));
    10041003    } else {
    1005         mvaddstr_and_log_it(g_currentY++, 74, "Done.");
     1004        mvaddstr_and_log_it(g_currentY++, 74, _("Done."));
    10061005    }
    10071006    return (retval);
Note: See TracChangeset for help on using the changeset viewer.