Changeset 507 in MondoRescue for trunk/mondo/mondo/common/libmondo-tools.c
- Timestamp:
- Apr 30, 2006, 2:04:16 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-tools.c
r426 r507 10 10 #include "my-stuff.h" 11 11 #include "mondostructures.h" 12 #include "lib-common-externs.h"13 12 #include "libmondo-tools.h" 14 #include " libmondo-gui-EXT.h"13 #include "newt-specific-EXT.h" 15 14 #include "libmondo-files-EXT.h" 16 15 #include "libmondo-fork-EXT.h" … … 109 108 newtSuspend(); 110 109 #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? ")); 114 113 do { 115 114 is_valid = TRUE; … … 138 137 case '\n': 139 138 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? ")); 141 140 break; 142 141 default: 143 142 is_valid = FALSE; 144 printf( "Invalid choice.\n");143 printf(_("Invalid choice.\n")); 145 144 break; 146 145 } … … 840 839 if (atol(tmp) < 35000) { 841 840 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.")); 843 842 } 844 843 if (atol(tmp) < 66000) { 845 844 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.")); 847 846 } 848 847 paranoid_free(tmp); … … 872 871 ("grep ramdisk /proc/devices", FALSE)) { 873 872 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?"))) 875 874 { 876 875 // retval++; 877 876 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.")); 879 878 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.")); 881 880 } 882 881 } … … 900 899 !run_program_and_log_output 901 900 ("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.")); 903 902 retval += whine_if_not_found("parted"); 904 903 #ifndef __IA64__ … … 906 905 // retval += 907 906 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.")); 909 908 } 910 909 #endif … … 916 915 } else { 917 916 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.")); 919 918 if (run_program_and_log_output 920 919 ("cp -f `which true` /usr/bin/cmp", 0)) { … … 931 930 if (strstr(tmp, "autofs")) { 932 931 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")); 934 933 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.")); 937 936 log_it 938 937 ("Ignoring autofs CD-ROM 'mount' since we hope nothing's in it."); … … 961 960 retval++; 962 961 log_to_screen 963 ( "Please find out what happened to /etc/modules.conf");962 (_("Please find out what happened to /etc/modules.conf")); 964 963 } 965 964 } … … 974 973 975 974 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.")); 977 976 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.")); 980 979 fatal_error("Please reinstall Mondo and Mindi."); 981 980 } … … 983 982 ("mindi --makemountlist /tmp/mountlist.txt.test", 5)) { 984 983 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.")); 986 985 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")); 988 987 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.")); 990 989 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.")); 992 991 retval++; 993 992 } … … 996 995 && !does_file_exist("/etc/raidtab")) { 997 996 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")); 999 998 create_raidtab_from_mdstat("/etc/raidtab", "/proc/mdstat"); 1000 999 } 1001 1000 1002 1001 if (retval) { 1003 mvaddstr_and_log_it(g_currentY++, 74, "Failed.");1002 mvaddstr_and_log_it(g_currentY++, 74, _("Failed.")); 1004 1003 } else { 1005 mvaddstr_and_log_it(g_currentY++, 74, "Done.");1004 mvaddstr_and_log_it(g_currentY++, 74, _("Done.")); 1006 1005 } 1007 1006 return (retval);
Note:
See TracChangeset
for help on using the changeset viewer.