]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Merge translatable messages
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Fri, 26 Dec 2014 14:11:29 +0000 (15:11 +0100)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Fri, 26 Dec 2014 14:11:29 +0000 (15:11 +0100)
Pass the differing part as argument.

log.c

diff --git a/log.c b/log.c
index ce2f5c4ea74252391a24a7c543d9bd4ea0d911a1..a72c52b6b884c700ec1c4a905dce4c4f34957868 100644 (file)
--- a/log.c
+++ b/log.c
@@ -426,11 +426,11 @@ int main(int argc,char *argv[])
                                break;
                        case 'l':
                                if (NAccessLog>=MAXLOGS) {
-                                       debuga(_("Too many log files passed on command line with option -l.\n"));
+                                       debuga(_("Too many log files passed on command line with option %s.\n"),"-l");
                                        exit(EXIT_FAILURE);
                                }
                                if (strlen(optarg)>=MAX_LOG_FILELEN) {
-                                       debuga(_("Log file name too long passed on command line with option -l: %s\n"),optarg);
+                                       debuga(_("Log file name too long passed on command line with option %s: %s\n"),"-l",optarg);
                                        exit(EXIT_FAILURE);
                                }
                                strcpy(AccessLog[NAccessLog],optarg);
@@ -439,11 +439,11 @@ int main(int argc,char *argv[])
                                break;
                        case 'L':
                                if (NRedirectorLogs>MAX_REDIRECTOR_LOGS) {
-                                       debuga(_("Too many redirector logs passed on command line with option -L.\n"));
+                                       debuga(_("Too many log files passed on command line with option %s.\n"),"-L");
                                        exit(EXIT_FAILURE);
                                }
                                if (strlen(optarg)>=MAX_REDIRECTOR_FILELEN) {
-                                       debuga(_("Redirector log file name too long passed on command line with opton -L: %s\n"),optarg);
+                                       debuga(_("Log file name too long passed on command line with opton %s: %s\n"),"-L",optarg);
                                        exit(EXIT_FAILURE);
                                }
                                strcpy(RedirectorLogs[NRedirectorLogs],optarg);