Changeset 507 in MondoRescue for trunk/mondo/mondo/common/libmondo-string.c
- Timestamp:
- Apr 30, 2006, 2:04:16 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-string.c
r171 r507 12 12 #include "mondostructures.h" 13 13 #include "libmondo-string.h" 14 #include "lib-common-externs.h"15 14 #include "libmondo-files-EXT.h" 16 #include " libmondo-gui-EXT.h"15 #include "newt-specific-EXT.h" 17 16 #include "libmondo-tools-EXT.h" 18 17 … … 246 245 ("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?!?!"); 247 246 popup_and_OK 248 ( "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 :-)");247 (_("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 :-)")); 249 248 fatal_error("Integer overflow."); 250 249 } else if (ch != 'm' && ch != 'M') { … … 901 900 sev = 2; 902 901 asprintf(&reason, 903 "/var's contents will change regularly, inevitably.");902 _("/var's contents will change regularly, inevitably.")); 904 903 } 905 904 if (!strncmp(filename, "/home", 5)) { 906 905 sev = 2; 907 906 asprintf(&reason, 908 "It's in your /home partiton. Therefore, it is important.");907 _("It's in your /home partiton. Therefore, it is important.")); 909 908 } 910 909 if (!strncmp(filename, "/usr/", 5)) { 911 910 sev = 3; 912 911 asprintf(&reason, 913 "You may have installed/removed software during the backup.");912 _("You may have installed/removed software during the backup.")); 914 913 } 915 914 if (!strncmp(filename, "/etc/", 5)) { 916 915 sev = 3; 917 916 asprintf(&reason, 918 "Do not edit config files while backing up your PC.");917 _("Do not edit config files while backing up your PC.")); 919 918 } 920 919 if (!strcmp(filename, "/etc/adjtime") 921 920 || !strcmp(filename, "/etc/mtab")) { 922 921 sev = 1; 923 asprintf(&reason, "This file changes all the time. It's OK.");922 asprintf(&reason, _("This file changes all the time. It's OK.")); 924 923 } 925 924 if (!strncmp(filename, "/root/", 6)) { 926 925 sev = 3; 927 926 asprintf(&reason, 928 "Were you compiling/editing something in /root?");927 _("Were you compiling/editing something in /root?")); 929 928 } 930 929 if (!strncmp(filename, "/root/.", 7)) { 931 930 sev = 2; 932 asprintf(&reason, "Temp or 'dot' files changed in /root.");931 asprintf(&reason, _("Temp or 'dot' files changed in /root.")); 933 932 } 934 933 if (!strncmp(filename, "/var/lib/", 9)) { 935 934 sev = 2; 936 asprintf(&reason, "Did you add/remove software during backing?");935 asprintf(&reason, _("Did you add/remove software during backing?")); 937 936 } 938 937 if (!strncmp(filename, "/var/lib/rpm", 12)) { 939 938 sev = 3; 940 asprintf(&reason, "Did you add/remove software during backing?");939 asprintf(&reason, _("Did you add/remove software during backing?")); 941 940 } 942 941 if (!strncmp(filename, "/var/lib/slocate", 16)) { 943 942 sev = 1; 944 943 asprintf(&reason, 945 "The 'update' daemon ran during backup. This does not affect the integrity of your backup.");944 _("The 'update' daemon ran during backup. This does not affect the integrity of your backup.")); 946 945 } 947 946 if (!strncmp(filename, "/var/log/", 9) … … 950 949 sev = 1; 951 950 asprintf(&reason, 952 "Log files change frequently as the computer runs. Fret not.");951 _("Log files change frequently as the computer runs. Fret not.")); 953 952 } 954 953 if (!strncmp(filename, "/var/spool", 10)) { 955 954 sev = 1; 956 955 asprintf(&reason, 957 "Background processes or printers were active. This does not affect the integrity of your backup.");956 _("Background processes or printers were active. This does not affect the integrity of your backup.")); 958 957 } 959 958 if (!strncmp(filename, "/var/spool/mail", 10)) { 960 959 sev = 2; 961 asprintf(&reason, "Mail was sent/received during backup.");960 asprintf(&reason, _("Mail was sent/received during backup.")); 962 961 } 963 962 if (filename[strlen(filename) - 1] == '~') { 964 963 sev = 1; 965 964 asprintf(&reason, 966 "Backup copy of another file which was modified recently.");965 _("Backup copy of another file which was modified recently.")); 967 966 } 968 967 if (strstr(filename, "cache")) { 969 968 sev = 1; 970 969 asprintf(&reason, 971 "Part of a cache of data. Caches change from time to time. Don't worry.");970 _("Part of a cache of data. Caches change from time to time. Don't worry.")); 972 971 } 973 972 if (!strncmp(filename, "/var/run/", 9) … … 984 983 sev = 3; 985 984 asprintf(&reason, 986 "Changed since backup. Consider running a differential backup in a day or two.");985 _("Changed since backup. Consider running a differential backup in a day or two.")); 987 986 } 988 987 … … 1043 1042 if (bkpinfo->media_size[g_current_media_number] <= 0) { 1044 1043 asprintf(&tmp, "%lld", g_tape_posK); 1045 asprintf(&outstr, "Volume %d: %s kilobytes archived so far",1044 asprintf(&outstr, _("Volume %d: %s kilobytes archived so far"), 1046 1045 g_current_media_number, commarize(tmp)); 1047 1046 paranoid_free(tmp); 1047 1048 1048 return (outstr); 1049 1049 } … … 1054 1054 (int) (g_tape_posK / 10 / 1055 1055 bkpinfo->media_size[g_current_media_number]); 1056 asprintf(&prepstr, "Volume %d: [", g_current_media_number);1056 asprintf(&prepstr, _("Volume %d: ["), g_current_media_number); 1057 1057 } else { 1058 1058 percentage = … … 1086 1086 asprintf(&outstr, "%s%s%s] %3d%% used", prepstr, tmp1, tmp2, percentage); 1087 1087 */ 1088 asprintf(&outstr, "%s%s%s] %3d percent used", prepstr, tmp1, tmp2,1088 asprintf(&outstr, _("%s%s%s] %3d percent used"), prepstr, tmp1, tmp2, 1089 1089 percentage); 1090 1090 paranoid_free(prepstr);
Note:
See TracChangeset
for help on using the changeset viewer.