Changeset 501 in MondoRescue for branches/stable/mondo/mondo/mondoarchive/mondo-cli.c
- Timestamp:
- Apr 29, 2006, 8:59:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/mondo/mondoarchive/mondo-cli.c
r477 r501 378 378 if (i == 0) { 379 379 retval++; 380 log_to_screen( "You must specify the media type\n");380 log_to_screen(_("You must specify the media type\n")); 381 381 } 382 382 if (i > 1) { 383 383 retval++; 384 log_to_screen( "Please specify only one media type\n");384 log_to_screen(_("Please specify only one media type\n")); 385 385 } 386 386 if (flag_set['K']) { … … 392 392 if (flag_set['L'] && flag_set['0']) { 393 393 retval++; 394 log_to_screen( "You cannot have 'no compression' _and_ LZOP.\n");394 log_to_screen(_("You cannot have 'no compression' _and_ LZOP.\n")); 395 395 } 396 396 bkpinfo->backup_data = flag_set['O']; 397 397 bkpinfo->verify_data = flag_set['V']; 398 398 if (flag_set['I'] && !bkpinfo->backup_data) { 399 log_to_screen( "-I switch is ignored if just verifying");399 log_to_screen(_("-I switch is ignored if just verifying")); 400 400 } 401 401 if (flag_set['E'] && !bkpinfo->backup_data) { 402 log_to_screen( "-E switch is ignored if just verifying");402 log_to_screen(_("-E switch is ignored if just verifying")); 403 403 } 404 404 … … 428 428 if (flag_set['f'] || flag_set['l']) { 429 429 log_to_screen 430 ( "You don't need to specify bootloader or bootdevice");430 (_("You don't need to specify bootloader or bootdevice")); 431 431 } 432 432 } … … 473 473 if (bkpinfo->include_paths[0] == '-') { 474 474 retval++; 475 log_to_screen( "Please supply a sensible value with '-I'\n");475 log_to_screen(_("Please supply a sensible value with '-I'\n")); 476 476 } 477 477 } … … 488 488 retval++; 489 489 log_to_screen 490 ( "Please do not use -J in combination with -I. If you want to make a list of files to backup, that's fine, use -J <filename> but please don't muddy the waters by combining -J with -I. Thanks. :-)");490 (_("Please do not use -J in combination with -I. If you want to make a list of files to backup, that's fine, use -J <filename> but please don't combine -J with -I. Thanks. :-)")); 491 491 } 492 492 bkpinfo->make_filelist = FALSE; … … 506 506 if (g_kernel_version >= 2.6 && !strstr(flag_val['d'], "/dev/")) { 507 507 log_to_screen 508 ( "Linus says 2.6 has a broken ide-scsi module. Proceed at your own risk...");508 (_("Linus says 2.6 has a broken ide-scsi module. Proceed at your own risk...")); 509 509 } 510 510 … … 522 522 if (!flag_set['L']) { 523 523 log_to_screen 524 ( "You must use -L with -C. Therefore I am setting it for you.");524 (_("You must use -L with -C. Therefore I am setting it for you.")); 525 525 flag_set['L'] = 1; 526 526 flag_val['L'][0] = '\0'; … … 552 552 flag_set['d'] = TRUE; 553 553 sprintf(tmp, 554 "You didn't specify a tape streamer device. I'm assuming %s",554 _("You didn't specify a tape streamer device. I'm assuming %s"), 555 555 flag_val['d']); 556 556 log_to_screen(tmp); … … 567 567 if (!find_dvd_device(flag_val['d'], FALSE)) { 568 568 flag_set['d'] = TRUE; 569 log_to_screen( "I guess DVD drive is at %s", flag_val['d']);569 log_to_screen(_("I guess DVD drive is at %s", flag_val['d'])); 570 570 } 571 571 } … … 586 586 strcat(flag_val['s'], "m"); 587 587 log_to_screen 588 ( "You did not specify a size (-s) for DVD. I'm guessing %s.",588 (_("You did not specify a size (-s) for DVD. I'm guessing %s."), 589 589 flag_val['s']); 590 590 flag_set['s'] = 1; … … 642 642 if (strlen(bkpinfo->isodir) < 3) { 643 643 retval++; 644 log_to_screen( "NFS share is not mounted. Please mount it.\n");644 log_to_screen(_("NFS share is not mounted. Please mount it.\n")); 645 645 } 646 646 log_msg(3, "mount = %s", bkpinfo->nfs_mount); … … 767 767 retval++; 768 768 sprintf(tmp, 769 "You specified kernel '%s', which does not exist\n",769 _("You specified kernel '%s', which does not exist\n"), 770 770 bkpinfo->kernel_path); 771 771 log_to_screen(tmp); … … 799 799 retval++; 800 800 sprintf(tmp, 801 "Are you sure directory '%s' exists in remote dir '%s'?\nIf so, do you have rights to write to it?\n",801 _("Are you sure directory '%s' exists in remote dir '%s'?\nIf so, do you have rights to write to it?\n"), 802 802 bkpinfo->nfs_remote_dir, bkpinfo->nfs_mount); 803 803 log_to_screen(tmp); … … 809 809 if (g_kernel_version >= 2.6) { 810 810 if (popup_and_get_string 811 ( "Device", "Please specify the device",811 (_("Device", "Please specify the device"), 812 812 bkpinfo->media_device, MAX_STR_LEN / 4)) { 813 813 retval++; 814 log_to_screen( "User opted to cancel.");814 log_to_screen(_("User opted to cancel.")); 815 815 } 816 816 } else if (find_cdrw_device(bkpinfo->media_device)) { 817 817 retval++; 818 818 log_to_screen 819 ( "Tried and failed to find CD-R[W] drive automatically.\n");819 (_("Tried and failed to find CD-R[W] drive automatically.\n")); 820 820 } else { 821 821 flag_set['d'] = TRUE; … … 826 826 if (!flag_set['d'] && !flag_set['n'] && !flag_set['C']) { 827 827 retval++; 828 log_to_screen( "Please specify the backup device/directory.\n");828 log_to_screen(_("Please specify the backup device/directory.\n")); 829 829 fatal_error 830 830 ("You didn't use -d to specify the backup device/directory."); … … 847 847 retval++; 848 848 log_to_screen 849 ( "Please specify a tempdir which I can write to. :)");849 (_("Please specify a tempdir which I can write to. :)")); 850 850 fatal_error("I cannot write to the tempdir you specified."); 851 851 } … … 855 855 retval++; 856 856 log_to_screen 857 ( "Please don't specify a SAMBA or VFAT or NFS tmpdir.");857 (_("Please don't specify a SAMBA or VFAT or NFS tmpdir.")); 858 858 fatal_error("I cannot write to the tempdir you specified."); 859 859 } … … 903 903 i = which_boot_loader(tmp); 904 904 log_msg(3, "boot loader is %c, residing at %s", i, tmp); 905 printf( "boot loader is %c, residing at %s\n", i, tmp);905 printf(_("boot loader is %c, residing at %s\n"), i, tmp); 906 906 finish(0); 907 907 } … … 911 911 retval++; 912 912 log_to_screen 913 ( "Please install LZOP. You can't use '-L' until you do.\n");913 (_("Please install LZOP. You can't use '-L' until you do.\n")); 914 914 } 915 915 } … … 921 921 bkpinfo->make_cd_use_lilo = TRUE; 922 922 log_to_screen 923 ( "Forcing you to use LILO. SuSE 9.0 (64-bit) has a broken mkfs.vfat binary.");923 (_("Forcing you to use LILO. SuSE 9.0 (64-bit) has a broken mkfs.vfat binary.")); 924 924 } 925 925 if (flag_set['o']) { … … 931 931 bkpinfo->make_cd_use_lilo = TRUE; 932 932 log_to_screen 933 ( "Your kernel appears not to support vfat filesystems. I am therefore");934 log_to_screen 935 ( "using LILO instead of SYSLINUX as the CD/floppy's boot loader.");933 (_("Your kernel appears not to support vfat filesystems. I am therefore")); 934 log_to_screen 935 (_("using LILO instead of SYSLINUX as the CD/floppy's boot loader.")); 936 936 } 937 937 if (run_program_and_log_output("which mkfs.vfat", FALSE)) { … … 939 939 #ifdef __IA32__ 940 940 log_to_screen 941 ( "Your filesystem is missing 'mkfs.vfat', so I cannot use SYSLINUX as");942 log_to_screen 943 ( "your boot loader. I shall therefore use LILO instead.");941 (_("Your filesystem is missing 'mkfs.vfat', so I cannot use SYSLINUX as")); 942 log_to_screen 943 (_("your boot loader. I shall therefore use LILO instead.")); 944 944 #endif 945 945 #ifdef __IA64__ 946 946 log_to_screen 947 ( "Your filesystem is missing 'mkfs.vfat', so I cannot prepare the EFI");948 log_to_screen( "environment correctly. Please install it.");947 (_("Your filesystem is missing 'mkfs.vfat', so I cannot prepare the EFI")); 948 log_to_screen(_("environment correctly. Please install it.")); 949 949 fatal_error("Aborting"); 950 950 #endif … … 964 964 if (i == 0) { 965 965 retval++; 966 log_to_screen( "Specify backup (-O), verify (-V) or both (-OV).\n");966 log_to_screen(_("Specify backup (-O), verify (-V) or both (-OV).\n")); 967 967 } 968 968 … … 1018 1018 if (flag_set[optopt]) { 1019 1019 bad_switches = TRUE; 1020 sprintf(tmp, "Switch -%c previously defined as %s\n", opt,1020 sprintf(tmp, _("Switch -%c previously defined as %s\n"), opt, 1021 1021 flag_val[i]); 1022 1022 log_to_screen(tmp); … … 1028 1028 optarg[--len] = '\0'; 1029 1029 log_to_screen 1030 ( "Warning - param '%s' should not have trailing slash!",1030 (_("Warning - param '%s' should not have trailing slash!"), 1031 1031 optarg); 1032 1032 } … … 1035 1035 && flag_val[opt][0] != '/') { 1036 1036 sprintf(tmp, 1037 "-%c flag --- must be absolute path --- '%s' isn't absolute",1037 _("-%c flag --- must be absolute path --- '%s' isn't absolute"), 1038 1038 opt, flag_val[opt]); 1039 1039 log_to_screen(tmp); … … 1048 1048 for (i = optind; i < argc; i++) { 1049 1049 bad_switches = TRUE; 1050 sprintf(tmp, "Invalid arg -- %s\n", argv[i]);1050 sprintf(tmp, _("Invalid arg -- %s\n"), argv[i]); 1051 1051 log_to_screen(tmp); 1052 1052 } … … 1081 1081 case SIGINT: 1082 1082 sprintf(tmp, "SIGINT"); 1083 strcpy(tmp2, "You interrupted me :-)");1083 strcpy(tmp2, _("You interrupted me :-)")); 1084 1084 break; 1085 1085 case SIGKILL: 1086 1086 sprintf(tmp, "SIGKILL"); 1087 1087 strcpy(tmp2, 1088 "I seriously have no clue how this signal even got to me. Something's wrong with your system.");1088 _("I seriously have no clue how this signal even got to me. Something's wrong with your system.")); 1089 1089 break; 1090 1090 case SIGTERM: 1091 1091 sprintf(tmp, "SIGTERM"); 1092 strcpy(tmp2, "Got terminate signal");1092 strcpy(tmp2, _("Got terminate signal")); 1093 1093 break; 1094 1094 case SIGHUP: 1095 1095 sprintf(tmp, "SIGHUP"); 1096 strcpy(tmp2, "Hangup on line");1096 strcpy(tmp2, _("Hangup on line")); 1097 1097 break; 1098 1098 case SIGSEGV: 1099 1099 sprintf(tmp, "SIGSEGV"); 1100 1100 strcpy(tmp2, 1101 "Internal programming error. Please send a backtrace as well as your log.");1101 _("Internal programming error. Please send a backtrace as well as your log.")); 1102 1102 break; 1103 1103 case SIGPIPE: 1104 1104 sprintf(tmp, "SIGPIPE"); 1105 strcpy(tmp2, "Pipe was broken");1105 strcpy(tmp2, _("Pipe was broken")); 1106 1106 break; 1107 1107 case SIGABRT: 1108 1108 sprintf(tmp, "SIGABRT"); 1109 1109 sprintf(tmp2, 1110 "Abort - probably failed assertion. I'm sleeping for a few seconds so you can read the message.");1110 _("Abort - probably failed assertion. I'm sleeping for a few seconds so you can read the message.")); 1111 1111 break; 1112 1112 default: 1113 sprintf(tmp, "(Unknown)");1114 } 1115 1116 strcat(tmp, " signal received from OS");1113 sprintf(tmp, _("(Unknown)")); 1114 } 1115 1116 strcat(tmp, _(" signal received from OS")); 1117 1117 log_to_screen(tmp); 1118 1118 log_to_screen(tmp2);
Note:
See TracChangeset
for help on using the changeset viewer.