]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Add some comments to guide the translators.
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Mon, 22 Dec 2014 13:03:02 +0000 (14:03 +0100)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Mon, 22 Dec 2014 13:03:02 +0000 (14:03 +0100)
authfail.c
email.c
util.c

index c429407e96ba929eb3bbd83aba57f12cc5af35fe..0900f0a0b163c8914541c8e64da14a9a7aee0523 100644 (file)
@@ -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("<tr><td class=\"header_c\">",fp_ou);
        fprintf(fp_ou,_("Period: %s"),period.html);
diff --git a/email.c b/email.c
index ec540087a98e644ba6f66831e025fab40cf4c88f..d2f110abde81cd2abda861b7c3acc4996ba68573 100644 (file)
--- 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 0365c593c66cc2e444e323ed4bf86960ec398bb9..f098a6db0cc017e369b824139169249413443601 100644 (file)
--- 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);