summaryrefslogtreecommitdiffstats
path: root/plugins/check_ping.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-14 10:11:45 (GMT)
committerThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-14 12:33:06 (GMT)
commit25d1ee331dbe4977a4a1a756c67f32bd51d9b070 (patch)
treeb15cfec59fdbaa8b283f8e7aa2e3d8c4207a7376 /plugins/check_ping.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_ping.c')
-rw-r--r--plugins/check_ping.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 8c4c0e6..45108af 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -562,10 +562,10 @@ print_help (void)
562 562
563 print_usage (); 563 print_usage ();
564 564
565 printf (_(UT_HELP_VRSN)); 565 printf (UT_HELP_VRSN);
566 printf (_(UT_EXTRA_OPTS)); 566 printf (UT_EXTRA_OPTS);
567 567
568 printf (_(UT_IPv46)); 568 printf (UT_IPv46);
569 569
570 printf (" %s\n", "-H, --hostname=HOST"); 570 printf (" %s\n", "-H, --hostname=HOST");
571 printf (" %s\n", _("host to ping")); 571 printf (" %s\n", _("host to ping"));
@@ -579,7 +579,7 @@ print_help (void)
579 printf (" %s\n", "-L, --link"); 579 printf (" %s\n", "-L, --link");
580 printf (" %s\n", _("show HTML in the plugin output (obsoleted by urlize)")); 580 printf (" %s\n", _("show HTML in the plugin output (obsoleted by urlize)"));
581 581
582 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); 582 printf (UT_TIMEOUT, DEFAULT_SOCKET_TIMEOUT);
583 583
584 printf ("\n"); 584 printf ("\n");
585 printf ("%s\n", _("THRESHOLD is <rta>,<pl>% where <rta> is the round trip average travel")); 585 printf ("%s\n", _("THRESHOLD is <rta>,<pl>% where <rta> is the round trip average travel"));
@@ -595,10 +595,10 @@ print_help (void)
595#ifdef NP_EXTRA_OPTS 595#ifdef NP_EXTRA_OPTS
596 printf ("\n"); 596 printf ("\n");
597 printf ("%s\n", _("Notes:")); 597 printf ("%s\n", _("Notes:"));
598 printf (_(UT_EXTRA_OPTS_NOTES)); 598 printf (UT_EXTRA_OPTS_NOTES);
599#endif 599#endif
600 600
601 printf (_(UT_SUPPORT)); 601 printf (UT_SUPPORT);
602} 602}
603 603
604void 604void