]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - email.c
Add more messages to be translated and fix some difficult to translate messages
[thirdparty/sarg.git] / email.c
diff --git a/email.c b/email.c
index 878eab1f560986b5e8008d5b24f48a58dadd0232..7f376b110c391d16fbcdb87a8d64e74992a211b1 100644 (file)
--- a/email.c
+++ b/email.c
@@ -60,17 +60,17 @@ int geramail(const char *dirname, int debug, const char *outdir, int userip, con
    strcat(tusr,"/sarg-users");
 
    if((fp_in=fopen(wger,"r"))==NULL) {
-      debuga(_("(email) Cannot open file: %s\n"),wger);
+      debuga(_("(email) Cannot open file %s\n"),wger);
       exit(1);
    }
 
    if((fp_top1=fopen(top1,"w"))==NULL) {
-      debuga(_("(email) Cannot open file: %s\n"),top1);
+      debuga(_("(email) Cannot open file %s\n"),top1);
       exit(1);
    }
 
    if((fp_top2=fopen(top2,"w"))==NULL) {
-      debuga(_("SARG: (email) Cannot open file: %s\n"),top2);
+      debuga(_("(email) Cannot open file %s\n"),top2);
       exit(1);
    }
 
@@ -134,7 +134,7 @@ int geramail(const char *dirname, int debug, const char *outdir, int userip, con
    unlink(top2);
 
    if((fp_top1=fopen(top1,"a"))==NULL) {
-      fprintf(stderr, "SARG: (email) %s: %s\n",_("Cannot open file"),top1);
+      debuga(_("(email) Cannot open file %s\n"),top1);
       exit(1);
    }
 #if defined(__FreeBSD__)
@@ -154,23 +154,23 @@ int geramail(const char *dirname, int debug, const char *outdir, int userip, con
    strcat(arqper,"/sarg-period");
 
    if ((fp_in = fopen(arqper, "r")) == 0){
-      fprintf(stderr, "SARG: (email) %s: %s\n",_("Cannot open file"),arqper);
+      debuga(_("(email) Cannot open file %s\n"),arqper);
       exit(1);
    }
 
    if (!fgets(period,sizeof(period),fp_in)) {
-      fprintf(stderr,"SARG: (email) read error in %s\n",arqper);
+      debuga(_("(email) read error in %s\n"),arqper);
       exit(1);
    }
    fclose(fp_in);
 
    if((fp_top1=fopen(top1,"r"))==NULL) {
-      fprintf(stderr, "SARG: (email) %s: %s\n",_("Cannot open file"),top1);
+      debuga(_("(email) Cannot open file %s\n"),top1);
       exit(1);
    }
 
    if((fp_top3=fopen(top3,"w"))==NULL) {
-      fprintf(stderr, "SARG: (email) %s: %s\n",_("Cannot open file"),top3);
+      debuga(_("(email) Cannot open file %s\n"),top3);
       exit(1);
    }
 
@@ -271,7 +271,7 @@ int geramail(const char *dirname, int debug, const char *outdir, int userip, con
 
    if(strcmp(email,"stdout") == 0) {
       if((fp_top3=fopen(top3,"r"))==NULL) {
-         debuga(_("(email) Cannot open file: %s\n"),top3);
+         debuga(_("(email) Cannot open file %s\n"),top3);
          exit(1);
       }