Changeset 507 in MondoRescue for trunk/mondo/mondo/common/libmondo-string.c


Ignore:
Timestamp:
Apr 30, 2006, 2:04:16 AM (18 years ago)
Author:
bcornec
Message:

merge -r489:506 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/libmondo-string.c

    r171 r507  
    1212#include "mondostructures.h"
    1313#include "libmondo-string.h"
    14 #include "lib-common-externs.h"
    1514#include "libmondo-files-EXT.h"
    16 #include "libmondo-gui-EXT.h"
     15#include "newt-specific-EXT.h"
    1716#include "libmondo-tools-EXT.h"
    1817
     
    246245            ("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?!?!");
    247246        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 :-)"));
    249248        fatal_error("Integer overflow.");
    250249    } else if (ch != 'm' && ch != 'M') {
     
    901900        sev = 2;
    902901        asprintf(&reason,
    903                  "/var's contents will change regularly, inevitably.");
     902                 _("/var's contents will change regularly, inevitably."));
    904903    }
    905904    if (!strncmp(filename, "/home", 5)) {
    906905        sev = 2;
    907906        asprintf(&reason,
    908                  "It's in your /home partiton. Therefore, it is important.");
     907                 _("It's in your /home partiton. Therefore, it is important."));
    909908    }
    910909    if (!strncmp(filename, "/usr/", 5)) {
    911910        sev = 3;
    912911        asprintf(&reason,
    913                  "You may have installed/removed software during the backup.");
     912                 _("You may have installed/removed software during the backup."));
    914913    }
    915914    if (!strncmp(filename, "/etc/", 5)) {
    916915        sev = 3;
    917916        asprintf(&reason,
    918                  "Do not edit config files while backing up your PC.");
     917                 _("Do not edit config files while backing up your PC."));
    919918    }
    920919    if (!strcmp(filename, "/etc/adjtime")
    921920        || !strcmp(filename, "/etc/mtab")) {
    922921        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."));
    924923    }
    925924    if (!strncmp(filename, "/root/", 6)) {
    926925        sev = 3;
    927926        asprintf(&reason,
    928                  "Were you compiling/editing something in /root?");
     927                 _("Were you compiling/editing something in /root?"));
    929928    }
    930929    if (!strncmp(filename, "/root/.", 7)) {
    931930        sev = 2;
    932         asprintf(&reason, "Temp or 'dot' files changed in /root.");
     931        asprintf(&reason, _("Temp or 'dot' files changed in /root."));
    933932    }
    934933    if (!strncmp(filename, "/var/lib/", 9)) {
    935934        sev = 2;
    936         asprintf(&reason, "Did you add/remove software during backing?");
     935        asprintf(&reason, _("Did you add/remove software during backing?"));
    937936    }
    938937    if (!strncmp(filename, "/var/lib/rpm", 12)) {
    939938        sev = 3;
    940         asprintf(&reason, "Did you add/remove software during backing?");
     939        asprintf(&reason, _("Did you add/remove software during backing?"));
    941940    }
    942941    if (!strncmp(filename, "/var/lib/slocate", 16)) {
    943942        sev = 1;
    944943        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."));
    946945    }
    947946    if (!strncmp(filename, "/var/log/", 9)
     
    950949        sev = 1;
    951950        asprintf(&reason,
    952                  "Log files change frequently as the computer runs. Fret not.");
     951                 _("Log files change frequently as the computer runs. Fret not."));
    953952    }
    954953    if (!strncmp(filename, "/var/spool", 10)) {
    955954        sev = 1;
    956955        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."));
    958957    }
    959958    if (!strncmp(filename, "/var/spool/mail", 10)) {
    960959        sev = 2;
    961         asprintf(&reason, "Mail was sent/received during backup.");
     960        asprintf(&reason, _("Mail was sent/received during backup."));
    962961    }
    963962    if (filename[strlen(filename) - 1] == '~') {
    964963        sev = 1;
    965964        asprintf(&reason,
    966                  "Backup copy of another file which was modified recently.");
     965                 _("Backup copy of another file which was modified recently."));
    967966    }
    968967    if (strstr(filename, "cache")) {
    969968        sev = 1;
    970969        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."));
    972971    }
    973972    if (!strncmp(filename, "/var/run/", 9)
     
    984983        sev = 3;
    985984        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."));
    987986    }
    988987
     
    10431042    if (bkpinfo->media_size[g_current_media_number] <= 0) {
    10441043        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"),
    10461045                 g_current_media_number, commarize(tmp));
    10471046        paranoid_free(tmp);
     1047
    10481048        return (outstr);
    10491049    }
     
    10541054            (int) (g_tape_posK / 10 /
    10551055                   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);
    10571057    } else {
    10581058        percentage =
     
    10861086       asprintf(&outstr, "%s%s%s] %3d%% used", prepstr, tmp1, tmp2, percentage);
    10871087     */
    1088     asprintf(&outstr, "%s%s%s] %3d percent used", prepstr, tmp1, tmp2,
     1088    asprintf(&outstr, _("%s%s%s] %3d percent used"), prepstr, tmp1, tmp2,
    10891089             percentage);
    10901090    paranoid_free(prepstr);
Note: See TracChangeset for help on using the changeset viewer.