Changeset 497 in MondoRescue for branches/stable/mondo/mondo/common/libmondo-filelist.c
- Timestamp:
- Apr 28, 2006, 12:34:03 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/mondo/common/libmondo-filelist.c
r336 r497 203 203 malloc_string(cksumlist); 204 204 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.")); 208 208 i = 0; 209 209 /* … … 503 503 if (depth == 0) { 504 504 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")); 506 506 } 507 507 depth++; … … 941 941 /* add here */ 942 942 if (!(newnode = (struct s_node *) malloc(sizeof(struct s_node)))) { 943 log_to_screen( "failed to malloc");943 log_to_screen(_("failed to malloc")); 944 944 depth--; 945 945 return (1); … … 973 973 (node->down = 974 974 (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); 976 976 return (1); 977 977 } … … 1026 1026 fatal_error("filelist does not exist -- cannot load it"); 1027 1027 } 1028 log_to_screen( "Loading filelist");1028 log_to_screen(_("Loading filelist")); 1029 1029 sprintf(command_to_open_fname, "gzip -dc %s", filelist_fname); 1030 1030 sprintf(tmp, "zcat %s | wc -l", filelist_fname); … … 1033 1033 atol(call_program_and_get_last_line_of_output(tmp)); 1034 1034 if (lines_in_filelist < 3) { 1035 log_to_screen( "Warning - surprisingly short filelist.");1035 log_to_screen(_("Warning - surprisingly short filelist.")); 1036 1036 } 1037 1037 g_original_noof_lines_in_filelist = lines_in_filelist; … … 1050 1050 return (NULL); 1051 1051 } 1052 open_evalcall_form( "Loading filelist from disk");1052 open_evalcall_form(_("Loading filelist from disk")); 1053 1053 for (fgets(fname, MAX_STR_LEN, pin); !feof(pin); 1054 1054 fgets(fname, MAX_STR_LEN, pin)) { … … 1167 1167 assert(outfname != NULL); // will be zerolength if save_filelist() is called by itself 1168 1168 if (depth == 0) { 1169 log_to_screen( "Saving filelist");1169 log_to_screen(_("Saving filelist")); 1170 1170 if (!(fout = fopen(outfname, "w"))) { 1171 1171 fatal_error("Cannot openout/save filelist"); 1172 1172 } 1173 1173 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")); 1175 1175 } 1176 1176 for (node = filelist; node != NULL; node = node->right) { … … 1452 1452 if (bkpinfo->make_filelist) { 1453 1453 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")); 1455 1455 } else { 1456 1456 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")); 1458 1458 } 1459 1459 … … 1476 1476 log_OS_error("Call to mondo-makefilelist failed"); 1477 1477 *p_res++; 1478 mvaddstr_and_log_it(g_currentY++, 74, "Failed.");1478 mvaddstr_and_log_it(g_currentY++, 74, _("Failed.")); 1479 1479 } else { 1480 mvaddstr_and_log_it(g_currentY++, 74, "Done.");1480 mvaddstr_and_log_it(g_currentY++, 74, _("Done.")); 1481 1481 } 1482 1482 return (res); … … 1572 1572 #ifndef _XWIN 1573 1573 if (!g_text_mode) { 1574 sprintf(tmp, "Reading %-68s", dir);1574 sprintf(tmp, _("Reading %-68s"), dir); 1575 1575 newtDrawRootText(0, g_noof_rows - 3, tmp); 1576 1576 }
Note:
See TracChangeset
for help on using the changeset viewer.