marked more strings for gettext that were only marked with N_()
authorArun Persaud <arun@nubati.net>
Sat, 23 Apr 2011 04:50:58 +0000 (21:50 -0700)
committerArun Persaud <arun@nubati.net>
Sat, 23 Apr 2011 04:50:58 +0000 (21:50 -0700)
they need to be marked again with _() when they are used to get the translated string

xboard.c

index 1ec1cd2..0e953f8 100644 (file)
--- 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++;