From 3f05eb7fcb71942c90fa7d5796c3d18ed62443cf Mon Sep 17 00:00:00 2001 From: Benoit Mortier Date: Thu, 2 Dec 2004 21:23:50 +0000 Subject: [PATCH] --disable-nls throws an error on check_dns, check_procs and check_ldap without this patch. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@981 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_dns.c | 2 +- plugins/check_ldap.c | 9 ++++++++- plugins/check_procs.c | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/plugins/check_dns.c b/plugins/check_dns.c index 070223e..aaa3f12 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c @@ -196,7 +196,7 @@ main (int argc, char **argv) multi_address = TRUE; printf ("DNS %s: ", _("OK")); - printf (ngettext("%.3f second response time, ", "%.3f seconds response time, ", elapsed_time), elapsed_time); + printf (_("%.3f seconds response time"), elapsed_time); printf (_("%s returns %s"), query_address, address); printf ("|%s\n", fperfdata ("time", elapsed_time, "s", FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0)); } diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c index 9c41cc3..b12a0ed 100644 --- a/plugins/check_ldap.c +++ b/plugins/check_ldap.c @@ -335,6 +335,13 @@ print_usage (void) Usage: %s -H -b [-p ] [-a ] [-D ]\n\ [-P ] [-w ] [-c ] [-t timeout]%s\n\ (Note: all times are in seconds.)\n"), - progname, (HAVE_LDAP_SET_OPTION ? "[-2|-3] [-4|-6]" : "")); + progname, +#ifdef HAVE_LDAP_SET_OPTION + " [-2|-3] [-4|-6]" +#else + "" +#endif + ); + printf (_(UT_HLP_VRS), progname, progname); } diff --git a/plugins/check_procs.c b/plugins/check_procs.c index 4bc87c0..5448842 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c @@ -277,7 +277,7 @@ main (int argc, char **argv) printf (_("%d crit, %d warn out of "), crit, warn); } } - printf (ngettext ("%d process", "%d processes", (unsigned long) procs), procs); + printf ("%d %s", procs, procs == 1 ? _("process") : _("processes")); if (strcmp(fmt,"") != 0) { printf (_(" with %s"), fmt); -- 2.30.2