summaryrefslogtreecommitdiffstats
path: root/plugins/check_time.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_time.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_time.c')
-rw-r--r--plugins/check_time.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_time.c b/plugins/check_time.c
index ee938168..7816b238 100644
--- a/plugins/check_time.c
+++ b/plugins/check_time.c
@@ -342,10 +342,10 @@ print_help (void)
342 342
343 print_usage (); 343 print_usage ();
344 344
345 printf (_(UT_HELP_VRSN)); 345 printf (UT_HELP_VRSN);
346 printf (_(UT_EXTRA_OPTS)); 346 printf (UT_EXTRA_OPTS);
347 347
348 printf (_(UT_HOST_PORT), 'p', myport); 348 printf (UT_HOST_PORT, 'p', myport);
349 349
350 printf (" %s\n", "-u, --udp"); 350 printf (" %s\n", "-u, --udp");
351 printf (" %s\n", _("Use UDP to connect, not TCP")); 351 printf (" %s\n", _("Use UDP to connect, not TCP"));
@@ -358,15 +358,15 @@ print_help (void)
358 printf (" %s\n", "-C, --critical-connect=INTEGER"); 358 printf (" %s\n", "-C, --critical-connect=INTEGER");
359 printf (" %s\n", _("Response time (sec.) necessary to result in critical status")); 359 printf (" %s\n", _("Response time (sec.) necessary to result in critical status"));
360 360
361 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); 361 printf (UT_TIMEOUT, DEFAULT_SOCKET_TIMEOUT);
362 362
363#ifdef NP_EXTRA_OPTS 363#ifdef NP_EXTRA_OPTS
364 printf ("\n"); 364 printf ("\n");
365 printf ("%s\n", _("Notes:")); 365 printf ("%s\n", _("Notes:"));
366 printf (_(UT_EXTRA_OPTS_NOTES)); 366 printf (UT_EXTRA_OPTS_NOTES);
367#endif 367#endif
368 368
369 printf (_(UT_SUPPORT)); 369 printf (UT_SUPPORT);
370} 370}
371 371
372 372