#include "backend.h"
#include "xboard.h"
#include "xhistory.h"
+#include "gettext.h"
+#ifdef ENABLE_NLS
+# define _(s) gettext (s)
+# define N_(s) gettext_noop (s)
+#else
+# define _(s) (s)
+# define N_(s) s
+#endif
#define _LL_ 100
hist->black[0]=(String)malloc(hist->aNr*MOVE_LEN);
sprintf(hist->Nr[0]," ");
- sprintf(hist->white[0],"White ");
- sprintf(hist->black[0],"Black ");
+ sprintf(hist->white[0],_("White "));
+ sprintf(hist->black[0],_("Black "));
for(i=1;i<hist->aNr;i++){
hist->Nr[i]= hist->Nr[i-1]+6;
hist->white[i]= hist->white[i-1]+MOVE_LEN;
XtSetArg(args[j], XtNallowShellResize, True); j++;
#if TOPLEVEL
hist->sh =
- XtCreatePopupShell("Move list", topLevelShellWidgetClass,
+ XtCreatePopupShell(_("Move list"), topLevelShellWidgetClass,
shellWidget, args, j);
#else
hist->sh =
- XtCreatePopupShell("Move list", transientShellWidgetClass,
+ XtCreatePopupShell(_("Move list"), transientShellWidgetClass,
shellWidget, args, j);
#endif
j = 0;
XtSetArg(args[j], XtNleft, XtChainLeft); j++;
XtSetArg(args[j], XtNright, XtChainLeft); j++;
XtSetArg(args[j], XtNfromVert, hist->viewport); j++;
- b_close= XtCreateManagedWidget("Close", commandWidgetClass,
+ b_close= XtCreateManagedWidget(_("Close"), commandWidgetClass,
form, args, j);
XtAddCallback(b_close, XtNcallback, HistoryPopDown, (XtPointer) 0);