]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
More messages merged to reduce the number of messages to translate.
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Thu, 2 Apr 2015 19:27:51 +0000 (21:27 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Thu, 2 Apr 2015 19:27:51 +0000 (21:27 +0200)
authfail.c
convlog.c
denied.c
download.c
index.c
indexonly.c
lastlog.c
splitlog.c

index 5d6116c837a3257cfb55c1eb0f816b504c171ba1..1214d09b0eefea59edcd1c63e5e9faa1d7e2c1e6 100644 (file)
@@ -299,6 +299,6 @@ void authfail_cleanup(void)
        }
        if(authfail_unsort[0]) {
                if (!KeepTempLog && unlink(authfail_unsort)==-1)
-                       debuga(_("Failed to delete %s: %s\n"),authfail_unsort,strerror(errno));
+                       debuga(_("Failed to delete \"%s\": %s\n"),authfail_unsort,strerror(errno));
        }
 }
index bbbfe44c05e90846801f7d551c22f921d8d01d40..9c60515343538443c52c1e686c5f7fab0e1aa890 100644 (file)
--- a/convlog.c
+++ b/convlog.c
@@ -79,7 +79,7 @@ void convlog(const char *arq, char df, int dfrom, int duntil)
 
        longline_destroy(&line);
        if (fclose(fp_in)==EOF) {
-               debuga(_("Failed to close file %s: %s\n"),arq,strerror(errno));
+               debuga(_("Failed to close file \"%s\": %s\n"),arq,strerror(errno));
                exit(EXIT_FAILURE);
        }
 }
index 98d9b1ca474d4559fac7cede2ee6d66e46971269..532ac6f437ade91ee4d38570c266d95a5bb63e4b 100644 (file)
--- a/denied.c
+++ b/denied.c
@@ -295,6 +295,6 @@ void denied_cleanup(void)
        }
        if (!KeepTempLog && denied_unsort[0]) {
                if (unlink(denied_unsort)==-1)
-                       debuga(_("Failed to delete %s: %s\n"),denied_unsort,strerror(errno));
+                       debuga(_("Failed to delete \"%s\": %s\n"),denied_unsort,strerror(errno));
        }
 }
index 1f2cdf83a8cc635b2d4a2ad2495a5dd6786940ce..d464cf309501696d9a71a7d6740059dcd20af1f0 100644 (file)
@@ -457,6 +457,6 @@ void download_cleanup(void)
        }
        if (download_unsort[0]) {
                if (unlink(download_unsort)==-1)
-                       debuga(_("Failed to delete %s: %s\n"),download_unsort,strerror(errno));
+                       debuga(_("Failed to delete \"%s\": %s\n"),download_unsort,strerror(errno));
        }
 }
