X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=0726adea920d0696f43218041e893d1999747c91;hb=0d5d98e82dac22b0873aaf9fea8a1b13e1f9f349;hp=7f1d394a5d80cab14adb7407dd2f640e90270da0;hpb=9d455a7f4ce66cc25d540d4dc5a65fdb1895cc2e;p=xboard.git diff --git a/xboard.c b/xboard.c index 7f1d394..0726ade 100644 --- a/xboard.c +++ b/xboard.c @@ -1193,6 +1193,11 @@ main (int argc, char **argv) programName++; #ifdef ENABLE_NLS + XtSetLanguageProc(NULL, NULL, NULL); + if (appData.debugMode) { + fprintf(debugFP, "locale = %s\n", setlocale(LC_ALL, NULL)); + } + bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); #endif @@ -1256,12 +1261,6 @@ main (int argc, char **argv) XtAppInitialize(&appContext, "XBoard", shellOptions, XtNumber(shellOptions), &argc, argv, xboardResources, NULL, 0); -#ifdef ENABLE_NLS - XtSetLanguageProc(NULL, NULL, NULL); - if (appData.debugMode) { - fprintf(debugFP, "locale = %s\n", setlocale(LC_ALL, NULL)); - } -#endif XtGetApplicationResources(shellWidget, (XtPointer) &appData, clientResources, XtNumber(clientResources),