Ignore:
Timestamp:
Apr 28, 2006, 12:34:03 AM (18 years ago)
Author:
bcornec
Message:

Integration of a big patch from rene-marc dolhen <rmd_at_mecreant.org> to support internationalization with gettext.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/common/libmondo-files.c

    r415 r497  
    362362    while (!kernel[0]) {
    363363        if (!ask_me_yes_or_no
    364             ("Kernel not found or invalid. Choose another?")) {
     364            (_("Kernel not found or invalid. Choose another?"))) {
    365365            return (1);
    366366        }
    367367        if (!popup_and_get_string
    368             ("Kernel path",
    369              "What is the full path and filename of your kernel, please?",
     368            (_("Kernel path"),
     369             _("What is the full path and filename of your kernel, please?"),
    370370             kernel, MAX_STR_LEN / 4)) {
    371371            fatal_error
     
    575575
    576576    if (!does_file_exist(filename)) {
    577         sprintf(tmp, "Tring to get last line of nonexistent file (%s)",
     577        sprintf(tmp, "Trying to get last line of nonexistent file (%s)",
    578578                filename);
    579579        log_it(tmp);
     
    664664        log_OS_error("Unable to openout cksumlist");
    665665        paranoid_fclose(fin);
    666         log_to_screen("Can't open checksum list");
     666        log_to_screen(_("Can't open checksum list"));
    667667        return (1);
    668668    }
     
    689689                    time_taken * 100 / (long) (percentage) - time_taken;
    690690                sprintf(tmp,
    691                         "%02d%% done   %02d:%02d taken   %02d:%02d remaining  %-37s\r",
     691                        _("%02d%% done   %02d:%02d taken   %02d:%02d remaining  %-37s"),
    692692                        percentage, (int) (time_taken / 60),
    693693                        (int) (time_taken % 60),
     
    10291029    sprintf(command, "which %s > /dev/null 2> /dev/null", fname);
    10301030    sprintf(errorstr,
    1031             "Please install '%s'. I cannot find it on your system.",
     1031            _("Please install '%s'. I cannot find it on your system."),
    10321032            fname);
    10331033    if (system(command)) {
    10341034        log_to_screen(errorstr);
    10351035        log_to_screen
    1036             ("There may be hyperlink at http://www.mondorescue.com which");
    1037         log_to_screen("will take you to the relevant (missing) package.");
     1036            (_("There may be hyperlink at http://www.mondorescue.com which"));
     1037        log_to_screen(_("will take you to the relevant (missing) package."));
    10381038        return (1);
    10391039    } else {
     
    11501150        fatal_error("Failed to copy Mondo's stuff to scratchdir");
    11511151    }
     1152
     1153    /* i18n */
     1154    sprintf(command, CP_BIN " --parents /usr/share/locale/*/LC_MESSAGES/mondo.mo %s",bkpinfo->scratchdir);
     1155    log_msg(4, "command = %s", command);
     1156    run_program_and_log_output(command, 1);
    11521157
    11531158    sprintf(tmp, "%s/payload.tgz", g_mondo_home);
     
    13841389    if (scratchLL <= 1) {
    13851390        sprintf(tmp,
    1386                 "Your backup will probably occupy a single %s. Maybe two.",
     1391                _("Your backup will probably occupy a single %s. Maybe two."),
    13871392                media_descriptor_string(bkpinfo->backup_media_type));
    13881393    } else if (scratchLL > 4) {
    13891394        sprintf(tmp,
    1390                 "Your backup will occupy one meeeeellion media! (maybe %s)",
     1395                _("Your backup will occupy one meeeeellion media! (maybe %s)"),
    13911396                number_to_text((int) (scratchLL + 1)));
    13921397    } else {
    1393         sprintf(tmp, "Your backup will occupy approximately %s media.",
     1398        sprintf(tmp, _("Your backup will occupy approximately %s media."),
    13941399                number_to_text((int) (scratchLL + 1)));
    13951400    }
Note: See TracChangeset for help on using the changeset viewer.