]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - smartfilter.c
Normalize the messages to have less messages to translate.
[thirdparty/sarg.git] / smartfilter.c
index 7b9a9dab5fce01eea103490a09d109cbb31cc0f5..104a372e86fd84a737fbb310b6aca90a74d5bd7f 100644 (file)
@@ -84,7 +84,7 @@ void smartfilter_report(void)
                exit(EXIT_FAILURE);
        }
        if((fp_in=fopen(smart_ou,"r"))==NULL) {
-               debuga(_("(smartfilter) Cannot open log file %s: %s\n"),smart_ou,strerror(errno));
+               debuga(_("Cannot open file \"%s\": %s\n"),smart_ou,strerror(errno));
                debuga(_("sort command: %s\n"),csort);
                exit(EXIT_FAILURE);
        }
@@ -94,7 +94,7 @@ void smartfilter_report(void)
        }
 
        if((fp_ou=fopen(report,"w"))==NULL) {
-               debuga(_("(smartfilter) Cannot open log file %s: %s\n"),report,strerror(errno));
+               debuga(_("Cannot open file \"%s\": %s\n"),report,strerror(errno));
                exit(EXIT_FAILURE);
        }
 
@@ -145,13 +145,13 @@ void smartfilter_report(void)
                                }
                                fputs("</body>\n</html>\n",fp_user);
                                if (fclose(fp_user)==EOF) {
-                                       debuga(_("Write error in %s: %s\n"),smartuser,strerror(errno));
+                                       debuga(_("Write error in \"%s\": %s\n"),smartuser,strerror(errno));
                                        exit(EXIT_FAILURE);
                                }
                                fp_user=NULL;
                        }
                        if ((fp_user = fopen(smartuser, "a")) == 0) {
-                               debuga(_("(smartfilter) Cannot open file %s: %s\n"),smartuser,strerror(errno));
+                               debuga(_("Cannot open file \"%s\": %s\n"),smartuser,strerror(errno));
                                exit(EXIT_FAILURE);
                        }
 
@@ -204,7 +204,7 @@ void smartfilter_report(void)
        fputs("</body>\n</html>\n",fp_user);
 
        if (fclose(fp_ou)==EOF) {
-               debuga(_("Write error in %s: %s\n"),report,strerror(errno));
+               debuga(_("Write error in \"%s\": %s\n"),report,strerror(errno));
                exit(EXIT_FAILURE);
        }
        if(fp_user) {
@@ -215,7 +215,7 @@ void smartfilter_report(void)
                }
                fputs("</body>\n</html>\n",fp_user);
                if (fclose(fp_user)==EOF) {
-                       debuga(_("Write error in %s: %s\n"),smartuser,strerror(errno));
+                       debuga(_("Write error in \"%s\": %s\n"),smartuser,strerror(errno));
                        exit(EXIT_FAILURE);
                }
        }