Changeset 541 in MondoRescue for branches/stable/mondo/mondo/common/libmondo-string.c
- Timestamp:
- May 13, 2006, 8:47:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/mondo/common/libmondo-string.c
r501 r541 65 65 #include "mondostructures.h" 66 66 #include "libmondo-string.h" 67 #include "lib-common-externs.h" 67 68 #include "libmondo-files-EXT.h" 68 #include " newt-specific-EXT.h"69 #include "libmondo-gui-EXT.h" 69 70 #include "libmondo-tools-EXT.h" 70 71 … … 296 297 ("Oh my gosh. You actually think a YOTTABYTE will get you anywhere? What're you going to do with 1,208,925,819,614,629,174,706,176 bytes of data?!?!"); 297 298 popup_and_OK 298 ( _("That sizespec is more than 1,208,925,819,614,629,174,706,176 bytes. You have a shocking amount of data. Please send a screenshot to the list :-)"));299 ("That sizespec is more than 1,208,925,819,614,629,174,706,176 bytes. You have a shocking amount of data. Please send a screenshot to the list :-)"); 299 300 fatal_error("Integer overflow."); 300 301 } else if (ch != 'm' && ch != 'M') { … … 983 984 sev = 3; 984 985 sprintf(reason, 985 _("Changed since backup. Consider running a differential backup in a day or two."));986 "Changed since backup. Consider running a differential backup in a day or two."); 986 987 if (!strncmp(filename, "/var/", 5)) { 987 988 sev = 2; 988 989 sprintf(reason, 989 _("/var's contents will change regularly, inevitably."));990 "/var's contents will change regularly, inevitably."); 990 991 } 991 992 if (!strncmp(filename, "/home", 5)) { 992 993 sev = 2; 993 994 sprintf(reason, 994 _("It's in your /home partiton. Therefore, it is important."));995 "It's in your /home partiton. Therefore, it is important."); 995 996 } 996 997 if (!strncmp(filename, "/usr/", 5)) { 997 998 sev = 3; 998 999 sprintf(reason, 999 _("You may have installed/removed software during the backup."));1000 "You may have installed/removed software during the backup."); 1000 1001 } 1001 1002 if (!strncmp(filename, "/etc/", 5)) { 1002 1003 sev = 3; 1003 1004 sprintf(reason, 1004 _("Do not edit config files while backing up your PC."));1005 "Do not edit config files while backing up your PC."); 1005 1006 } 1006 1007 if (!strcmp(filename, "/etc/adjtime") 1007 1008 || !strcmp(filename, "/etc/mtab")) { 1008 1009 sev = 1; 1009 sprintf(reason, _("This file changes all the time. It's OK."));1010 sprintf(reason, "This file changes all the time. It's OK."); 1010 1011 } 1011 1012 if (!strncmp(filename, "/root/", 6)) { 1012 1013 sev = 3; 1013 sprintf(reason, _("Were you compiling/editing something in /root?"));1014 sprintf(reason, "Were you compiling/editing something in /root?"); 1014 1015 } 1015 1016 if (!strncmp(filename, "/root/.", 7)) { 1016 1017 sev = 2; 1017 sprintf(reason, _("Temp or 'dot' files changed in /root."));1018 sprintf(reason, "Temp or 'dot' files changed in /root."); 1018 1019 } 1019 1020 if (!strncmp(filename, "/var/lib/", 9)) { 1020 1021 sev = 2; 1021 sprintf(reason, _("Did you add/remove software during backing?"));1022 sprintf(reason, "Did you add/remove software during backing?"); 1022 1023 } 1023 1024 if (!strncmp(filename, "/var/lib/rpm", 12)) { 1024 1025 sev = 3; 1025 sprintf(reason, _("Did you add/remove software during backing?"));1026 sprintf(reason, "Did you add/remove software during backing?"); 1026 1027 } 1027 1028 if (!strncmp(filename, "/var/lib/slocate", 16)) { 1028 1029 sev = 1; 1029 1030 sprintf(reason, 1030 _("The 'update' daemon ran during backup. This does not affect the integrity of your backup."));1031 "The 'update' daemon ran during backup. This does not affect the integrity of your backup."); 1031 1032 } 1032 1033 if (!strncmp(filename, "/var/log/", 9) … … 1035 1036 sev = 1; 1036 1037 sprintf(reason, 1037 _("Log files change frequently as the computer runs. Fret not."));1038 "Log files change frequently as the computer runs. Fret not."); 1038 1039 } 1039 1040 if (!strncmp(filename, "/var/spool", 10)) { 1040 1041 sev = 1; 1041 1042 sprintf(reason, 1042 _("Background processes or printers were active. This does not affect the integrity of your backup."));1043 "Background processes or printers were active. This does not affect the integrity of your backup."); 1043 1044 } 1044 1045 if (!strncmp(filename, "/var/spool/mail", 10)) { 1045 1046 sev = 2; 1046 sprintf(reason, _("Mail was sent/received during backup."));1047 sprintf(reason, "Mail was sent/received during backup."); 1047 1048 } 1048 1049 if (filename[strlen(filename) - 1] == '~') { 1049 1050 sev = 1; 1050 1051 sprintf(reason, 1051 _("Backup copy of another file which was modified recently."));1052 "Backup copy of another file which was modified recently."); 1052 1053 } 1053 1054 if (strstr(filename, "cache")) { 1054 1055 sev = 1; 1055 1056 sprintf(reason, 1056 _("Part of a cache of data. Caches change from time to time. Don't worry."));1057 "Part of a cache of data. Caches change from time to time. Don't worry."); 1057 1058 } 1058 1059 if (!strncmp(filename, "/var/run/", 9) … … 1131 1132 // { fatal_error( "percentage_media_full_comment() - unknown media size"); } 1132 1133 { 1133 sprintf(outstr, _("Volume %d: %s kilobytes archived so far"),1134 sprintf(outstr, "Volume %d: %s kilobytes archived so far", 1134 1135 g_current_media_number, pos_w_commas); 1135 1136 return (outstr); … … 1144 1145 percentage = 100; 1145 1146 } 1146 sprintf(outstr, _("Volume %d: ["), g_current_media_number);1147 sprintf(outstr, "Volume %d: [", g_current_media_number); 1147 1148 } else { 1148 1149 percentage = … … 1160 1161 } 1161 1162 j = (int) strlen(outstr); 1162 sprintf(outstr + j, _("] %d%% used"), percentage);1163 sprintf(outstr + j, "] %d%% used", percentage); 1163 1164 paranoid_free(pos_w_commas); 1164 1165 paranoid_free(tmp);
Note:
See TracChangeset
for help on using the changeset viewer.