diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2004-12-10 00:20:23 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2004-12-10 00:20:23 +0000 |
commit | e0b6d59597a1766b4127f071852745a98670d583 (patch) | |
tree | 6bbe835134095f257ede7fb9067786852680a3b8 /plugins | |
parent | e273a76bc5489740cd41999775201e74709c1602 (diff) | |
download | monitoring-plugins-e0b6d59597a1766b4127f071852745a98670d583.tar.gz |
Reverting back ngettext calls
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1017 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_dns.c | 2 | ||||
-rw-r--r-- | plugins/check_procs.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index dd6ebdab..c30adac7 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 (_("%.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 f2fc2e5b..1be93f46 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c @@ -288,7 +288,7 @@ main (int argc, char **argv) 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); |