summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e273a76)
raw | patch | inline | side by side (parent: e273a76)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 10 Dec 2004 00:20:23 +0000 (00:20 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 10 Dec 2004 00:20:23 +0000 (00:20 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1017 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_dns.c | patch | blob | history | |
plugins/check_procs.c | patch | blob | history |
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index dd6ebdabf25aae510cc722a40bff9c529c29a2f1..c30adac7898a8981774a513674221531cf603847 100644 (file)
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
multi_address = TRUE;
printf ("DNS %s: ", _("OK"));
- printf (_("%.3f seconds response time "), elapsed_time);
+ printf (ngettext("%.3f second response time ", "%.3f seconds response time ", elapsed_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_procs.c b/plugins/check_procs.c
index f2fc2e5b076287a6a919105efa084ea349dce822..1be93f464b81202db11cec6459b9d39b837c89f8 100644 (file)
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
printf (_("%d crit, %d warn out of "), crit, warn);
}
}
- printf ("%d %s", procs, procs == 1 ? _("process") : _("processes"));
+ printf (ngettext ("%d process", "%d processes", (unsigned long) procs), procs);
if (strcmp(fmt,"") != 0) {
printf (_(" with %s"), fmt);