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

    r128 r497  
    297297            ("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?!?!");
    298298        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 :-)"));
    300300        fatal_error("Integer overflow.");
    301301    } else if (ch != 'm' && ch != 'M') {
     
    984984    sev = 3;
    985985    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."));
    987987    if (!strncmp(filename, "/var/", 5)) {
    988988        sev = 2;
    989989        sprintf(reason,
    990                 "/var's contents will change regularly, inevitably.");
     990                _("/var's contents will change regularly, inevitably."));
    991991    }
    992992    if (!strncmp(filename, "/home", 5)) {
    993993        sev = 2;
    994994        sprintf(reason,
    995                 "It's in your /home partiton. Therefore, it is important.");
     995                _("It's in your /home partiton. Therefore, it is important."));
    996996    }
    997997    if (!strncmp(filename, "/usr/", 5)) {
    998998        sev = 3;
    999999        sprintf(reason,
    1000                 "You may have installed/removed software during the backup.");
     1000                _("You may have installed/removed software during the backup."));
    10011001    }
    10021002    if (!strncmp(filename, "/etc/", 5)) {
    10031003        sev = 3;
    10041004        sprintf(reason,
    1005                 "Do not edit config files while backing up your PC.");
     1005                _("Do not edit config files while backing up your PC."));
    10061006    }
    10071007    if (!strcmp(filename, "/etc/adjtime")
    10081008        || !strcmp(filename, "/etc/mtab")) {
    10091009        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."));
    10111011    }
    10121012    if (!strncmp(filename, "/root/", 6)) {
    10131013        sev = 3;
    1014         sprintf(reason, "Were you compiling/editing something in /root?");
     1014        sprintf(reason, _("Were you compiling/editing something in /root?"));
    10151015    }
    10161016    if (!strncmp(filename, "/root/.", 7)) {
    10171017        sev = 2;
    1018         sprintf(reason, "Temp or 'dot' files changed in /root.");
     1018        sprintf(reason, _("Temp or 'dot' files changed in /root."));
    10191019    }
    10201020    if (!strncmp(filename, "/var/lib/", 9)) {
    10211021        sev = 2;
    1022         sprintf(reason, "Did you add/remove software during backing?");
     1022        sprintf(reason, _("Did you add/remove software during backing?"));
    10231023    }
    10241024    if (!strncmp(filename, "/var/lib/rpm", 12)) {
    10251025        sev = 3;
    1026         sprintf(reason, "Did you add/remove software during backing?");
     1026        sprintf(reason, _("Did you add/remove software during backing?"));
    10271027    }
    10281028    if (!strncmp(filename, "/var/lib/slocate", 16)) {
    10291029        sev = 1;
    10301030        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."));
    10321032    }
    10331033    if (!strncmp(filename, "/var/log/", 9)
     
    10361036        sev = 1;
    10371037        sprintf(reason,
    1038                 "Log files change frequently as the computer runs. Fret not.");
     1038                _("Log files change frequently as the computer runs. Fret not."));
    10391039    }
    10401040    if (!strncmp(filename, "/var/spool", 10)) {
    10411041        sev = 1;
    10421042        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."));
    10441044    }
    10451045    if (!strncmp(filename, "/var/spool/mail", 10)) {
    10461046        sev = 2;
    1047         sprintf(reason, "Mail was sent/received during backup.");
     1047        sprintf(reason, _("Mail was sent/received during backup."));
    10481048    }
    10491049    if (filename[strlen(filename) - 1] == '~') {
    10501050        sev = 1;
    10511051        sprintf(reason,
    1052                 "Backup copy of another file which was modified recently.");
     1052                _("Backup copy of another file which was modified recently."));
    10531053    }
    10541054    if (strstr(filename, "cache")) {
    10551055        sev = 1;
    10561056        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."));
    10581058    }
    10591059    if (!strncmp(filename, "/var/run/", 9)
     
    11321132//    { fatal_error( "percentage_media_full_comment() - unknown media size"); }
    11331133    {
    1134         sprintf(outstr, "Volume %d: %s kilobytes archived so far",
     1134        sprintf(outstr, _("Volume %d: %s kilobytes archived so far"),
    11351135                g_current_media_number, pos_w_commas);
    11361136        return (outstr);
     
    11451145            percentage = 100;
    11461146        }
    1147         sprintf(outstr, "Volume %d: [", g_current_media_number);
     1147        sprintf(outstr, _("Volume %d: ["), g_current_media_number);
    11481148    } else {
    11491149        percentage =
     
    11611161    }
    11621162    j = (int) strlen(outstr);
    1163     sprintf(outstr + j, "] %d%% used", percentage);
     1163    sprintf(outstr + j, _("] %d%% used"), percentage);
    11641164    paranoid_free(pos_w_commas);
    11651165    paranoid_free(tmp);
Note: See TracChangeset for help on using the changeset viewer.