diff --git a/index.c b/index.c
index 9acb8a598a9ce4f50bda8d5d258fe99d4efea593..0e176ca3b85f56a8fe4b494814e1ff2c36fac393 100644 (file)
--- a/index.c
+++ b/index.c
@@ -65,7 +65,7 @@ void make_index(void)
 
        // convert any old report hierarchy
        if ((dirp = opendir(outdir)) == NULL) {
-               debuga(_("Failed to open directory %s - %s\n"),outdir,strerror(errno));
+               debuga(_("Cannot open directory \"%s\": %s\n"),outdir,strerror(errno));
                exit(EXIT_FAILURE);
        }
        while ((direntp = readdir( dirp )) != NULL) {
@@ -246,7 +246,7 @@ static long long int make_date_index_day(char *monthdir,int monthdir_size,int or
 
        ndays=0;
        if ((dirp3 = opendir(monthdir)) == NULL) {
-               debuga(_("Failed to open directory %s - %s\n"),monthdir,strerror(errno));
+               debuga(_("Cannot open directory \"%s\": %s\n"),monthdir,strerror(errno));
                exit(EXIT_FAILURE);
        }
        monthdir_len=strlen(monthdir);
@@ -405,7 +405,7 @@ static long long int make_date_index_month(char *yeardir,int yeardir_size,int or
 
        nmonths=0;
        if ((dirp2 = opendir(yeardir)) == NULL) {
-               debuga(_("Failed to open directory %s - %s\n"),yeardir,strerror(errno));
+               debuga(_("Cannot open directory \"%s\": %s\n"),yeardir,strerror(errno));
                exit(EXIT_FAILURE);
        }
        yeardir_len=strlen(yeardir);
@@ -540,7 +540,7 @@ static void make_date_index(void)
 
        nyears=0;
        if ((dirp = opendir(outdir)) == NULL) {
-               debuga(_("Failed to open directory %s - %s\n"),outdir,strerror(errno));
+               debuga(_("Cannot open directory \"%s\": %s\n"),outdir,strerror(errno));
                exit(EXIT_FAILURE);
        }
        while ((direntp = readdir( dirp )) != NULL) {
@@ -669,7 +669,7 @@ static void make_file_index(void)
        order=(strcmp(IndexSortOrder,"A") == 0) ? 1 : -1;
 
        if ((dirp = opendir(outdir)) == NULL) {
-               debuga(_("Failed to open directory %s - %s\n"),outdir,strerror(errno));
+               debuga(_("Cannot open directory \"%s\": %s\n"),outdir,strerror(errno));
                exit(EXIT_FAILURE);
        }
 
@@ -797,7 +797,7 @@ static void make_file_index(void)
        fputs("</table></div>\n",fp_ou);
        write_html_trailer(fp_ou);
        if (fclose(fp_ou)==EOF)
-               debuga(_("Failed to close the index file %s - %s\n"),wdir,strerror(errno));
+               debuga(_("Write error in file \"%s\": %s\n"),wdir,strerror(errno));
 
        if (sortlist) {
                for (i=0 ; i<nsort ; i++) {
index 6eef6a3e98d5433233608aceec38382687750086..bf9a7e93de2e4c64d44a8094c1b29fe5e69fb5f6 100644 (file)
@@ -35,7 +35,7 @@ void index_only(const char *dirname,int debug)
        char remove[MAXLEN];
 
        if ((dirp = opendir(dirname)) == NULL) {
-               debuga(_("Failed to open directory %s - %s\n"),dirname,strerror(errno));
+               debuga(_("Cannot open directory \"%s\": %s\n"),dirname,strerror(errno));
                exit(EXIT_FAILURE);
        }
        while ( (direntp = readdir( dirp )) != NULL ){
index 6a7e17027ff780edb0175466c53b7a338fcdd552..1bd18f2662db376cc464160ff0b510e07e5b4235 100644 (file)
--- a/lastlog.c
+++ b/lastlog.c
@@ -93,7 +93,7 @@ static struct DirEntry *BuildDirDateList(struct DirEntry *List,char *Path,int Pa
        int name_len;
 
        if ((dirp = opendir(Path)) == NULL) {
-               debuga(_("Failed to open directory %s - %s\n"),Path,strerror(errno));
+               debuga(_("Cannot open directory \"%s\": %s\n"),Path,strerror(errno));
                exit(EXIT_FAILURE);
        }
        while ((direntp = readdir( dirp )) != NULL )
@@ -158,7 +158,7 @@ static struct DirEntry *BuildDirList(const char *Path)
        }
        strcpy(warea,Path);
        if ((dirp = opendir(outdir)) == NULL) {
-               debuga(_("Failed to open directory %s - %s\n"),outdir,strerror(errno));
+               debuga(_("Cannot open directory \"%s\": %s\n"),outdir,strerror(errno));
                exit(EXIT_FAILURE);
        }
        while ((direntp = readdir( dirp )) != NULL )
@@ -212,7 +212,7 @@ static void DeleteEmptyDirs(char *Path,int PathSize,int BasePos)
                if (Dir-Path<=BasePos) break;
                *Dir='\0';
                if ((dirp = opendir(Path)) == NULL) {
-                       debuga(_("Failed to open directory %s - %s\n"),Path,strerror(errno));
+                       debuga(_("Cannot open directory \"%s\": %s\n"),Path,strerror(errno));
                        return;
                }
                index=false;
index 5c829839bb6351ae427de37df9b40acf9d8b4610..d6593b2d74c59b42d6393e46b071e31ca074ffd4 100644 (file)
@@ -141,7 +141,7 @@ void splitlog(const char *arq, char df, int dfrom, int duntil, int convert, cons
 
        longline_destroy(&line);
        if (fclose(fp_in)==EOF) {
-               debuga(_("Failed to close file %s - %s\n"),arq,strerror(errno));
+               debuga(_("Failed to close file \"%s\": %s\n"),arq,strerror(errno));
        }
        if (autosplit && fp_ou) {
                if (fclose(fp_ou)==EOF) {