From 54c21eba62b55503dbe6fda607ccbef4a27a1f14 Mon Sep 17 00:00:00 2001 From: Benoit Mortier Date: Wed, 1 Dec 2004 19:33:45 +0000 Subject: first pass at standardization of messages for the localization git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@962 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_dig.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'plugins/check_dig.c') diff --git a/plugins/check_dig.c b/plugins/check_dig.c index 92a5eda8..5b472eca 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c @@ -151,7 +151,7 @@ main (int argc, char **argv) if (spclose (child_process)) { result = max_state (result, STATE_WARNING); if (strlen (output) == 0) - asprintf (&output, _("dig returned error status")); + asprintf (&output, _("dig returned an error status")); } microsec = deltime (tv); @@ -183,7 +183,6 @@ main (int argc, char **argv) - /* process command-line arguments */ int process_arguments (int argc, char **argv) @@ -228,7 +227,7 @@ process_arguments (int argc, char **argv) dns_server = optarg; } else { - usage2 (_("Invalid host name"), optarg); + usage2 (_("Invalid hostname/adress"), optarg); } break; case 'p': /* server port */ @@ -236,7 +235,7 @@ process_arguments (int argc, char **argv) server_port = atoi (optarg); } else { - usage2 (_("Server port must be a nonnegative integer"), optarg); + usage2 (_("port must be a positive integer"), optarg); } break; case 'l': /* address to lookup */ @@ -247,7 +246,7 @@ process_arguments (int argc, char **argv) warning_interval = strtod (optarg, NULL); } else { - usage2 (_("Warning interval must be a nonnegative integer"), optarg); + usage2 (_("Warning interval must be a positive integer"), optarg); } break; case 'c': /* critical */ @@ -255,7 +254,7 @@ process_arguments (int argc, char **argv) critical_interval = strtod (optarg, NULL); } else { - usage2 (_("Critical interval must be a nonnegative integer"), optarg); + usage2 (_("Critical interval must be a positive integer"), optarg); } break; case 't': /* timeout */ @@ -263,7 +262,7 @@ process_arguments (int argc, char **argv) timeout_interval = atoi (optarg); } else { - usage2 (_("Time interval must be a nonnegative integer"), optarg); + usage2 (_("Timeout interval must be a positive integer"), optarg); } break; case 'v': /* verbose */ @@ -285,7 +284,7 @@ process_arguments (int argc, char **argv) dns_server = argv[c]; } else { - usage2 (_("Invalid host name"), argv[c]); + usage2 (_("Invalid hostname/adress"), argv[c]); } } else { @@ -311,7 +310,6 @@ validate_arguments (void) - void print_help (void) { -- cgit v1.2.3