From: Frédéric Marchal Date: Sun, 16 Dec 2012 17:03:51 +0000 (+0100) Subject: Make a translator friendly message out of pieced together words X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b3a3c51c15c554f99e70f90d564ef35a43465cbf;p=thirdparty%2Fsarg.git 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. --- 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)