From b49a6a0960d616764b326c89d54337b349f8519e Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 10 Apr 2012 20:21:56 +0200 Subject: [PATCH] Fix internationalization The internationalization was broken by moving the XtSetLanguageProc to behind 'bindtextdomain'. --- xboard.c | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) 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), -- 1.7.0.4