From: Byrial Jensen Date: Thu, 16 Feb 2012 21:51:44 +0000 (+0100) Subject: Mark the strings "first" and "sencond" for translation. X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=910f840f6aee2b8c71ba529b6e06fcf70780615e;p=xboard.git Mark the strings "first" and "sencond" for translation. ... and assign the translated strings to cps->which in function InitEngine() --- diff --git a/backend.c b/backend.c index 313c8d2..7188448 100644 --- a/backend.c +++ b/backend.c @@ -734,8 +734,12 @@ ClearOptions (ChessProgramState *cps) } char *engineNames[] = { -"first", -"second" + /* TRANSLATORS: "first" is the first of possible two chess engines. It is inserted into strings + such as "% engine" / "%s chess program" / "%s machine" - all mening the same thing */ +N_("first"), + /* TRANSLATORS: "second" is the second of possible two chess engines. It is inserted into strings + such as "% engine" / "%s chess program" / "%s machine" - all mening the same thing */ +N_("second") }; void @@ -744,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;