]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Make a translator friendly message out of pieced together words
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 16 Dec 2012 17:03:51 +0000 (18:03 +0100)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 16 Dec 2012 17:03:51 +0000 (18:03 +0100)
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
util.c

index 4fb30feea602e6e0cae8a65a3fe2c698c25ca512..c6113d917bd8d32936609f622dd2a3ce78b36f8a 100644 (file)
@@ -135,7 +135,9 @@ void smartfilter_report(void)
                                fputs("</table>\n",fp_user);
                                if(ShowSargInfo) {
                                        zdate(ftime, sizeof(ftime), df);
-                                       fprintf(fp_user,"<br><br><div align=\"center\"><font size=\"-2\">%s <a href=\"%s\">%s-%s</a> %s %s</font></div>\n",_("Generated by"),URL,PGM,VERSION,_("on"),ftime);
+                                       fputs("<br><br><div align=\"center\"><font size=\"-2\">",fp_user);
+                                       fprintf(fp_user,_("Generated by <a href=\"%s\">%s-%s</a> on %s"),URL,PGM,VERSION,ftime);
+                                       fputs("</font></div>\n",fp_user);
                                }
                                fputs("</body>\n</html>\n",fp_user);
                                if (fclose(fp_user)==EOF) {
diff --git a/util.c b/util.c
index 6be08adc0c5e6ea5d255d7394e802d1913807093..104ac98affe4ce4d74da4f94dd8368210023ba28 100644 (file)
--- 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,"<div class=\"info\">%s <a href='%s'>%s-%s</a> %s %s</div>\n",_("Generated by"),URL,PGM,VERSION,_("on"),ftime);
+       fputs("<div class=\"info\">",fp_ou);
+       fprintf(fp_ou,_("Generated by <a href='%s'>%s-%s</a> on %s"),URL,PGM,VERSION,ftime);
+       fputs("</div>\n",fp_ou);
 }
 
 void show_sarg(FILE *fp_ou, int depth)