]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - download.c
Normalize the messages to have less messages to translate.
[thirdparty/sarg.git] / download.c
index 675f50aea54b9de059ef85bb936b5661b6df6a09..2dd8f1335c064ac524ca8065981ed9eb1f11b3a1 100644 (file)
@@ -71,7 +71,7 @@ void download_open(void)
 
        snprintf(download_unsort,sizeof(download_unsort),"%s/download.int_unsort",tmp);
        if ((fp_download=MY_FOPEN(download_unsort,"w"))==NULL) {
-               debuga(_("(log) Cannot open file %s: %s\n"),download_unsort,strerror(errno));
+               debuga(_("Cannot open file \"%s\": %s\n"),download_unsort,strerror(errno));
                exit(EXIT_FAILURE);
        }
        return;
@@ -102,7 +102,7 @@ void download_close(void)
        if (fp_download)
        {
                if (fclose(fp_download)==EOF) {
-                       debuga(_("Write error in %s: %s\n"),download_unsort,strerror(errno));
+                       debuga(_("Write error in \"%s\": %s\n"),download_unsort,strerror(errno));
                        exit(EXIT_FAILURE);
                }
                fp_download=NULL;
@@ -205,12 +205,12 @@ void download_report(void)
        snprintf(report,sizeof(report),"%s/download.html",outdirname);
 
        if((fp_in=MY_FOPEN(report_in,"r"))==NULL) {
-               debuga(_("(download) Cannot open log file %s: %s\n"),report_in,strerror(errno));
+               debuga(_("Cannot open file \"%s\": %s\n"),report_in,strerror(errno));
                exit(EXIT_FAILURE);
        }
 
        if((fp_ou=MY_FOPEN(report,"w"))==NULL) {
-               debuga(_("(download) Cannot open log file %s: %s\n"),report,strerror(errno));
+               debuga(_("Cannot open file \"%s\": %s\n"),report,strerror(errno));
                exit(EXIT_FAILURE);
        }
 
@@ -303,7 +303,7 @@ void download_report(void)
        if (write_html_trailer(fp_ou)<0)
                debuga(_("Write error in file %s\n"),report);
        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);
        }
 
@@ -451,7 +451,7 @@ void download_cleanup(void)
 {
        if (fp_download) {
                if (fclose(fp_download)==EOF) {
-                       debuga(_("Write error in %s: %s\n"),download_unsort,strerror(errno));
+                       debuga(_("Write error in \"%s\": %s\n"),download_unsort,strerror(errno));
                        exit(EXIT_FAILURE);
                }
                fp_download=NULL;