From 1bf60a42505a6dc7db778e7bc550ba8b072a63af Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Fri, 26 Dec 2014 15:11:29 +0100 Subject: [PATCH] Merge translatable messages Pass the differing part as argument. --- log.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/log.c b/log.c index ce2f5c4..a72c52b 100644 --- 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); -- 2.47.2