Changeset 541 in MondoRescue for branches/stable/mondo/mondo/mondorestore/mondo-prep.c
- Timestamp:
- May 13, 2006, 8:47:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/mondo/mondorestore/mondo-prep.c
r497 r541 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); … … 1656 1656 if (current_devno == 5 && previous_devno == 4) { 1657 1657 log_to_screen 1658 ( _("You must leave at least one partition spare as the Extended partition."));1658 ("You must leave at least one partition spare as the Extended partition."); 1659 1659 paranoid_free(device_str); 1660 1660 paranoid_free(format); … … 1674 1674 if (system(tmp)) { 1675 1675 log_to_screen 1676 ( _("Warning! Unable to make the slice bootable."));1676 ("Warning! Unable to make the slice bootable."); 1677 1677 } 1678 1678 } … … 1702 1702 g_partition_table_locked_up++; 1703 1703 log_to_screen 1704 ( _("A flaw in the Linux kernel has locked the partition table."));1704 ("A flaw in the Linux kernel has locked the partition table."); 1705 1705 } 1706 1706 } … … 1775 1775 1776 1776 if (is_this_device_mounted(partition_name)) { 1777 sprintf(tmp, _("%s is mounted, and should not be partitioned"),1777 sprintf(tmp, "%s is mounted, and should not be partitioned", 1778 1778 partition_name); 1779 1779 log_to_screen(tmp); … … 1812 1812 if (prev_partno >= 4) { 1813 1813 log_to_screen 1814 ( _("You need to leave at least one partition free, for 'extended/logical'"));1814 ("You need to leave at least one partition free, for 'extended/logical'"); 1815 1815 paranoid_free(program); 1816 1816 paranoid_free(partition_name); … … 2002 2002 */ 2003 2003 2004 open_progress_form( _("Partitioning devices"),2005 _("I am now going to partition all your drives."),2006 _("This should not take more than five minutes."), "",2004 open_progress_form("Partitioning devices", 2005 "I am now going to partition all your drives.", 2006 "This should not take more than five minutes.", "", 2007 2007 mountlist->entries); 2008 2008 … … 2016 2016 close_progress_form(); 2017 2017 if (retval) { 2018 mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));2018 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 2019 2019 log_to_screen 2020 ( _("Errors occurred during the partitioning of your hard drives."));2020 ("Errors occurred during the partitioning of your hard drives."); 2021 2021 } else { 2022 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));2022 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 2023 2023 paranoid_system("rm -f /tmp/fdisk*.log 2> /dev/null"); 2024 2024 } … … 2532 2532 return; 2533 2533 } 2534 sprintf(tmp, _("Expanding entries to suit drive %s (%ld MB)"), drive_name,2534 sprintf(tmp, "Expanding entries to suit drive %s (%ld MB)", drive_name, 2535 2535 current_size_of_drive); 2536 2536 log_to_screen(tmp); … … 2551 2551 2552 2552 if (original_size_of_drive <= 0) { 2553 sprintf(tmp, _("Cannot resize %s's entries. Drive not found."),2553 sprintf(tmp, "Cannot resize %s's entries. Drive not found.", 2554 2554 drive_name); 2555 2555 log_to_screen(tmp); … … 2581 2581 newsizL = (long) new_size; 2582 2582 } 2583 sprintf(tmp, _("Changing %s from %lld KB to %ld KB"),2583 sprintf(tmp, "Changing %s from %lld KB to %ld KB", 2584 2584 drivemntlist->el[partno]->device, 2585 2585 drivemntlist->el[partno]->size, newsizL); … … 2588 2588 } 2589 2589 final_size = get_phys_size_of_drive(drive_name); 2590 sprintf(tmp, _("final_size = %ld MB"), final_size);2590 sprintf(tmp, "final_size = %ld MB", final_size); 2591 2591 paranoid_free(tmp); 2592 2592 log_to_screen(tmp); … … 2629 2629 device); 2630 2630 } 2631 log_to_screen( _("Mountlist adjusted to suit current hard drive(s)"));2631 log_to_screen("Mountlist adjusted to suit current hard drive(s)"); 2632 2632 paranoid_free(drivelist); 2633 2633 }
Note:
See TracChangeset
for help on using the changeset viewer.