Changeset 28236


Ignore:
Timestamp:
04/01/14 14:53:55 (10 years ago)
Author:
obi
Message:

fix videomode translate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/restoredefault.h

    r27845 r28236  
    6161        struct menulist* mlist = NULL, *mbox = NULL;
    6262
    63         addmenulist(&mlist, _("Restore default settings"), NULL, NULL, 0, 0);
     63// needed for autopo
     64        char* tmpstr = NULL;
     65        tmpstr = ostrcat(tmpstr, _("Restore default settings"), 1, 0);
     66        tmpstr = ostrcat(tmpstr, _("Format MNT with Backup/Restore"), 1, 0);
     67        tmpstr = ostrcat(tmpstr, _("Format MNT (all)"), 1, 0);
     68        free(tmpstr), tmpstr = NULL;
     69
     70        addmenulist(&mlist, "Restore default settings", NULL, NULL, 0, 0);
    6471        if(checkbox("ATEMIO5000") != 1 && checkbox("ATEMIO5200") != 1)
    6572        {
    66                 addmenulist(&mlist, _("Format MNT with Backup/Restore"), NULL, NULL, 0, 0);
    67                 addmenulist(&mlist, _("Format MNT (all)"), NULL, NULL, 0, 0);
     73                addmenulist(&mlist, "Format MNT with Backup/Restore", NULL, NULL, 0, 0);
     74                addmenulist(&mlist, "Format MNT (all)", NULL, NULL, 0, 0);
    6875        }
    6976
     
    7279        if(mbox != NULL)
    7380        {
    74                 if(ostrcmp(mbox->name, _("Restore default settings")) == 0)
     81                if(ostrcmp(mbox->name, "Restore default settings") == 0)
    7582                {
    7683                        screenrestoredefault();
    7784                }
    78                 else if(ostrcmp(mbox->name, _("Format MNT with Backup/Restore")) == 0)
     85                else if(ostrcmp(mbox->name, "Format MNT with Backup/Restore") == 0)
    7986                {
    8087                        screenbackuperaseswap();
    8188                }
    82                 else if(ostrcmp(mbox->name, _("Format MNT (all)")) == 0)
     89                else if(ostrcmp(mbox->name, "Format MNT (all)") == 0)
    8390                {
    8491                        screeneraseswap();
Note: See TracChangeset for help on using the changeset viewer.