Changeset 497 in MondoRescue for branches/stable/mondo/mondo/common/libmondo-string.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-string.c
r128 r497 297 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?!?!"); 298 298 popup_and_OK 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 (_("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 :-)")); 300 300 fatal_error("Integer overflow."); 301 301 } else if (ch != 'm' && ch != 'M') { … … 984 984 sev = 3; 985 985 sprintf(reason, 986 "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.")); 987 987 if (!strncmp(filename, "/var/", 5)) { 988 988 sev = 2; 989 989 sprintf(reason, 990 "/var's contents will change regularly, inevitably.");990 _("/var's contents will change regularly, inevitably.")); 991 991 } 992 992 if (!strncmp(filename, "/home", 5)) { 993 993 sev = 2; 994 994 sprintf(reason, 995 "It's in your /home partiton. Therefore, it is important.");995 _("It's in your /home partiton. Therefore, it is important.")); 996 996 } 997 997 if (!strncmp(filename, "/usr/", 5)) { 998 998 sev = 3; 999 999 sprintf(reason, 1000 "You may have installed/removed software during the backup.");1000 _("You may have installed/removed software during the backup.")); 1001 1001 } 1002 1002 if (!strncmp(filename, "/etc/", 5)) { 1003 1003 sev = 3; 1004 1004 sprintf(reason, 1005 "Do not edit config files while backing up your PC.");1005 _("Do not edit config files while backing up your PC.")); 1006 1006 } 1007 1007 if (!strcmp(filename, "/etc/adjtime") 1008 1008 || !strcmp(filename, "/etc/mtab")) { 1009 1009 sev = 1; 1010 sprintf(reason, "This file changes all the time. It's OK.");1010 sprintf(reason, _("This file changes all the time. It's OK.")); 1011 1011 } 1012 1012 if (!strncmp(filename, "/root/", 6)) { 1013 1013 sev = 3; 1014 sprintf(reason, "Were you compiling/editing something in /root?");1014 sprintf(reason, _("Were you compiling/editing something in /root?")); 1015 1015 } 1016 1016 if (!strncmp(filename, "/root/.", 7)) { 1017 1017 sev = 2; 1018 sprintf(reason, "Temp or 'dot' files changed in /root.");1018 sprintf(reason, _("Temp or 'dot' files changed in /root.")); 1019 1019 } 1020 1020 if (!strncmp(filename, "/var/lib/", 9)) { 1021 1021 sev = 2; 1022 sprintf(reason, "Did you add/remove software during backing?");1022 sprintf(reason, _("Did you add/remove software during backing?")); 1023 1023 } 1024 1024 if (!strncmp(filename, "/var/lib/rpm", 12)) { 1025 1025 sev = 3; 1026 sprintf(reason, "Did you add/remove software during backing?");1026 sprintf(reason, _("Did you add/remove software during backing?")); 1027 1027 } 1028 1028 if (!strncmp(filename, "/var/lib/slocate", 16)) { 1029 1029 sev = 1; 1030 1030 sprintf(reason, 1031 "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.")); 1032 1032 } 1033 1033 if (!strncmp(filename, "/var/log/", 9) … … 1036 1036 sev = 1; 1037 1037 sprintf(reason, 1038 "Log files change frequently as the computer runs. Fret not.");1038 _("Log files change frequently as the computer runs. Fret not.")); 1039 1039 } 1040 1040 if (!strncmp(filename, "/var/spool", 10)) { 1041 1041 sev = 1; 1042 1042 sprintf(reason, 1043 "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.")); 1044 1044 } 1045 1045 if (!strncmp(filename, "/var/spool/mail", 10)) { 1046 1046 sev = 2; 1047 sprintf(reason, "Mail was sent/received during backup.");1047 sprintf(reason, _("Mail was sent/received during backup.")); 1048 1048 } 1049 1049 if (filename[strlen(filename) - 1] == '~') { 1050 1050 sev = 1; 1051 1051 sprintf(reason, 1052 "Backup copy of another file which was modified recently.");1052 _("Backup copy of another file which was modified recently.")); 1053 1053 } 1054 1054 if (strstr(filename, "cache")) { 1055 1055 sev = 1; 1056 1056 sprintf(reason, 1057 "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.")); 1058 1058 } 1059 1059 if (!strncmp(filename, "/var/run/", 9) … … 1132 1132 // { fatal_error( "percentage_media_full_comment() - unknown media size"); } 1133 1133 { 1134 sprintf(outstr, "Volume %d: %s kilobytes archived so far",1134 sprintf(outstr, _("Volume %d: %s kilobytes archived so far"), 1135 1135 g_current_media_number, pos_w_commas); 1136 1136 return (outstr); … … 1145 1145 percentage = 100; 1146 1146 } 1147 sprintf(outstr, "Volume %d: [", g_current_media_number);1147 sprintf(outstr, _("Volume %d: ["), g_current_media_number); 1148 1148 } else { 1149 1149 percentage = … … 1161 1161 } 1162 1162 j = (int) strlen(outstr); 1163 sprintf(outstr + j, "] %d%% used", percentage);1163 sprintf(outstr + j, _("] %d%% used"), percentage); 1164 1164 paranoid_free(pos_w_commas); 1165 1165 paranoid_free(tmp);
Note:
See TracChangeset
for help on using the changeset viewer.