From: Byrial Jensen Date: Mon, 19 Dec 2011 12:16:58 +0000 (+0100) Subject: Add 2 strings for translation X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=3ba8afd8c058bfd2a62b3fb73699a824537fc322 Add 2 strings for translation --- 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); }