Changeset 507 in MondoRescue for trunk/mondo/mondo/mondorestore/mondo-prep.c
- Timestamp:
- Apr 30, 2006, 2:04:16 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/mondorestore/mondo-prep.c
r197 r507 239 239 // zero & reboot 240 240 log_to_screen 241 ( "I am sorry for the inconvenience but I must ask you to reboot.");241 (_("I am sorry for the inconvenience but I must ask you to reboot.")); 242 242 log_to_screen 243 ( "I need to reset the Master Boot Record; in order to be");243 (_("I need to reset the Master Boot Record; in order to be")); 244 244 log_to_screen 245 ( "sure the kernel notices, I must reboot after doing it.");245 (_("sure the kernel notices, I must reboot after doing it.")); 246 246 log_to_screen("Please hit 'Enter' to reboot."); 247 247 for (lino = 0; lino < drivelist->entries; lino++) { … … 269 269 system("sync"); 270 270 popup_and_OK 271 ( "I must now reboot. Please leave the boot media in the drive and repeat your actions - e.g. type 'nuke' - and it should work fine.");271 (_("I must now reboot. Please leave the boot media in the drive and repeat your actions - e.g. type 'nuke' - and it should work fine.")); 272 272 system("reboot"); 273 273 } … … 615 615 #ifdef __FreeBSD__ 616 616 log_to_screen 617 ( "I don't know how to extrapolate the mountlist on FreeBSD. Sorry.");617 (_("I don't know how to extrapolate the mountlist on FreeBSD. Sorry.")); 618 618 return (1); 619 619 #endif … … 624 624 if (!does_file_exist("/etc/raidtab")) { 625 625 log_to_screen 626 ( "Cannot find /etc/raidtab - cannot extrapolate the fdisk entries");626 (_("Cannot find /etc/raidtab - cannot extrapolate the fdisk entries")); 627 627 finish(1); 628 628 } … … 749 749 } 750 750 if (is_this_device_mounted(device)) { 751 sprintf(tmp, "%s is mounted - cannot format it ", device);751 sprintf(tmp, _("%s is mounted - cannot format it "), device); 752 752 log_to_screen(tmp); 753 753 paranoid_free(program); … … 761 761 if (!does_file_exist("/tmp/raidconf.txt")) { 762 762 log_to_screen 763 ( "/tmp/raidconf.txt does not exist. I therefore cannot start Vinum.");763 (_("/tmp/raidconf.txt does not exist. I therefore cannot start Vinum.")); 764 764 } else { 765 765 int res; … … 769 769 if (res) { 770 770 log_to_screen 771 ( "`vinum create /tmp/raidconf.txt' returned errors. Please fix them and re-run mondorestore.");771 (_("`vinum create /tmp/raidconf.txt' returned errors. Please fix them and re-run mondorestore.")); 772 772 finish(1); 773 773 } … … 780 780 char line[MAX_STR_LEN]; 781 781 sprintf(tmp, 782 "Initializing Vinum device %s (this may take a *long* time)",782 _("Initializing Vinum device %s (this may take a *long* time)"), 783 783 device); 784 784 log_to_screen(tmp); … … 823 823 } 824 824 #else 825 sprintf(tmp, "Initializing RAID device %s", device);825 sprintf(tmp, _("Initializing RAID device %s"), device); 826 826 log_to_screen(tmp); 827 827 828 828 // Shouldn't be necessary. 829 log_to_screen( "Stopping %s", device);829 log_to_screen(_("Stopping %s"), device); 830 830 stop_raid_device(device); 831 831 system("sync"); … … 900 900 retval += res; 901 901 if (retval) { 902 strcat(tmp, "...failed");902 strcat(tmp, _("...failed")); 903 903 } else { 904 strcat(tmp, "...OK");904 strcat(tmp, _("...OK")); 905 905 } 906 906 … … 951 951 (interactively) ? "true" : "false"); 952 952 log_it(tmp); 953 mvaddstr_and_log_it(g_currentY, 0, "Formatting partitions ");954 open_progress_form( "Formatting partitions",955 "I am now formatting your hard disk partitions.",956 "This may take up to five minutes.", "",953 mvaddstr_and_log_it(g_currentY, 0, _("Formatting partitions ")); 954 open_progress_form(_("Formatting partitions"), 955 _("I am now formatting your hard disk partitions."), 956 _("This may take up to five minutes."), "", 957 957 mountlist->entries + 1); 958 958 … … 1001 1001 if (does_file_exist("/tmp/i-want-my-lvm")) { 1002 1002 wait_until_software_raids_are_prepped("/proc/mdstat", 10); 1003 log_to_screen( "Configuring LVM");1003 log_to_screen(_("Configuring LVM")); 1004 1004 if (!g_text_mode) { 1005 1005 newtSuspend(); … … 1092 1092 1093 1093 if (retval) { 1094 mvaddstr_and_log_it(g_currentY++, 74, "Failed.");1094 mvaddstr_and_log_it(g_currentY++, 74, _("Failed.")); 1095 1095 log_to_screen 1096 ( "Errors occurred during the formatting of your hard drives.");1096 (_("Errors occurred during the formatting of your hard drives.")); 1097 1097 } else { 1098 mvaddstr_and_log_it(g_currentY++, 74, "Done.");1098 mvaddstr_and_log_it(g_currentY++, 74, _("Done.")); 1099 1099 } 1100 1100 … … 1107 1107 //123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 1108 1108 log_to_screen 1109 ( "Partition table locked up %d times. At least one 'mkfs' (format) command",1109 (_("Partition table locked up %d times. At least one 'mkfs' (format) command"), 1110 1110 g_partition_table_locked_up); 1111 1111 log_to_screen 1112 ( "failed. I think these two events are related. Sometimes, fdisk's ioctl() call");1112 (_("failed. I think these two events are related. Sometimes, fdisk's ioctl() call")); 1113 1113 log_to_screen 1114 ( "to refresh its copy of the partition table causes the kernel to lock the ");1114 (_("to refresh its copy of the partition table causes the kernel to lock the ")); 1115 1115 log_to_screen 1116 ( "partition table. I believe this has just happened.");1116 (_("partition table. I believe this has just happened.")); 1117 1117 if (ask_me_yes_or_no 1118 ( "Please choose 'yes' to reboot and try again; or 'no' to ignore this warning and continue."))1118 (_("Please choose 'yes' to reboot and try again; or 'no' to ignore this warning and continue."))) 1119 1119 { 1120 1120 system("sync"); … … 1125 1125 } else { 1126 1126 log_to_screen 1127 ( "Partition table locked up %d time%c. However, disk formatting succeeded.",1127 (_("Partition table locked up %d time%c. However, disk formatting succeeded."), 1128 1128 g_partition_table_locked_up, 1129 1129 (g_partition_table_locked_up == 1) ? '.' : 's'); … … 1528 1528 pout_to_fdisk = popen(tmp, "w"); 1529 1529 if (!pout_to_fdisk) { 1530 log_to_screen( "Cannot call parted2fdisk to configure %s", drivename);1530 log_to_screen(_("Cannot call parted2fdisk to configure %s"), drivename); 1531 1531 paranoid_free(device_str); 1532 1532 paranoid_free(format); … … 1564 1564 if (system(command)) { 1565 1565 log_to_screen 1566 ( "Warning! Unable to make the drive bootable.");1566 (_("Warning! Unable to make the drive bootable.")); 1567 1567 } 1568 1568 paranoid_free(device_str); … … 1614 1614 if (!file) { 1615 1615 sprintf(tmp, 1616 "Warning - unable to open %s for wiping it's partition table",1616 _("Warning - unable to open %s for wiping it's partition table"), 1617 1617 drivename); 1618 1618 log_to_screen(tmp); … … 1621 1621 for (i = 0; i < 512; i++) { 1622 1622 if (!write(file, "\0", 1)) { 1623 sprintf(tmp, "Warning - unable to write to %s",1623 sprintf(tmp, _("Warning - unable to write to %s"), 1624 1624 drivename); 1625 1625 log_to_screen(tmp); … … 1655 1655 if (current_devno == 5 && previous_devno == 4) { 1656 1656 log_to_screen 1657 ( "You must leave at least one partition spare as the Extended partition.");1657 (_("You must leave at least one partition spare as the Extended partition.")); 1658 1658 paranoid_free(device_str); 1659 1659 paranoid_free(format); … … 1672 1672 if (system(tmp)) { 1673 1673 log_to_screen 1674 ( "Warning! Unable to make the slice bootable.");1674 (_("Warning! Unable to make the slice bootable.")); 1675 1675 } 1676 1676 } … … 1700 1700 g_partition_table_locked_up++; 1701 1701 log_to_screen 1702 ( "A flaw in the Linux kernel has locked the partition table.");1702 (_("A flaw in the Linux kernel has locked the partition table.")); 1703 1703 } 1704 1704 } … … 1773 1773 1774 1774 if (is_this_device_mounted(partition_name)) { 1775 sprintf(tmp, "%s is mounted, and should not be partitioned",1775 sprintf(tmp, _("%s is mounted, and should not be partitioned"), 1776 1776 partition_name); 1777 1777 log_to_screen(tmp); … … 1810 1810 if (prev_partno >= 4) { 1811 1811 log_to_screen 1812 ( "You need to leave at least one partition free, for 'extended/logical'");1812 (_("You need to leave at least one partition free, for 'extended/logical'")); 1813 1813 paranoid_free(program); 1814 1814 paranoid_free(partition_name); … … 2001 2001 */ 2002 2002 2003 open_progress_form( "Partitioning devices",2004 "I am now going to partition all your drives.",2005 "This should not take more than five minutes.", "",2003 open_progress_form(_("Partitioning devices"), 2004 _("I am now going to partition all your drives."), 2005 _("This should not take more than five minutes."), "", 2006 2006 mountlist->entries); 2007 2007 … … 2015 2015 close_progress_form(); 2016 2016 if (retval) { 2017 mvaddstr_and_log_it(g_currentY++, 74, "Failed.");2017 mvaddstr_and_log_it(g_currentY++, 74, _("Failed.")); 2018 2018 log_to_screen 2019 ( "Errors occurred during the partitioning of your hard drives.");2019 (_("Errors occurred during the partitioning of your hard drives.")); 2020 2020 } else { 2021 mvaddstr_and_log_it(g_currentY++, 74, "Done.");2021 mvaddstr_and_log_it(g_currentY++, 74, _("Done.")); 2022 2022 paranoid_system("rm -f /tmp/fdisk*.log 2> /dev/null"); 2023 2023 } … … 2531 2531 return; 2532 2532 } 2533 sprintf(tmp, "Expanding entries to suit drive %s (%ld MB)", drive_name,2533 sprintf(tmp, _("Expanding entries to suit drive %s (%ld MB)"), drive_name, 2534 2534 current_size_of_drive); 2535 2535 log_to_screen(tmp); … … 2550 2550 2551 2551 if (original_size_of_drive <= 0) { 2552 sprintf(tmp, "Cannot resize %s's entries. Drive not found.",2552 sprintf(tmp, _("Cannot resize %s's entries. Drive not found."), 2553 2553 drive_name); 2554 2554 log_to_screen(tmp); … … 2580 2580 newsizL = (long) new_size; 2581 2581 } 2582 sprintf(tmp, "Changing %s from %lld KB to %ld KB",2582 sprintf(tmp, _("Changing %s from %lld KB to %ld KB"), 2583 2583 drivemntlist->el[partno]->device, 2584 2584 drivemntlist->el[partno]->size, newsizL); … … 2587 2587 } 2588 2588 final_size = get_phys_size_of_drive(drive_name); 2589 sprintf(tmp, "final_size = %ld MB", final_size);2589 sprintf(tmp, _("final_size = %ld MB"), final_size); 2590 2590 log_to_screen(tmp); 2591 2591 paranoid_free(tmp); … … 2628 2628 device); 2629 2629 } 2630 log_to_screen( "Mountlist adjusted to suit current hard drive(s)");2630 log_to_screen(_("Mountlist adjusted to suit current hard drive(s)")); 2631 2631 paranoid_free(drivelist); 2632 2632 }
Note:
See TracChangeset
for help on using the changeset viewer.