From 910f840f6aee2b8c71ba529b6e06fcf70780615e Mon Sep 17 00:00:00 2001 From: Byrial Jensen Date: Thu, 16 Feb 2012 22:51:44 +0100 Subject: [PATCH] Mark the strings "first" and "sencond" for translation. ... and assign the translated strings to cps->which in function InitEngine() --- backend.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) 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; -- 1.7.0.4