From b3a3c51c15c554f99e70f90d564ef35a43465cbf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Sun, 16 Dec 2012 18:03:51 +0100 Subject: [PATCH] Make a translator friendly message out of pieced together words The "generated by" message written at the page bottom was made out of words assembled together during the page generation. It was not possible to translate that message. --- smartfilter.c | 4 +++- util.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/smartfilter.c b/smartfilter.c index 4fb30fe..c6113d9 100644 --- a/smartfilter.c +++ b/smartfilter.c @@ -135,7 +135,9 @@ void smartfilter_report(void) fputs("\n",fp_user); if(ShowSargInfo) { zdate(ftime, sizeof(ftime), df); - fprintf(fp_user,"

%s %s-%s %s %s
\n",_("Generated by"),URL,PGM,VERSION,_("on"),ftime); + fputs("

",fp_user); + fprintf(fp_user,_("Generated by %s-%s on %s"),URL,PGM,VERSION,ftime); + fputs("
\n",fp_user); } fputs("\n\n",fp_user); if (fclose(fp_user)==EOF) { diff --git a/util.c b/util.c index 6be08ad..104ac98 100644 --- a/util.c +++ b/util.c @@ -1738,7 +1738,9 @@ void show_info(FILE *fp_ou) if(!ShowSargInfo) return; zdate(ftime, sizeof(ftime), df); - fprintf(fp_ou,"
%s %s-%s %s %s
\n",_("Generated by"),URL,PGM,VERSION,_("on"),ftime); + fputs("
",fp_ou); + fprintf(fp_ou,_("Generated by %s-%s on %s"),URL,PGM,VERSION,ftime); + fputs("
\n",fp_ou); } void show_sarg(FILE *fp_ou, int depth) -- 2.47.2