Changeset 497 in MondoRescue for branches/stable/mondo/mondo/common/libmondo-tools.c
- Timestamp:
- Apr 28, 2006, 12:34:03 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/mondo/common/libmondo-tools.c
r424 r497 271 271 newtSuspend(); 272 272 #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? ")); 276 276 do { 277 277 is_valid = TRUE; … … 300 300 case '\n': 301 301 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? ")); 303 303 break; 304 304 default: 305 305 is_valid = FALSE; 306 printf( "Invalid choice.\n");306 printf(_("Invalid choice.\n")); 307 307 break; 308 308 } … … 1069 1069 if (atol(tmp) < 35000) { 1070 1070 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.")); 1072 1072 } 1073 1073 if (atol(tmp) < 66000) { 1074 1074 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.")); 1076 1076 } 1077 1077 #endif … … 1100 1100 ("grep ramdisk /proc/devices", FALSE)) { 1101 1101 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?"))) 1103 1103 { 1104 1104 // retval++; 1105 1105 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.")); 1107 1107 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.")); 1109 1109 } 1110 1110 } … … 1128 1128 !run_program_and_log_output 1129 1129 ("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.")); 1131 1131 retval += whine_if_not_found("parted"); 1132 1132 #ifndef __IA64__ … … 1134 1134 // retval += 1135 1135 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.")); 1137 1137 } 1138 1138 #endif … … 1144 1144 } else { 1145 1145 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.")); 1147 1147 if (run_program_and_log_output 1148 1148 ("cp -f `which true` /usr/bin/cmp", 0)) { … … 1159 1159 if (strstr(tmp, "autofs")) { 1160 1160 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")); 1162 1162 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.")); 1165 1165 log_it 1166 1166 ("Ignoring autofs CD-ROM 'mount' since we hope nothing's in it."); … … 1188 1188 retval++; 1189 1189 log_to_screen 1190 ( "Please find out what happened to /etc/modules.conf");1190 (_("Please find out what happened to /etc/modules.conf")); 1191 1191 } 1192 1192 } … … 1201 1201 1202 1202 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.")); 1204 1204 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.")); 1207 1207 fatal_error("Please reinstall Mondo and Mindi."); 1208 1208 } … … 1210 1210 ("mindi --makemountlist /tmp/mountlist.txt.test", 5)) { 1211 1211 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.")); 1213 1213 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")); 1215 1215 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.")); 1217 1217 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.")); 1219 1219 retval++; 1220 1220 } … … 1223 1223 && !does_file_exist("/etc/raidtab")) { 1224 1224 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")); 1226 1226 create_raidtab_from_mdstat("/etc/raidtab", "/proc/mdstat"); 1227 1227 } 1228 1228 1229 1229 if (retval) { 1230 mvaddstr_and_log_it(g_currentY++, 74, "Failed.");1230 mvaddstr_and_log_it(g_currentY++, 74, _("Failed.")); 1231 1231 } else { 1232 mvaddstr_and_log_it(g_currentY++, 74, "Done.");1232 mvaddstr_and_log_it(g_currentY++, 74, _("Done.")); 1233 1233 } 1234 1234 return (retval);
Note:
See TracChangeset
for help on using the changeset viewer.