summaryrefslogtreecommitdiffabout
path: root/src/log.c
Side-by-side diff
Diffstat (limited to 'src/log.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/log.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/log.c b/src/log.c
index de847c9..e5ae4e1 100644
--- a/src/log.c
+++ b/src/log.c
@@ -29,7 +29,7 @@
#include <argp.h>
#include <tagr.h>
-int log_facility = LOGFACILITY;
+int log_facility = LOG_FACILITY;
char *log_tag;
int log_print_severity; /* FIXME: not used */
@@ -51,12 +51,12 @@ int syslog_level[] = {
};
char *level_str[] = {
- "debug",
- "info",
- "notice",
- "warning",
- "error",
- "CRITICAL",
+ N_("debug"),
+ N_("info"),
+ N_("notice"),
+ N_("warning"),
+ N_("error"),
+ N_("CRITICAL"),
};
@@ -65,7 +65,7 @@ vlogmsg (int level, const char *fmt, va_list ap)
{
if (grecs_log_to_stderr)
{
- fprintf (stderr, "%s: %s: ", log_tag, level_str[level]);
+ fprintf (stderr, "%s: %s: ", log_tag, gettext (level_str[level]));
vfprintf (stderr, fmt, ap);
fprintf (stderr, "\n");
}

Return to:

Send suggestions and report system problems to the System administrator.