From: Mark W. <ri...@us...> - 2002-07-31 19:17:30
|
Update of /cvsroot/ipcop/ipcop/src/install+setup/install In directory usw-pr-cvs1:/tmp/cvs-serv2948/src/install+setup/install Modified Files: Tag: IPCOP_v0_1 main.c Log Message: Finalized ipcop 0.1.2pre4 Index: main.c =================================================================== RCS file: /cvsroot/ipcop/ipcop/src/install+setup/install/Attic/main.c,v retrieving revision 1.6.2.12 retrieving revision 1.6.2.13 diff -C2 -d -r1.6.2.12 -r1.6.2.13 *** main.c 6 Jul 2002 13:33:37 -0000 1.6.2.12 --- main.c 31 Jul 2002 19:17:25 -0000 1.6.2.13 *************** *** 23,32 **** extern char *english_tr[]; extern char *german_tr[]; int main(int argc, char *argv[]) { ! char *langnames[] = { "Deutsch", "English", NULL }; ! char *shortlangnames[] = { "de", "en", NULL }; ! char **langtrs[] = { german_tr, english_tr, NULL }; char hdletter, cdromletter; /* Drive letter holder. */ struct devparams hdparams, cdromparams; /* Params for CDROM and HD */ --- 23,33 ---- extern char *english_tr[]; extern char *german_tr[]; + extern char *turkish_tr[]; int main(int argc, char *argv[]) { ! char *langnames[] = { "Deutsch", "English", "Turkish", NULL }; ! char *shortlangnames[] = { "de", "en", "tr", NULL }; ! char **langtrs[] = { german_tr, english_tr, turkish_tr, NULL }; char hdletter, cdromletter; /* Drive letter holder. */ struct devparams hdparams, cdromparams; /* Params for CDROM and HD */ *************** *** 90,94 **** ctr = langtrs[choice]; strcpy(shortlangname, shortlangnames[choice]); ! newtDrawRootText(7, 0, NAME " v" VERSION " - " SLOGAN ); newtPushHelpLine(ctr[TR_HELPLINE]); --- 91,98 ---- ctr = langtrs[choice]; strcpy(shortlangname, shortlangnames[choice]); ! ! if (strcmp(shortlangname, "tr")) ! setlocale (LC_ALL, "tr_TR"); ! newtDrawRootText(7, 0, NAME " v" VERSION " - " SLOGAN ); newtPushHelpLine(ctr[TR_HELPLINE]); |