From 3ba8afd8c058bfd2a62b3fb73699a824537fc322 Mon Sep 17 00:00:00 2001 From: Byrial Jensen Date: Mon, 19 Dec 2011 13:16:58 +0100 Subject: [PATCH] Add 2 strings for translation --- gamelist.c | 11 ++++++++++- po/POTFILES.in | 1 + xgamelist.c | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gamelist.c b/gamelist.c index cb66eaa..8497192 100644 --- a/gamelist.c +++ b/gamelist.c @@ -43,6 +43,15 @@ #include "backend.h" #include "parser.h" #include "moves.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 /* Variables @@ -363,7 +372,7 @@ int GameListBuild(f) break; } if(gameNumber % 1000 == 0) { - snprintf(buf, MSG_SIZ,"Reading game file (%d)", gameNumber); + snprintf(buf, MSG_SIZ, _("Reading game file (%d)"), gameNumber); DisplayTitle(buf); } } diff --git a/po/POTFILES.in b/po/POTFILES.in index 9a38202..1b31d76 100755 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -2,6 +2,7 @@ backend.c book.c engineoutput.c filebrowser/selfile.c +gamelist.c xboard.c xedittags.c xengineoutput.c diff --git a/xgamelist.c b/xgamelist.c index 95ce188..608e82e 100644 --- a/xgamelist.c +++ b/xgamelist.c @@ -392,7 +392,7 @@ GameListReplace(int page) XawListChange(listwidg, list, 0, 0, True); XtSetValues(listwidg, &arg, 1); XawListHighlight(listwidg, 0); - snprintf(buf, MSG_SIZ, "%s- %d/%d games (%d-%d-%d)", glc->filename, listLength, ((ListGame *) gameList.tailPred)->number, wins, losses, draws); + snprintf(buf, MSG_SIZ, _("%s - %d/%d games (%d-%d-%d)"), glc->filename, listLength, ((ListGame *) gameList.tailPred)->number, wins, losses, draws); XtSetArg(arg, XtNtitle, buf); XtSetValues(glc->shell, &arg, 1); } -- 1.7.0.4