Ignore:
Timestamp:
May 13, 2006, 8:47:23 PM (18 years ago)
Author:
bcornec
Message:

Stable is reverted to r436 (2.0.7) to put it in line with 2.0.8 and start from there over

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/mondorestore/mondo-rstr-newt.c

    r538 r541  
    156156
    157157    newtPushHelpLine
    158         (_("   Add one of the following unallocated RAID partitions to this RAID device."));
    159     sprintf(tmp, "%-26s %s", _("Device"), _("Size"));
     158        ("   Add one of the following unallocated RAID partitions to this RAID device.");
     159    sprintf(tmp, "%-26s %s", "Device", "Size");
    160160    headerMsg = newtLabel(1, 1, tmp);
    161161    partitionsListbox =
     
    164164                             partitionsListbox);
    165165    i = 7;
    166     bOK = newtCompactButton(i, 9, _("  OK  "));
    167     bCancel = newtCompactButton(i += 9, 9, _("Cancel"));
    168     newtOpenWindow(22, 6, 36, 10, _("Unallocated RAID partitions"));
     166    bOK = newtCompactButton(i, 9, "  OK  ");
     167    bCancel = newtCompactButton(i += 9, 9, "Cancel");
     168    newtOpenWindow(22, 6, 36, 10, "Unallocated RAID partitions");
    169169    myForm = newtForm(NULL, NULL, 0);
    170170    newtFormAddComponents(myForm, headerMsg, partitionsListbox, bOK,
     
    258258    size_str[0] = '\0';
    259259    /* sprintf(size_str,""); */
    260     newtOpenWindow(20, 5, 48, 10, _("Add entry"));
    261     label0 = newtLabel(2, 1, _("Device:    "));
    262     label1 = newtLabel(2, 2, _("Mountpoint:"));
    263     label2 = newtLabel(2, 3, _("Size (MB): "));
    264     label3 = newtLabel(2, 4, _("Format:    "));
     260    newtOpenWindow(20, 5, 48, 10, "Add entry");
     261    label0 = newtLabel(2, 1, "Device:    ");
     262    label1 = newtLabel(2, 2, "Mountpoint:");
     263    label2 = newtLabel(2, 3, "Size (MB): ");
     264    label3 = newtLabel(2, 4, "Format:    ");
    265265    deviceComp =
    266266        newtEntry(14, 1, device_str, 30, (void *) &device_here, 0);
     
    270270        newtEntry(14, 4, format_str, 15, (void *) &format_here, 0);
    271271    sizeComp = newtEntry(14, 3, size_str, 10, (void *) &size_here, 0);
    272     bOK = newtButton(5, 6, _("  OK  "));
    273     bCancel = newtButton(17, 6, _("Cancel"));
     272    bOK = newtButton(5, 6, "  OK  ");
     273    bCancel = newtButton(17, 6, "Cancel");
    274274    newtPushHelpLine
    275         (_("To add an entry to the mountlist, please fill in these fields and then hit 'OK'"));
     275        ("To add an entry to the mountlist, please fill in these fields and then hit 'OK'");
    276276    myForm = newtForm(NULL, NULL, 0);
    277277    newtFormAddComponents(myForm, deviceComp, mountpointComp, sizeComp,
     
    292292        if (b_res == bOK) {
    293293            if (device_str[strlen(device_str) - 1] == '/') {
    294                 popup_and_OK(_("You left the device nearly blank!"));
     294                popup_and_OK("You left the device nearly blank!");
    295295                b_res = NULL;
    296296            }
    297297            if (size_of_specific_device_in_mountlist(mountlist, device_str)
    298298                >= 0) {
    299                 popup_and_OK(_("Can't add this - you've got one already!"));
     299                popup_and_OK("Can't add this - you've got one already!");
    300300                b_res = NULL;
    301301            }
     
    346346    sz_out[0] = '\0';
    347347    if (popup_and_get_string
    348         ("Add variable", _("Enter the name of the variable to add"), sz_out,
     348        ("Add variable", "Enter the name of the variable to add", sz_out,
    349349         MAX_STR_LEN)) {
    350350        strip_spaces(sz_out);
     
    355355        if (i < items) {
    356356            popup_and_OK
    357                 (_("No need to add that variable. It is already listed here."));
     357                ("No need to add that variable. It is already listed here.");
    358358        } else {
    359359            strcpy(raidrec->additional_vars.el[items].label, sz_out);
     
    555555
    556556    sprintf(prompt,
    557             _("Please enter the RAID level you want. (concat, striped, raid5)"));
     557            "Please enter the RAID level you want. (concat, striped, raid5)");
    558558    if (raidrec->raidlevel == -1) {
    559559        strcpy(tmp, "concat");
     
    608608    strcpy(personalities,
    609609           last_line_of_file("/tmp/raid-personalities.txt"));
    610     sprintf(prompt, _("Please enter the RAID level you want. %s"),
     610    sprintf(prompt, "Please enter the RAID level you want. %s",
    611611            personalities);
    612612    if (raidrec->raid_level == -1) {
     
    618618         out != -1 && out != 0 && out != 1 && out != 4 && out != 5
    619619         && out != 10;) {
    620         res = popup_and_get_string(_("Specify RAID level"), prompt, tmp, 10);
     620        res = popup_and_get_string("Specify RAID level", prompt, tmp, 10);
    621621        if (!res) {
    622622            return;
     
    641641        } else {
    642642            if (ask_me_yes_or_no
    643                 (_("You have chosen a RAID personality which is not registered with the kernel. Make another selection?")))
     643                ("You have chosen a RAID personality which is not registered with the kernel. Make another selection?"))
    644644            {
    645645                out = 999;
     
    720720    assert_string_is_neither_NULL_nor_zerolength(raid_device);
    721721
    722     sprintf(tmp, _("Delete %s from RAID device %s - are you sure?"),
     722    sprintf(tmp, "Delete %s from RAID device %s - are you sure?",
    723723            disklist->el[currline].device, raid_device);
    724724    if (!ask_me_yes_or_no(tmp)) {
     
    768768                                                  device);
    769769    if (pos >= 0) {
    770         sprintf(tmp, _("Cannot delete %s: it is in use by RAID device %s"),
     770        sprintf(tmp, "Cannot delete %s: it is in use by RAID device %s",
    771771                mountlist->el[currline].device,
    772772                raidlist->el[pos].OSSWAP(raid_device, volname));
     
    774774        return;
    775775    }
    776     sprintf(tmp, _("Delete %s - are you sure?"),
     776    sprintf(tmp, "Delete %s - are you sure?",
    777777            mountlist->el[currline].device);
    778778    if (!ask_me_yes_or_no(tmp)) {
     
    829829        return;
    830830    }
    831     sprintf(tmp, _("Do you want me to delete %s's partitions, too?"), device);
     831    sprintf(tmp, "Do you want me to delete %s's partitions, too?", device);
    832832    delete_partitions_too = ask_me_yes_or_no(tmp);
    833833    if (delete_partitions_too) {
     
    896896
    897897    av = &raidrec->additional_vars;
    898     sprintf(tmp, _("Delete %s - are you sure?"), av->el[lino].label);
     898    sprintf(tmp, "Delete %s - are you sure?", av->el[lino].label);
    899899    if (ask_me_yes_or_no(tmp)) {
    900900        if (!strcmp(av->el[lino].label, "persistent-superblock")
    901901            || !strcmp(av->el[lino].label, "chunk-size")) {
    902             sprintf(tmp, _("%s must not be deleted. It would be bad."),
     902            sprintf(tmp, "%s must not be deleted. It would be bad.",
    903903                    av->el[lino].label);
    904904            popup_and_OK(tmp);
     
    967967                    warned_already = TRUE;
    968968                    sprintf(tmp,
    969                             _("Too many lines. Displaying first %d entries only. Close a directory to see more."),
     969                            "Too many lines. Displaying first %d entries only. Close a directory to see more.",
    970970                            ARBITRARY_MAXIMUM);
    971971                    popup_and_OK(tmp);
     
    11051105    assert(filelist != NULL);
    11061106
    1107     log_to_screen(_("Editing filelist"));
     1107    log_to_screen("Editing filelist");
    11081108    newtPushHelpLine
    1109         (_("   Please edit the filelist to your satisfaction, then click OK or Cancel."));
     1109        ("   Please edit the filelist to your satisfaction, then click OK or Cancel.");
    11101110    j = 4;
    1111     bLess = newtCompactButton(j, 17, _(" Less "));
    1112     bMore = newtCompactButton(j += 12, 17, _(" More "));
    1113     bToggle = newtCompactButton(j += 12, 17, _("Toggle"));
    1114     bRegex = newtCompactButton(j += 12, 17, _("RegEx"));
    1115     bCancel = newtCompactButton(j += 12, 17, _("Cancel"));
    1116     bOK = newtCompactButton(j += 12, 17, _("  OK  "));
     1111    bLess = newtCompactButton(j, 17, " Less ");
     1112    bMore = newtCompactButton(j += 12, 17, " More ");
     1113    bToggle = newtCompactButton(j += 12, 17, "Toggle");
     1114    bRegex = newtCompactButton(j += 12, 17, "RegEx");
     1115    bCancel = newtCompactButton(j += 12, 17, "Cancel");
     1116    bOK = newtCompactButton(j += 12, 17, "  OK  ");
    11171117    filelistListbox =
    11181118        newtListbox(2, 1, 15, NEWT_FLAG_SCROLL | NEWT_FLAG_RETURNEXIT);
     
    11201120    lines_in_flist_window =
    11211121        redraw_filelist(filelist, keylist, filelistListbox);
    1122     newtOpenWindow(1, 3, 77, 18, _("Editing filelist"));
     1122    newtOpenWindow(1, 3, 77, 18, "Editing filelist");
    11231123    myForm = newtForm(NULL, NULL, 0);
    11241124    newtFormAddComponents(myForm, filelistListbox, bLess, bMore, bToggle,
     
    11291129            finished =
    11301130                ask_me_yes_or_no
    1131                 (_("Are you happy with your file selection?"));
     1131                ("Are you happy with your file selection?");
    11321132        } else if (b_res == bCancel) {
    11331133            finished = TRUE;
    11341134        } else if (b_res == bRegex) {
    1135             popup_and_OK(_("I haven't implemented this yet..."));
     1135            popup_and_OK("I haven't implemented this yet...");
    11361136        } else {
    11371137            curr_choice = newtListboxGetCurrent(filelistListbox);
     
    12691269    sprintf(size_str, "%lld", mountlist->el[currline].size / 1024);
    12701270    newtOpenWindow(20, 5, 48, 10, "Edit entry");
    1271     label0 = newtLabel(2, 1, _("Device:"));
    1272     label1 = newtLabel(2, 2, _("Mountpoint:"));
    1273     label2 = newtLabel(2, 3, _("Size (MB): "));
    1274     label3 = newtLabel(2, 4, _("Format:    "));
     1271    label0 = newtLabel(2, 1, "Device:");
     1272    label1 = newtLabel(2, 2, "Mountpoint:");
     1273    label2 = newtLabel(2, 3, "Size (MB): ");
     1274    label3 = newtLabel(2, 4, "Format:    ");
    12751275    deviceComp =
    12761276        newtEntry(14, 1, device_str, 30, (void *) &device_here, 0);
     
    12851285        sizeComp = newtEntry(14, 3, size_str, 10, (void *) &size_here, 0);
    12861286    }
    1287     bOK = newtButton(2, 6, _("  OK  "));
    1288     bCancel = newtButton(14, 6, _("Cancel"));
     1287    bOK = newtButton(2, 6, "  OK  ");
     1288    bCancel = newtButton(14, 6, "Cancel");
    12891289    if (strstr(mountlist->el[currline].device, RAID_DEVICE_STUB)) {
    12901290        b_raid = newtButton(26, 6, "RAID..");
    12911291    }
    12921292    newtPushHelpLine
    1293         (_("       Edit this partition's mountpoint, size and format; then click 'OK'."));
     1293        ("       Edit this partition's mountpoint, size and format; then click 'OK'.");
    12941294    myForm = newtForm(NULL, NULL, 0);
    12951295    newtFormAddComponents(myForm, deviceComp, mountpointComp, sizeComp,
     
    13071307            && strstr(device_used_to_be, RAID_DEVICE_STUB)
    13081308            && strcmp(device_str, device_used_to_be)) {
    1309             popup_and_OK(_("You can't change /dev/mdX to /dev/mdY."));
     1309            popup_and_OK("You can't change /dev/mdX to /dev/mdY.");
    13101310            b_res = NULL;
    13111311            continue;
    13121312        } else if (b_res == bOK && !strcmp(mountpoint_str, "image")
    13131313                   && strcmp(mountpt_used_to_be, "image")) {
    1314             popup_and_OK(_("You can't change a regular device to an image."));
     1314            popup_and_OK("You can't change a regular device to an image.");
    13151315            b_res = NULL;
    13161316            continue;
     
    13351335                 */
    13361336                popup_and_OK
    1337                     (_("You cannot edit the RAID settings until you have OK'd your change to the device node."));
     1337                    ("You cannot edit the RAID settings until you have OK'd your change to the device node.");
    13381338            } else {
    13391339                j = find_raid_device_in_raidlist(raidlist,
     
    13421342                if (j < 0) {
    13431343                    sprintf(tmp,
    1344                             _("/etc/raidtab does not have an entry for %s; please delete it and add it again"),
     1344                            "/etc/raidtab does not have an entry for %s; please delete it and add it again",
    13451345                            mountlist->el[currline].device);
    13461346                    popup_and_OK(tmp);
    13471347                } else {
    1348                     log_it(_("edit_raidlist_entry - calling"));
     1348                    log_it("edit_raidlist_entry - calling");
    13491349                    edit_raidlist_entry(mountlist, raidlist,
    13501350                                        &raidlist->el[j], currline);
     
    13961396    else if (strcmp(device_used_to_be, device_str)) {
    13971397        popup_and_OK
    1398             (_("You are renaming a RAID device as another RAID device. I don't like it but I'll allow it."));
     1398            ("You are renaming a RAID device as another RAID device. I don't like it but I'll allow it.");
    13991399    }
    14001400#endif
     
    15061506    int currline2 = 0;
    15071507
    1508     log_it(_("Started edit_raidlist_entry"));
     1508    log_it("Started edit_raidlist_entry");
    15091509    memcpy((void *) &bkp_raidrec, (void *) raidrec,
    15101510           sizeof(struct vinum_volume));
    1511     sprintf(title_of_editraidForm_window, _("Plexes on %s"),
     1511    sprintf(title_of_editraidForm_window, "Plexes on %s",
    15121512            raidrec->volname);
    1513     newtPushHelpLine(_("   Please select a plex to edit"));
     1513    newtPushHelpLine("   Please select a plex to edit");
    15141514    newtOpenWindow(13, 5, 54, 15, title_of_editraidForm_window);
    15151515    for (;;) {
     
    15171517        char headerstr[MAX_STR_LEN];
    15181518        snprintf(headerstr, MAX_STR_LEN, "%-14s %-8s  %11s  %8s",
    1519                  _("Plex"), _("Level",) _("Stripe Size"), _("Subdisks"));
    1520 
    1521         bOK = newtCompactButton(2, 13, _("  OK  "));
    1522         bCancel = newtCompactButton(12, 13, _("Cancel"));
    1523         bAdd = newtCompactButton(22, 13, _(" Add "));
    1524         bEdit = newtCompactButton(32, 13, _(" Edit "));
    1525         bDelete = newtCompactButton(42, 13, _("Delete"));
     1519                 "Plex", "Level", "Stripe Size", "Subdisks");
     1520
     1521        bOK = newtCompactButton(2, 13, "  OK  ");
     1522        bCancel = newtCompactButton(12, 13, "Cancel");
     1523        bAdd = newtCompactButton(22, 13, " Add ");
     1524        bEdit = newtCompactButton(32, 13, " Edit ");
     1525        bDelete = newtCompactButton(42, 13, "Delete");
    15261526
    15271527        plexesListbox =
     
    15831583        if (b_res == bDelete) {
    15841584            char msg[MAX_STR_LEN];
    1585             sprintf(msg, _("Are you sure you want to delete %s.p%i?"),
     1585            sprintf(msg, "Are you sure you want to delete %s.p%i?",
    15861586                    raidrec->volname, currline2);
    15871587            if (ask_me_yes_or_no(msg)) {
    1588                 log_it(_("Deleting RAID plex"));
     1588                log_it("Deleting RAID plex");
    15891589                memcpy((void *) &raidrec->plex[currline2],
    15901590                       (void *) &raidrec->plex[raidrec->plexes - 1],
     
    16601660    for (;;) {
    16611661        log_msg(2, "Main loop");
    1662         sprintf(title_of_editraidForm_window, _("Edit %s"),
     1662        sprintf(title_of_editraidForm_window, "Edit %s",
    16631663                raidrec->raid_device);
    16641664        strcpy(sz_raid_level,
     
    16661666        strcpy(sz_data_disks,
    16671667               number_of_disks_as_string(raidrec->data_disks.entries,
    1668                                          _("data")));
     1668                                         "data"));
    16691669        strcpy(sz_spare_disks,
    16701670               number_of_disks_as_string(raidrec->spare_disks.entries,
    1671                                          _("spare")));
     1671                                         "spare"));
    16721672        strcpy(sz_parity_disks,
    16731673               number_of_disks_as_string(raidrec->parity_disks.entries,
    1674                                          _("parity")));
     1674                                         "parity"));
    16751675        strcpy(sz_failed_disks,
    16761676               number_of_disks_as_string(raidrec->failed_disks.entries,
    1677                                          _("failed")));
     1677                                         "failed"));
    16781678        bSelectData = newtButton(1, 1, sz_data_disks);
    16791679        bSelectSpare = newtButton(20, 1, sz_spare_disks);
     
    16811681        bSelectFailed = newtButton(20, 5, sz_failed_disks);
    16821682        bChangeRaid = newtButton(1, 9, sz_raid_level);
    1683         bOK = newtButton(16 + (raidrec->raid_level == -1), 9, _("  OK  "));
    1684         bCancel = newtButton(28, 9, _("Cancel"));
     1683        bOK = newtButton(16 + (raidrec->raid_level == -1), 9, "  OK  ");
     1684        bCancel = newtButton(28, 9, "Cancel");
    16851685        bAdditional =
    16861686            newtCompactButton(1, 13,
    1687                               _("Additional settings and information"));
     1687                              "Additional settings and information");
    16881688        newtPushHelpLine
    1689             (_("  Edit the RAID device's settings to your heart's content, then hit OK/Cancel."));
     1689            ("  Edit the RAID device's settings to your heart's content, then hit OK/Cancel.");
    16901690        editraidForm = newtForm(NULL, NULL, 0);
    16911691        newtFormAddComponents(editraidForm, bSelectData, bSelectParity,
     
    16961696            choose_raid_level(raidrec);
    16971697        } else if (b_res == bSelectData) {
    1698             select_raid_disks(mountlist, raidlist, raidrec, _("data"),
     1698            select_raid_disks(mountlist, raidlist, raidrec, "data",
    16991699                              &raidrec->data_disks);
    17001700        } else if (b_res == bSelectSpare) {
    1701             select_raid_disks(mountlist, raidlist, raidrec, _("spare"),
     1701            select_raid_disks(mountlist, raidlist, raidrec, "spare",
    17021702                              &raidrec->spare_disks);
    17031703        } else if (b_res == bSelectParity) {
    1704             select_raid_disks(mountlist, raidlist, raidrec, _("parity"),
     1704            select_raid_disks(mountlist, raidlist, raidrec, "parity",
    17051705                              &raidrec->parity_disks);
    17061706        } else if (b_res == bSelectFailed) {
    1707             select_raid_disks(mountlist, raidlist, raidrec, _("failed"),
     1707            select_raid_disks(mountlist, raidlist, raidrec, "failed",
    17081708                              &raidrec->failed_disks);
    17091709        } else if (b_res == bAdditional) {
     
    17861786            raidlist->el[currline].volname, currline2);
    17871787    newtPushHelpLine
    1788         (_("   Please select a subdisk to edit, or edit this plex's parameters"));
     1788        ("   Please select a subdisk to edit, or edit this plex's parameters");
    17891789    newtOpenWindow(13, 3, 54, 18, title_of_editraidForm_window);
    17901790    for (;;) {
     
    17921792        char headerstr[MAX_STR_LEN];
    17931793        char tmp[64];
    1794         snprintf(headerstr, MAX_STR_LEN, "%-24s %s", _("Subdisk"), _("Device"));
     1794        snprintf(headerstr, MAX_STR_LEN, "%-24s %s", "Subdisk", "Device");
    17951795
    17961796
     
    18061806            break;
    18071807        default:
    1808             sprintf(tmp, _("unknown (%i)"), raidrec->raidlevel);
     1808            sprintf(tmp, "unknown (%i)", raidrec->raidlevel);
    18091809            break;
    18101810        }
    1811         bLevel = newtCompactButton(2, 2, _(" RAID level "));
     1811        bLevel = newtCompactButton(2, 2, " RAID level ");
    18121812        sLevel = newtLabel(19, 2, tmp);
    18131813
    18141814        if (raidrec->raidlevel >= 0) {
    18151815            sprintf(tmp, "%ik", raidrec->stripesize);
    1816             bStripeSize = newtCompactButton(2, 4, _(" Stripe size "));
     1816            bStripeSize = newtCompactButton(2, 4, " Stripe size ");
    18171817        } else {
    18181818            strcpy(tmp, "N/A");
    1819             bStripeSize = newtLabel(2, 4, _("Stripe size:"));
     1819            bStripeSize = newtLabel(2, 4, "Stripe size:");
    18201820        }
    18211821        sStripeSize = newtLabel(19, 4, tmp);
    18221822
    1823         bOK = newtCompactButton(2, 16, _("  OK  "));
    1824         bCancel = newtCompactButton(12, 16, _("Cancel"));
    1825         bAdd = newtCompactButton(22, 16, _(" Add "));
    1826         bEdit = newtCompactButton(32, 16, _(" Edit "));
    1827         bDelete = newtCompactButton(42, 16, _("Delete"));
     1823        bOK = newtCompactButton(2, 16, "  OK  ");
     1824        bCancel = newtCompactButton(12, 16, "Cancel");
     1825        bAdd = newtCompactButton(22, 16, " Add ");
     1826        bEdit = newtCompactButton(32, 16, " Edit ");
     1827        bDelete = newtCompactButton(42, 16, "Delete");
    18281828
    18291829
     
    19111911            sprintf(tmp, "%i", raidrec->stripesize);
    19121912            if (popup_and_get_string
    1913                 (_("Stripe size"),
    1914                  _("Please enter the stripe size in kilobytes."), tmp, 20)) {
     1913                ("Stripe size",
     1914                 "Please enter the stripe size in kilobytes.", tmp, 20)) {
    19151915                raidrec->stripesize = atoi(tmp);
    19161916            }
     
    19631963
    19641964    strcpy(sz_out, raidrec->additional_vars.el[lino].value);
    1965     sprintf(header, _("Edit %s"), raidrec->additional_vars.el[lino].label);
    1966     sprintf(comment, _("Please set %s's value (currently '%s')"),
     1965    sprintf(header, "Edit %s", raidrec->additional_vars.el[lino].label);
     1966    sprintf(comment, "Please set %s's value (currently '%s')",
    19671967            raidrec->additional_vars.el[lino].label, sz_out);
    19681968    if (popup_and_get_string(header, comment, sz_out, MAX_STR_LEN)) {
     
    20262026    strcpy(flaws_str_C, "xxxxxxxxx");
    20272027    if (mountlist->entries > ARBITRARY_MAXIMUM) {
    2028         log_to_screen(_("Arbitrary limits suck, man!"));
     2028        log_to_screen("Arbitrary limits suck, man!");
    20292029        finish(1);
    20302030    }
    20312031    newtPushHelpLine
    2032         (_("   Please edit the mountlist to your satisfaction, then click OK or Cancel."));
     2032        ("   Please edit the mountlist to your satisfaction, then click OK or Cancel.");
    20332033    i = 4;
    2034     bAdd = newtCompactButton(i, 17, _(" Add "));
    2035     bEdit = newtCompactButton(i += 11, 17, _(" Edit "));
    2036     bDelete = newtCompactButton(i += 12, 17, _("Delete"));
    2037     bReload = newtCompactButton(i += 12, 17, _("Reload"));
    2038     bCancel = newtCompactButton(i += 12, 17, _("Cancel"));
    2039     bOK = newtCompactButton(i += 12, 17, _("  OK  "));
    2040     sprintf(tmp, "%-24s %-24s %-8s  %s", _("Device"), _("Mountpoint"), _("Format"),
    2041             _("Size (MB)"));
     2034    bAdd = newtCompactButton(i, 17, " Add ");
     2035    bEdit = newtCompactButton(i += 11, 17, " Edit ");
     2036    bDelete = newtCompactButton(i += 12, 17, "Delete");
     2037    bReload = newtCompactButton(i += 12, 17, "Reload");
     2038    bCancel = newtCompactButton(i += 12, 17, "Cancel");
     2039    bOK = newtCompactButton(i += 12, 17, "  OK  ");
     2040    sprintf(tmp, "%-24s %-24s %-8s  %s", "Device", "Mountpoint", "Format",
     2041            "Size (MB)");
    20422042    headerMsg = newtLabel(2, 1, tmp);
    20432043    flawsLabelA = newtLabel(2, 13, flaws_str_A);
     
    20472047        newtListbox(2, 2, 10, NEWT_FLAG_SCROLL | NEWT_FLAG_RETURNEXIT);
    20482048    redraw_mountlist(mountlist, keylist, partitionsListbox);
    2049     newtOpenWindow(1, 3, 77, 18, _("Editing mountlist"));
     2049    newtOpenWindow(1, 3, 77, 18, "Editing mountlist");
    20502050    myForm = newtForm(NULL, NULL, 0);
    20512051    newtFormAddComponents(myForm, headerMsg, partitionsListbox,
     
    20642064                finished =
    20652065                    ask_me_yes_or_no
    2066                     (_("Your mountlist might not work. Continue anyway?"));
     2066                    ("Your mountlist might not work. Continue anyway?");
    20672067            } else {
    20682068                finished =
    20692069                    ask_me_yes_or_no
    2070                     (_("Are you sure you want to save your mountlist and continue? (No changes will be made to your partition table at this time.)"));
     2070                    ("Are you sure you want to save your mountlist and continue? (No changes will be made to your partition table at this time.)");
    20712071            }
    20722072        } else if (b_res == bCancel) {
    20732073            finished = TRUE;
    20742074        } else if (b_res == bReload) {
    2075             if (ask_me_yes_or_no(_("Reload original mountlist?"))) {
     2075            if (ask_me_yes_or_no("Reload original mountlist?")) {
    20762076/*
    20772077This would be really dumb. RAIDTAB_FNAME is #define'd.   --- Hugo, 2003/04/24
     
    20912091                 i < mountlist->entries && keylist[i] != curr_choice; i++);
    20922092            if (i == mountlist->entries && mountlist->entries > 0) {
    2093                 log_to_screen(_("I don't know what that button does!"));
     2093                log_to_screen("I don't know what that button does!");
    20942094            } else {
    20952095                currline = i;
     
    21092109                    } else {
    21102110                        popup_and_OK
    2111                             (_("Please add an entry. Then press ENTER to edit it."));
     2111                            ("Please add an entry. Then press ENTER to edit it.");
    21122112                    }
    21132113                }
     
    21192119    newtPopHelpLine();
    21202120    if (b_res == bOK) {
    2121         log_it(_("You pushed 'OK'. I shall now continue."));
     2121        log_it("You pushed 'OK'. I shall now continue.");
    21222122        return (0);
    21232123    } else {
     
    21982198    sprintf(title_of_window, "Additional variables");
    21992199    newtPushHelpLine
    2200         (_("  Edit the additional fields to your heart's content, then click OK or Cancel."));
    2201     headerMsg = newtLabel(1, 1, _("Label                            Value"));
     2200        ("  Edit the additional fields to your heart's content, then click OK or Cancel.");
     2201    headerMsg = newtLabel(1, 1, "Label                            Value");
    22022202    varsListbox =
    22032203        newtListbox(1, 2, 6, NEWT_FLAG_SCROLL | NEWT_FLAG_RETURNEXIT);
    22042204    i = 1;
    2205     bAdd = newtCompactButton(i, 9, _(" Add "));
    2206     bEdit = newtCompactButton(i += 8, 9, _(" Edit "));
    2207     bDelete = newtCompactButton(i += 9, 9, _("Delete"));
    2208     bOK = newtCompactButton(i += 9, 9, _("  OK  "));
    2209     bCancel = newtCompactButton(i += 9, 9, _("Cancel"));
     2205    bAdd = newtCompactButton(i, 9, " Add ");
     2206    bEdit = newtCompactButton(i += 8, 9, " Edit ");
     2207    bDelete = newtCompactButton(i += 9, 9, "Delete");
     2208    bOK = newtCompactButton(i += 9, 9, "  OK  ");
     2209    bCancel = newtCompactButton(i += 9, 9, "Cancel");
    22102210    newtOpenWindow(17, 7, 46, 10, title_of_window);
    22112211    myForm = newtForm(NULL, NULL, 0);
     
    23282328 * @param isodir_device Where to put the device (e.g. /dev/hda4) the user enters.
    23292329 * @param isodir_format Where to put the format (e.g. ext2) the user enters.
    2330  * @param isodir_path Where to put the path (e.g. /var/cache/mondo) the user enters.
     2330 * @param isodir_path Where to put the path (e.g. /root/images/mondo) the user enters.
    23312331 * @param nuke_me_please Whether we're planning on nuking or not.
    23322332 * @return TRUE if OK was pressed, FALSE otherwise.
     
    23612361
    23622362    if (popup_and_get_string
    2363         (_("ISO Mode - device"), _("On what device do the ISO files live?"),
     2363        ("ISO Mode - device", "On what device do the ISO files live?",
    23642364         isodir_device, MAX_STR_LEN / 4)) {
    23652365        if (popup_and_get_string
    2366             (_("ISO Mode - format"),
    2367              _("What is the disk format of the device? (Hit ENTER if you don't know.)"),
     2366            ("ISO Mode - format",
     2367             "What is the disk format of the device? (Hit ENTER if you don't know.)",
    23682368             isodir_format, 16)) {
    23692369            if (popup_and_get_string
    2370                 (_("ISO Mode - path"),
    2371                  _("At what path on this device can the ISO files be found?"),
     2370                ("ISO Mode - path",
     2371                 "At what path on this device can the ISO files be found?",
    23722372                 isodir_path, MAX_STR_LEN / 4)) {
    23732373                strip_spaces(isodir_device);
     
    24672467
    24682468    newtPushHelpLine
    2469         (_("This is where I nuke your hard drives. Mhahahahaha. No-one can stop Mojo Jojo!"));
    2470     newtOpenWindow(24, 3, 32, 13, _("Nuking"));
    2471     b1 = newtButton(7, 1, _("Slowly"));
    2472     b2 = newtButton(7, 5, _("Medium"));
    2473     b3 = newtButton(7, 9, _("Quickly"));
     2469        ("This is where I nuke your hard drives. Mhahahahaha. No-one can stop Mojo Jojo!");
     2470    newtOpenWindow(24, 3, 32, 13, "Nuking");
     2471    b1 = newtButton(7, 1, "Slowly");
     2472    b2 = newtButton(7, 5, "Medium");
     2473    b3 = newtButton(7, 9, "Quickly");
    24742474    myForm = newtForm(NULL, NULL, 0);
    24752475    newtFormAddComponents(myForm, b1, b2, b3, NULL);
     
    28372837    iamhere("Post-malloc");
    28382838    strcpy(help_text,
    2839            _("   Edit this RAID device's list of partitions. Choose OK or Cancel when done."));
    2840     sprintf(header_text, "%-24s    %s", _("Device"), _("Index"));
    2841     sprintf(title_of_window, _("%s contains..."), raidrec->raid_device);
     2839           "   Edit this RAID device's list of partitions. Choose OK or Cancel when done.");
     2840    sprintf(header_text, "%-24s    %s", "Device", "Index");
     2841    sprintf(title_of_window, "%s contains...", raidrec->raid_device);
    28422842    newtPushHelpLine(help_text);
    28432843    for (b_res = (newtComponent) 12345; b_res != bOK && b_res != bCancel;) {
     
    28472847        redraw_disklist(disklist, keylist, partitionsListbox);
    28482848        i = 1;
    2849         bAdd = newtCompactButton(i, 9, _(" Add "));
    2850         bDelete = newtCompactButton(i += 8, 9, _("Delete"));
    2851         bOK = newtCompactButton(i += 9, 9, _("  OK  "));
    2852         bCancel = newtCompactButton(i += 9, 9, _("Cancel"));
     2849        bAdd = newtCompactButton(i, 9, " Add ");
     2850        bDelete = newtCompactButton(i += 8, 9, "Delete");
     2851        bOK = newtCompactButton(i += 9, 9, "  OK  ");
     2852        bCancel = newtCompactButton(i += 9, 9, "Cancel");
    28532853        newtOpenWindow(21, 7, 38, 10, title_of_window);
    28542854        myForm = newtForm(NULL, NULL, 0);
     
    28692869                 i++);
    28702870            if (i == disklist->entries && disklist->entries > 0) {
    2871                 log_to_screen(_("I don't know what that button does!"));
     2871                log_to_screen("I don't know what that button does!");
    28722872            } else {
    28732873                currline = i;
    28742874                if (b_res == bAdd) {
    2875                     log_it(_("Making list of unallocated RAID slices"));
     2875                    log_it("Making list of unallocated RAID slices");
    28762876                    make_list_of_unallocated_raid_partitions
    28772877                        (unallocated_raid_partitions, mountlist_dontedit,
     
    28792879                    if (unallocated_raid_partitions->entries <= 0) {
    28802880                        popup_and_OK
    2881                             (_("There are no unallocated partitions marked for RAID."));
     2881                            ("There are no unallocated partitions marked for RAID.");
    28822882                    } else {
    28832883                        log_it
    2884                             (_("Done. The user may add one or more of the above to RAID device"));
     2884                            ("Done. The user may add one or more of the above to RAID device");
    28852885                        add_disklist_entry(disklist, raidrec->raid_device,
    28862886                                           unallocated_raid_partitions);
    2887                         log_it(_("I have finished adding a disklist entry."));
     2887                        log_it("I have finished adding a disklist entry.");
    28882888                        redraw_disklist(disklist, keylist,
    28892889                                        partitionsListbox);
     
    28942894                    redraw_disklist(disklist, keylist, partitionsListbox);
    28952895                } else {
    2896                     sprintf(tmp, _("%s's index is %d. What should it be?"),
     2896                    sprintf(tmp, "%s's index is %d. What should it be?",
    28972897                            raidrec->raid_device,
    28982898                            disklist->el[currline].index);
    28992899                    sprintf(sz_res, "%d", disklist->el[currline].index);
    2900                     if (popup_and_get_string(_("Set index"), tmp, sz_res, 10)) {
     2900                    if (popup_and_get_string("Set index", tmp, sz_res, 10)) {
    29012901                        disklist->el[currline].index = atoi(sz_res);
    29022902                    }
     
    29552955        for (output = 'z'; !strchr("AICE", output); output = tmp[0]) {
    29562956            printf
    2957                 (_("Which mode - (A)utomatic, (I)nteractive, \n(C)ompare only, or (E)xit to shell?\n--> "));
     2957                ("Which mode - (A)utomatic, (I)nteractive, \n(C)ompare only, or (E)xit to shell?\n--> ");
    29582958            fgets(tmp, MAX_STR_LEN - 1, stdin);
    29592959        }
     
    29622962
    29632963    newtPushHelpLine
    2964         (_("   Do you want to 'nuke' your system, restore interactively, or just compare?"));
    2965     newtOpenWindow(24, 3, 32, 17, _("How should I restore?"));
    2966     b1 = newtButton(7, 1, _("Automatically"));
    2967     b2 = newtButton(7, 5, _("Interactively"));
    2968     b3 = newtButton(7, 9, _("Compare only!"));
    2969     b4 = newtButton(7, 13, _("Exit to shell"));
     2964        ("   Do you want to 'nuke' your system, restore interactively, or just compare?");
     2965    newtOpenWindow(24, 3, 32, 17, "How should I restore?");
     2966    b1 = newtButton(7, 1, "Automatically");
     2967    b2 = newtButton(7, 5, "Interactively");
     2968    b3 = newtButton(7, 9, "Compare only!");
     2969    b4 = newtButton(7, 13, "Exit to shell");
    29702970    myForm = newtForm(NULL, NULL, 0);
    29712971    newtFormAddComponents(myForm, b1, b2, b3, b4, NULL);
Note: See TracChangeset for help on using the changeset viewer.