From: Arun Persaud Date: Sat, 23 Apr 2011 04:50:58 +0000 (-0700) Subject: marked more strings for gettext that were only marked with N_() X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=e3f995ed4b4ea3c8e3fe203fb3e575bba8bd7ab2;p=xboard.git marked more strings for gettext that were only marked with N_() they need to be marked again with _() when they are used to get the translated string --- diff --git a/xboard.c b/xboard.c index 1ec1cd2..0e953f8 100644 --- a/xboard.c +++ b/xboard.c @@ -3797,10 +3797,10 @@ void CreateMenuBarPopup(parent, name, mb) mi = mb->mi; while (mi->string != NULL) { if (strcmp(mi->string, "----") == 0) { - entry = XtCreateManagedWidget(mi->string, smeLineObjectClass, + entry = XtCreateManagedWidget(_(mi->string), smeLineObjectClass, menu, args, j); } else { - XtSetArg(args[j], XtNlabel, XtNewString(mi->string)); + XtSetArg(args[j], XtNlabel, XtNewString(_(mi->string))); entry = XtCreateManagedWidget(mi->ref, smeBSBObjectClass, menu, args, j+1); XtAddCallback(entry, XtNcallback, @@ -3838,7 +3838,7 @@ Widget CreateMenuBar(mb) XtSetArg(args[j], XtNlabel, XtNewString(shortName)); j++; } else { - XtSetArg(args[j], XtNlabel, XtNewString(mb->name)); j++; + XtSetArg(args[j], XtNlabel, XtNewString(_(mb->name))); j++; } XtSetArg(args[j], XtNborderWidth, 0); j++;