summaryrefslogtreecommitdiffstats
path: root/plugins/check_nagios.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-14 06:11:45 -0400
committerThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-14 08:33:06 -0400
commit25d1ee331dbe4977a4a1a756c67f32bd51d9b070 (patch)
treeb15cfec59fdbaa8b283f8e7aa2e3d8c4207a7376 /plugins/check_nagios.c
parentb649333321701eccfd99df0d39c6b8d8c92d6a8b (diff)
downloadmonitoring-plugins-25d1ee331dbe4977a4a1a756c67f32bd51d9b070.tar.gz
Fix translations when extra-opts aren't enabled
Bug #2832884 reported problem with translations outputting pot file headers. This is caused by "" matching the header of the translation files. This patch moves gettext macros inside utils macros and update some french translations.
Diffstat (limited to 'plugins/check_nagios.c')
-rw-r--r--plugins/check_nagios.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c
index 954ff711..24ddadd7 100644
--- a/plugins/check_nagios.c
+++ b/plugins/check_nagios.c
@@ -287,8 +287,8 @@ print_help (void)
287 287
288 print_usage (); 288 print_usage ();
289 289
290 printf (_(UT_HELP_VRSN)); 290 printf (UT_HELP_VRSN);
291 printf (_(UT_EXTRA_OPTS)); 291 printf (UT_EXTRA_OPTS);
292 292
293 printf (" %s\n", "-F, --filename=FILE"); 293 printf (" %s\n", "-F, --filename=FILE");
294 printf (" %s\n", _("Name of the log file to check")); 294 printf (" %s\n", _("Name of the log file to check"));
@@ -296,19 +296,19 @@ print_help (void)
296 printf (" %s\n", _("Minutes aging after which logfile is considered stale")); 296 printf (" %s\n", _("Minutes aging after which logfile is considered stale"));
297 printf (" %s\n", "-C, --command=STRING"); 297 printf (" %s\n", "-C, --command=STRING");
298 printf (" %s\n", _("Substring to search for in process arguments")); 298 printf (" %s\n", _("Substring to search for in process arguments"));
299 printf (_(UT_VERBOSE)); 299 printf (UT_VERBOSE);
300 300
301#ifdef NP_EXTRA_OPTS 301#ifdef NP_EXTRA_OPTS
302 printf ("\n"); 302 printf ("\n");
303 printf ("%s\n", _("Notes:")); 303 printf ("%s\n", _("Notes:"));
304 printf (_(UT_EXTRA_OPTS_NOTES)); 304 printf (UT_EXTRA_OPTS_NOTES);
305#endif 305#endif
306 306
307 printf ("\n"); 307 printf ("\n");
308 printf ("%s\n", _("Examples:")); 308 printf ("%s\n", _("Examples:"));
309 printf (" %s\n", "check_nagios -e 5 -F /usr/local/nagios/var/status.log -C /usr/local/nagios/bin/nagios"); 309 printf (" %s\n", "check_nagios -e 5 -F /usr/local/nagios/var/status.log -C /usr/local/nagios/bin/nagios");
310 310
311 printf (_(UT_SUPPORT)); 311 printf (UT_SUPPORT);
312} 312}
313 313
314 314