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-filelist.c

    r336 r497  
    203203    malloc_string(cksumlist);
    204204    malloc_string(tmp);
    205     mvaddstr_and_log_it(g_currentY, 0, "Dividing filelist into sets");
    206 
    207     log_to_screen("Dividing filelist into sets. Please wait.");
     205    mvaddstr_and_log_it(g_currentY, 0, _("Dividing filelist into sets"));
     206
     207    log_to_screen(_("Dividing filelist into sets. Please wait."));
    208208    i = 0;
    209209/*
     
    503503    if (depth == 0) {
    504504        open_evalcall_form("Freeing memory");
    505         log_to_screen("Freeing memory formerly occupied by filelist");
     505        log_to_screen(_("Freeing memory formerly occupied by filelist"));
    506506    }
    507507    depth++;
     
    941941/* add here */
    942942    if (!(newnode = (struct s_node *) malloc(sizeof(struct s_node)))) {
    943         log_to_screen("failed to malloc");
     943        log_to_screen(_("failed to malloc"));
    944944        depth--;
    945945        return (1);
     
    973973            (node->down =
    974974             (struct s_node *) malloc(sizeof(struct s_node)))) {
    975             log_to_screen("%s - failed to malloc", string_to_add);
     975            log_to_screen(_("%s - failed to malloc"), string_to_add);
    976976            return (1);
    977977        }
     
    10261026        fatal_error("filelist does not exist -- cannot load it");
    10271027    }
    1028     log_to_screen("Loading filelist");
     1028    log_to_screen(_("Loading filelist"));
    10291029    sprintf(command_to_open_fname, "gzip -dc %s", filelist_fname);
    10301030    sprintf(tmp, "zcat %s | wc -l", filelist_fname);
     
    10331033        atol(call_program_and_get_last_line_of_output(tmp));
    10341034    if (lines_in_filelist < 3) {
    1035         log_to_screen("Warning - surprisingly short filelist.");
     1035        log_to_screen(_("Warning - surprisingly short filelist."));
    10361036    }
    10371037    g_original_noof_lines_in_filelist = lines_in_filelist;
     
    10501050        return (NULL);
    10511051    }
    1052     open_evalcall_form("Loading filelist from disk");
     1052    open_evalcall_form(_("Loading filelist from disk"));
    10531053    for (fgets(fname, MAX_STR_LEN, pin); !feof(pin);
    10541054         fgets(fname, MAX_STR_LEN, pin)) {
     
    11671167    assert(outfname != NULL);   // will be zerolength if save_filelist() is called by itself
    11681168    if (depth == 0) {
    1169         log_to_screen("Saving filelist");
     1169        log_to_screen(_("Saving filelist"));
    11701170        if (!(fout = fopen(outfname, "w"))) {
    11711171            fatal_error("Cannot openout/save filelist");
    11721172        }
    11731173        lines_in_filelist = g_original_noof_lines_in_filelist;  /* set by load_filelist() */
    1174         open_evalcall_form("Saving selection to disk");
     1174        open_evalcall_form(_("Saving selection to disk"));
    11751175    }
    11761176    for (node = filelist; node != NULL; node = node->right) {
     
    14521452    if (bkpinfo->make_filelist) {
    14531453        mvaddstr_and_log_it(g_currentY, 0,
    1454                             "Making catalog of files to be backed up");
     1454                            _("Making catalog of files to be backed up"));
    14551455    } else {
    14561456        mvaddstr_and_log_it(g_currentY, 0,
    1457                             "Using supplied catalog of files to be backed up");
     1457                            _("Using supplied catalog of files to be backed up"));
    14581458    }
    14591459
     
    14761476        log_OS_error("Call to mondo-makefilelist failed");
    14771477        *p_res++;
    1478         mvaddstr_and_log_it(g_currentY++, 74, "Failed.");
     1478        mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));
    14791479    } else {
    1480         mvaddstr_and_log_it(g_currentY++, 74, "Done.");
     1480        mvaddstr_and_log_it(g_currentY++, 74, _("Done."));
    14811481    }
    14821482    return (res);
     
    15721572#ifndef _XWIN
    15731573                if (!g_text_mode) {
    1574                     sprintf(tmp, "Reading %-68s", dir);
     1574                    sprintf(tmp, _("Reading %-68s"), dir);
    15751575                    newtDrawRootText(0, g_noof_rows - 3, tmp);
    15761576                }
Note: See TracChangeset for help on using the changeset viewer.