Undo translation of cps->which = first/second
authorH.G. Muller <h.g.muller@hccnet.nl>
Wed, 22 Feb 2012 18:58:41 +0000 (19:58 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Wed, 22 Feb 2012 18:58:41 +0000 (19:58 +0100)
The string in cps->which should not be translated, because it goes into
the debug file to label engine I/O, and many tools for processing
debug files (broadcasters, PGN extractors) rely on this being "first" or
"second". In all contexts where "first" and "second" need to be translated,
cps->which itself is already enclosed in _().

backend.c

index 59103ed..9b0fb08 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -748,7 +748,7 @@ InitEngine (ChessProgramState *cps, int n)
 
     ClearOptions(cps);
 
-    cps->which = _(engineNames[n]);
+    cps->which = engineNames[n];
     cps->maybeThinking = FALSE;
     cps->pr = NoProc;
     cps->isr = NULL;