From e9ccc6b21a1152bbf150302c4a29a6df79d75bd7 Mon Sep 17 00:00:00 2001 From: Benoit Mortier Date: Sat, 25 Dec 2004 23:17:46 +0000 Subject: various fixes for localization git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1061 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/utils.c') diff --git a/plugins/utils.c b/plugins/utils.c index b2948e65..b9a19d3f 100644 --- a/plugins/utils.c +++ b/plugins/utils.c @@ -53,7 +53,7 @@ max_state (int a, int b) void usage (const char *msg) { - printf ("%s", msg); + printf ("%s\n", msg); print_usage (); exit (STATE_UNKNOWN); } @@ -133,7 +133,7 @@ void timeout_alarm_handler (int signo) { if (signo == SIGALRM) { - printf ("CRITICAL - Plugin timed out after %d seconds\n", + printf (_("CRITICAL - Plugin timed out after %d seconds\n"), timeout_interval); exit (STATE_CRITICAL); } @@ -430,7 +430,7 @@ strpcpy (char *dest, const char *src, const char *str) if (dest == NULL || strlen (dest) < len) dest = realloc (dest, len + 1); if (dest == NULL) - die (STATE_UNKNOWN, "failed realloc in strpcpy\n"); + die (STATE_UNKNOWN, _("failed realloc in strpcpy\n")); strncpy (dest, src, len); dest[len] = '\0'; @@ -472,7 +472,7 @@ strpcat (char *dest, const char *src, const char *str) dest = realloc (dest, len + l2 + 1); if (dest == NULL) - die (STATE_UNKNOWN, "failed malloc in strscat\n"); + die (STATE_UNKNOWN, _("failed malloc in strscat\n")); strncpy (dest + len, src, l2); dest[len + l2] = '\0'; -- cgit v1.2.3