Ignore:
Timestamp:
Apr 28, 2006, 12:34:03 AM (14 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-tools.c

    r424 r497  
    271271        newtSuspend();
    272272#endif
    273     printf("ASSERTION FAILED: `%s'\n", exp);
    274     printf("\tat %s:%d in %s\n\n", file, line, function);
    275     printf("(I)gnore, ignore (A)ll, (D)ebug, a(B)ort, or (E)xit? ");
     273    printf(_("ASSERTION FAILED: `%s'\n"), exp);
     274    printf(_("\tat %s:%d in %s\n\n"), file, line, function);
     275    printf(_("(I)gnore, ignore (A)ll, (D)ebug, a(B)ort, or (E)xit? "));
    276276    do {
    277277        is_valid = TRUE;
     
    300300        case '\n':
    301301            printf
    302                 ("(I)gnore, ignore (A)ll, (D)ebug, a(B)ort, or (E)xit? ");
     302                (_("(I)gnore, ignore (A)ll, (D)ebug, a(B)ort, or (E)xit? "));
    303303            break;
    304304        default:
    305305            is_valid = FALSE;
    306             printf("Invalid choice.\n");
     306            printf(_("Invalid choice.\n"));
    307307            break;
    308308        }
     
    10691069    if (atol(tmp) < 35000) {
    10701070        retval++;
    1071         log_to_screen("You must have at least 32MB of RAM to use Mondo.");
     1071        log_to_screen(_("You must have at least 32MB of RAM to use Mondo."));
    10721072    }
    10731073    if (atol(tmp) < 66000) {
    10741074        log_to_screen
    1075             ("WARNING! You have very little RAM. Please upgrade to 64MB or more.");
     1075            (_("WARNING! You have very little RAM. Please upgrade to 64MB or more."));
    10761076    }
    10771077#endif
     
    11001100        ("grep ramdisk /proc/devices", FALSE)) {
    11011101        if (!ask_me_yes_or_no
    1102             ("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?"))
     1102            (_("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?")))
    11031103        {
    11041104            //          retval++;
    11051105            log_to_screen
    1106                 ("It looks as if your kernel lacks ramdisk and initrd support.");
     1106                (_("It looks as if your kernel lacks ramdisk and initrd support."));
    11071107            log_to_screen
    1108                 ("I'll allow you to proceed but FYI, if I'm right, your kernel is broken.");
     1108                (_("I'll allow you to proceed but FYI, if I'm right, your kernel is broken."));
    11091109        }
    11101110    }
     
    11281128        !run_program_and_log_output
    11291129        ("mount | grep -w dos | grep -v /dev/fd | grep -v nexdisk", 0)) {
    1130         log_to_screen("I think you have a Windows 9x partition.");
     1130        log_to_screen(_("I think you have a Windows 9x partition."));
    11311131        retval += whine_if_not_found("parted");
    11321132#ifndef __IA64__
     
    11341134        // retval +=
    11351135        if (!find_home_of_exe("ms-sys")) {
    1136             log_to_screen("Please install ms-sys just in case.");
     1136            log_to_screen(_("Please install ms-sys just in case."));
    11371137        }
    11381138#endif
     
    11441144        } else {
    11451145            log_to_screen
    1146                 ("Your system lacks the 'cmp' binary. I'll create a dummy cmp for you.");
     1146                (_("Your system lacks the 'cmp' binary. I'll create a dummy cmp for you."));
    11471147            if (run_program_and_log_output
    11481148                ("cp -f `which true` /usr/bin/cmp", 0)) {
     
    11591159        if (strstr(tmp, "autofs")) {
    11601160            log_to_screen
    1161                 ("Your CD-ROM is mounted via autofs. I therefore cannot tell");
     1161                (_("Your CD-ROM is mounted via autofs. I therefore cannot tell"));
    11621162            log_to_screen
    1163                 ("if a CD actually is inserted. If a CD is inserted, please");
    1164             log_to_screen("eject it. Thank you.");
     1163                (_("if a CD actually is inserted. If a CD is inserted, please"));
     1164            log_to_screen(_("eject it. Thank you."));
    11651165            log_it
    11661166                ("Ignoring autofs CD-ROM 'mount' since we hope nothing's in it.");
     
    11881188            retval++;
    11891189            log_to_screen
    1190                 ("Please find out what happened to /etc/modules.conf");
     1190                (_("Please find out what happened to /etc/modules.conf"));
    11911191        }
    11921192    }
     
    12011201
    12021202    if (run_program_and_log_output("mindi -V", 1)) {
    1203         log_to_screen("Could not ascertain mindi's version number.");
     1203        log_to_screen(_("Could not ascertain mindi's version number."));
    12041204        log_to_screen
    1205             ("You have not installed Mondo and/or Mindi properly.");
    1206         log_to_screen("Please uninstall and reinstall them both.");
     1205            (_("You have not installed Mondo and/or Mindi properly."));
     1206        log_to_screen(_("Please uninstall and reinstall them both."));
    12071207        fatal_error("Please reinstall Mondo and Mindi.");
    12081208    }
     
    12101210        ("mindi --makemountlist /tmp/mountlist.txt.test", 5)) {
    12111211        log_to_screen
    1212             ("Mindi --makemountlist /tmp/mountlist.txt.test failed for some reason.");
     1212            (_("Mindi --makemountlist /tmp/mountlist.txt.test failed for some reason."));
    12131213        log_to_screen
    1214             ("Please run that command by hand and examine /var/log/mindi.log");
     1214            (_("Please run that command by hand and examine /var/log/mindi.log"));
    12151215        log_to_screen
    1216             ("for more information. Perhaps your /etc/fstab file is insane.");
     1216            (_("for more information. Perhaps your /etc/fstab file is insane."));
    12171217        log_to_screen
    1218             ("Perhaps Mindi's MakeMountlist() subroutine has a bug. We'll see.");
     1218            (_("Perhaps Mindi's MakeMountlist() subroutine has a bug. We'll see."));
    12191219        retval++;
    12201220    }
     
    12231223        && !does_file_exist("/etc/raidtab")) {
    12241224        log_to_screen
    1225             ("You have RAID partitions but no /etc/raidtab - creating one from /proc/mdstat");
     1225            (_("You have RAID partitions but no /etc/raidtab - creating one from /proc/mdstat"));
    12261226        create_raidtab_from_mdstat("/etc/raidtab", "/proc/mdstat");
    12271227    }
    12281228
    12291229    if (retval) {
    1230         mvaddstr_and_log_it(g_currentY++, 74, "Failed.");
     1230        mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));
    12311231    } else {
    1232         mvaddstr_and_log_it(g_currentY++, 74, "Done.");
     1232        mvaddstr_and_log_it(g_currentY++, 74, _("Done."));
    12331233    }
    12341234    return (retval);
Note: See TracChangeset for help on using the changeset viewer.