From 4df38b1af1dbf80a6cb28322121daa9822e6d5cc Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Mon, 22 Dec 2014 14:03:02 +0100 Subject: [PATCH] Add some comments to guide the translators. --- authfail.c | 1 + email.c | 4 +++- util.c | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/authfail.c b/authfail.c index c429407..0900f0a 100644 --- a/authfail.c +++ b/authfail.c @@ -103,6 +103,7 @@ void authfail_report(void) exit(EXIT_FAILURE); } + /* TRANSLATORS: This is a column header */ write_html_header(fp_ou,(IndexTree == INDEX_TREE_DATE) ? 3 : 1,_("Authentication Failures"),HTML_JS_NONE); fputs("",fp_ou); fprintf(fp_ou,_("Period: %s"),period.html); diff --git a/email.c b/email.c index ec54008..d2f110a 100644 --- a/email.c +++ b/email.c @@ -274,7 +274,9 @@ int geramail(const char *dirname, int debug, const char *outdir, const char *ema fputs(warea,stdout); } else { /* TRANSLATORS: The string is formatted using strftime. You can use - any string formatting marker allowed by strftime. */ + * any string formatting marker allowed by strftime. The %c is the + * time formatted according to the currently selected locale. + */ strftime(Subject,sizeof(Subject),_("SARG report, %c"),local); snprintf(warea,sizeof(warea),"%s -s \"%s\" \"%s\" <\"%s\"",MailUtility,Subject,email,top3); if (debug) diff --git a/util.c b/util.c index 0365c59..f098a6d 100644 --- a/util.c +++ b/util.c @@ -493,6 +493,9 @@ void debugapos(const char *pos,const char *msg,...) { va_list ap; + /* TRANSLATORS: This text is printed on the console before any message from + * the debug log with level "debug". + */ fputs(_("SARG: "),stderr); fprintf(stderr,"(%s) ",pos); va_start(ap,msg); @@ -510,6 +513,9 @@ void debugaz(const char *msg,...) { va_list ap; + /* TRANSLATORS: This text is printed on the console before any message from + * the debug log with level "info". + */ fputs(_("SARG: (info) "),stderr); va_start(ap,msg); vfprintf(stderr,msg,ap); -- 2.47.2