Ignore:
Timestamp:
Apr 29, 2006, 8:59:08 PM (18 years ago)
Author:
bcornec
Message:
  • Internationalization follow up
  • X11 remaining files suppressed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/mondoarchive/mondo-cli.c

    r477 r501  
    378378    if (i == 0) {
    379379        retval++;
    380         log_to_screen("You must specify the media type\n");
     380        log_to_screen(_("You must specify the media type\n"));
    381381    }
    382382    if (i > 1) {
    383383        retval++;
    384         log_to_screen("Please specify only one media type\n");
     384        log_to_screen(_("Please specify only one media type\n"));
    385385    }
    386386    if (flag_set['K']) {
     
    392392    if (flag_set['L'] && flag_set['0']) {
    393393        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"));
    395395    }
    396396    bkpinfo->backup_data = flag_set['O'];
    397397    bkpinfo->verify_data = flag_set['V'];
    398398    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"));
    400400    }
    401401    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"));
    403403    }
    404404
     
    428428        if (flag_set['f'] || flag_set['l']) {
    429429            log_to_screen
    430                 ("You don't need to specify bootloader or bootdevice");
     430                (_("You don't need to specify bootloader or bootdevice"));
    431431        }
    432432    }
     
    473473        if (bkpinfo->include_paths[0] == '-') {
    474474            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"));
    476476        }
    477477    }
     
    488488            retval++;
    489489            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. :-)"));
    491491        }
    492492        bkpinfo->make_filelist = FALSE;
     
    506506        if (g_kernel_version >= 2.6 && !strstr(flag_val['d'], "/dev/")) {
    507507            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..."));
    509509        }
    510510
     
    522522            if (!flag_set['L']) {
    523523                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."));
    525525                flag_set['L'] = 1;
    526526                flag_val['L'][0] = '\0';
     
    552552        flag_set['d'] = TRUE;
    553553        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"),
    555555                flag_val['d']);
    556556        log_to_screen(tmp);
     
    567567            if (!find_dvd_device(flag_val['d'], FALSE)) {
    568568                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']));
    570570            }
    571571        }
     
    586586            strcat(flag_val['s'], "m");
    587587            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."),
    589589                 flag_val['s']);
    590590            flag_set['s'] = 1;
     
    642642        if (strlen(bkpinfo->isodir) < 3) {
    643643            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"));
    645645        }
    646646        log_msg(3, "mount = %s", bkpinfo->nfs_mount);
     
    767767            retval++;
    768768            sprintf(tmp,
    769                     "You specified kernel '%s', which does not exist\n",
     769                    _("You specified kernel '%s', which does not exist\n"),
    770770                    bkpinfo->kernel_path);
    771771            log_to_screen(tmp);
     
    799799            retval++;
    800800            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"),
    802802                    bkpinfo->nfs_remote_dir, bkpinfo->nfs_mount);
    803803            log_to_screen(tmp);
     
    809809        if (g_kernel_version >= 2.6) {
    810810            if (popup_and_get_string
    811                 ("Device", "Please specify the device",
     811                (_("Device", "Please specify the device"),
    812812                 bkpinfo->media_device, MAX_STR_LEN / 4)) {
    813813                retval++;
    814                 log_to_screen("User opted to cancel.");
     814                log_to_screen(_("User opted to cancel."));
    815815            }
    816816        } else if (find_cdrw_device(bkpinfo->media_device)) {
    817817            retval++;
    818818            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"));
    820820        } else {
    821821            flag_set['d'] = TRUE;
     
    826826    if (!flag_set['d'] && !flag_set['n'] && !flag_set['C']) {
    827827        retval++;
    828         log_to_screen("Please specify the backup device/directory.\n");
     828        log_to_screen(_("Please specify the backup device/directory.\n"));
    829829        fatal_error
    830830            ("You didn't use -d to specify the backup device/directory.");
     
    847847            retval++;
    848848            log_to_screen
    849                 ("Please specify a tempdir which I can write to. :)");
     849                (_("Please specify a tempdir which I can write to. :)"));
    850850            fatal_error("I cannot write to the tempdir you specified.");
    851851        }
     
    855855            retval++;
    856856            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."));
    858858            fatal_error("I cannot write to the tempdir you specified.");
    859859        }
     
    903903        i = which_boot_loader(tmp);
    904904        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);
    906906        finish(0);
    907907    }
     
    911911            retval++;
    912912            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"));
    914914        }
    915915    }
     
    921921        bkpinfo->make_cd_use_lilo = TRUE;
    922922        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."));
    924924    }
    925925    if (flag_set['o']) {
     
    931931            bkpinfo->make_cd_use_lilo = TRUE;
    932932            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."));
    936936        }
    937937        if (run_program_and_log_output("which mkfs.vfat", FALSE)) {
     
    939939#ifdef __IA32__
    940940            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."));
    944944#endif
    945945#ifdef __IA64__
    946946            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."));
    949949            fatal_error("Aborting");
    950950#endif
     
    964964    if (i == 0) {
    965965        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"));
    967967    }
    968968
     
    10181018            if (flag_set[optopt]) {
    10191019                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,
    10211021                        flag_val[i]);
    10221022                log_to_screen(tmp);
     
    10281028                        optarg[--len] = '\0';
    10291029                        log_to_screen
    1030                             ("Warning - param '%s' should not have trailing slash!",
     1030                            (_("Warning - param '%s' should not have trailing slash!"),
    10311031                             optarg);
    10321032                    }
     
    10351035                            && flag_val[opt][0] != '/') {
    10361036                            sprintf(tmp,
    1037                                     "-%c flag --- must be absolute path --- '%s' isn't absolute",
     1037                                    _("-%c flag --- must be absolute path --- '%s' isn't absolute"),
    10381038                                    opt, flag_val[opt]);
    10391039                            log_to_screen(tmp);
     
    10481048    for (i = optind; i < argc; i++) {
    10491049        bad_switches = TRUE;
    1050         sprintf(tmp, "Invalid arg -- %s\n", argv[i]);
     1050        sprintf(tmp, _("Invalid arg -- %s\n"), argv[i]);
    10511051        log_to_screen(tmp);
    10521052    }
     
    10811081    case SIGINT:
    10821082        sprintf(tmp, "SIGINT");
    1083         strcpy(tmp2, "You interrupted me :-)");
     1083        strcpy(tmp2, _("You interrupted me :-)"));
    10841084        break;
    10851085    case SIGKILL:
    10861086        sprintf(tmp, "SIGKILL");
    10871087        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."));
    10891089        break;
    10901090    case SIGTERM:
    10911091        sprintf(tmp, "SIGTERM");
    1092         strcpy(tmp2, "Got terminate signal");
     1092        strcpy(tmp2, _("Got terminate signal"));
    10931093        break;
    10941094    case SIGHUP:
    10951095        sprintf(tmp, "SIGHUP");
    1096         strcpy(tmp2, "Hangup on line");
     1096        strcpy(tmp2, _("Hangup on line"));
    10971097        break;
    10981098    case SIGSEGV:
    10991099        sprintf(tmp, "SIGSEGV");
    11001100        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."));
    11021102        break;
    11031103    case SIGPIPE:
    11041104        sprintf(tmp, "SIGPIPE");
    1105         strcpy(tmp2, "Pipe was broken");
     1105        strcpy(tmp2, _("Pipe was broken"));
    11061106        break;
    11071107    case SIGABRT:
    11081108        sprintf(tmp, "SIGABRT");
    11091109        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."));
    11111111        break;
    11121112    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"));
    11171117    log_to_screen(tmp);
    11181118    log_to_screen(tmp2);
Note: See TracChangeset for help on using the changeset viewer.