From 7df9bd7bab72af4f300eef9dc509a226924de58b Mon Sep 17 00:00:00 2001 From: Benoit Mortier Date: Thu, 30 Dec 2004 00:41:41 +0000 Subject: more internationalization fixes internationalization freeze for beta1 git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1067 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_snmp.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'plugins/check_snmp.c') diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index 5f221218..ef411e15 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c @@ -281,7 +281,7 @@ main (int argc, char **argv) iresult = STATE_CRITICAL; } #else - printf (_("%s UNKNOWN: call for regex which was not a compiled option"), label); + printf (_("Call for regex which was not a compiled option")); exit (STATE_UNKNOWN); #endif } @@ -511,7 +511,7 @@ process_arguments (int argc, char **argv) eval_method[jj++] = CRIT_REGEX; ii++; #else - printf (_("%s UNKNOWN: call for regex which was not a compiled option"), label); + printf (_("call for regex which was not a compiled option")); exit (STATE_UNKNOWN); #endif break; @@ -530,8 +530,7 @@ process_arguments (int argc, char **argv) labels_size += 8; labels = realloc (labels, labels_size); if (labels == NULL) - die (STATE_UNKNOWN, - _("Could not realloc() labels[%d]"), nlabels); + die (STATE_UNKNOWN, _("Could not reallocate labels[%d]"), nlabels); } labels[nlabels - 1] = optarg; ptr = thisarg (optarg); @@ -543,7 +542,7 @@ process_arguments (int argc, char **argv) labels_size += 8; labels = realloc (labels, labels_size); if (labels == NULL) - die (STATE_UNKNOWN, _("Could not realloc() labels\n")); + die (STATE_UNKNOWN, _("Could not reallocate labels\n")); } labels++; ptr = thisarg (ptr); @@ -560,8 +559,7 @@ process_arguments (int argc, char **argv) unitv_size += 8; unitv = realloc (unitv, unitv_size); if (unitv == NULL) - die (STATE_UNKNOWN, - _("Could not realloc() units [%d]\n"), nunits); + die (STATE_UNKNOWN, _("Could not reallocate units [%d]\n"), nunits); } unitv[nunits - 1] = optarg; ptr = thisarg (optarg); @@ -646,7 +644,7 @@ validate_arguments () } else if ( strcmp(seclevel, "authNoPriv") == 0 ) { if ( secname == NULL || authpasswd == NULL) { - printf (_("Missing secname (%s) or authpassword (%s) ! \n)"),secname, authpasswd ); + printf (_("Missing secname (%s) or authpassword (%s) ! \n"),secname, authpasswd ); print_usage (); exit (STATE_UNKNOWN); } @@ -663,9 +661,7 @@ validate_arguments () } else { - printf (_("Invalid SNMP version: %s\n"), proto); - print_usage (); - exit (STATE_UNKNOWN); + usage2 (_("Invalid SNMP version"), proto); } return OK; -- cgit v1.2.3-74-g34f1