From: H.G. Muller Date: Tue, 10 Apr 2012 18:21:56 +0000 (+0200) Subject: Fix internationalization X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=b49a6a0960d616764b326c89d54337b349f8519e;p=xboard.git Fix internationalization The internationalization was broken by moving the XtSetLanguageProc to behind 'bindtextdomain'. --- 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),