diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2010-04-14 10:11:45 (GMT) |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2010-04-14 12:33:06 (GMT) |
commit | 25d1ee331dbe4977a4a1a756c67f32bd51d9b070 (patch) | |
tree | b15cfec59fdbaa8b283f8e7aa2e3d8c4207a7376 /plugins/check_ntp_peer.c | |
parent | b649333321701eccfd99df0d39c6b8d8c92d6a8b (diff) | |
download | monitoring-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_ntp_peer.c')
-rw-r--r-- | plugins/check_ntp_peer.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index 0512058..fa18cfb 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c | |||
@@ -658,9 +658,9 @@ void print_help(void){ | |||
658 | printf ("\n\n"); | 658 | printf ("\n\n"); |
659 | 659 | ||
660 | print_usage(); | 660 | print_usage(); |
661 | printf (_(UT_HELP_VRSN)); | 661 | printf (UT_HELP_VRSN); |
662 | printf (_(UT_EXTRA_OPTS)); | 662 | printf (UT_EXTRA_OPTS); |
663 | printf (_(UT_HOST_PORT), 'p', "123"); | 663 | printf (UT_HOST_PORT, 'p', "123"); |
664 | printf (" %s\n", "-q, --quiet"); | 664 | printf (" %s\n", "-q, --quiet"); |
665 | printf (" %s\n", _("Returns UNKNOWN instead of CRITICAL or WARNING if server isn't synchronized")); | 665 | printf (" %s\n", _("Returns UNKNOWN instead of CRITICAL or WARNING if server isn't synchronized")); |
666 | printf (" %s\n", "-w, --warning=THRESHOLD"); | 666 | printf (" %s\n", "-w, --warning=THRESHOLD"); |
@@ -679,8 +679,8 @@ void print_help(void){ | |||
679 | printf (" %s\n", _("Warning threshold for number of usable time sources (\"truechimers\")")); | 679 | printf (" %s\n", _("Warning threshold for number of usable time sources (\"truechimers\")")); |
680 | printf (" %s\n", "-n, --tcrit=THRESHOLD"); | 680 | printf (" %s\n", "-n, --tcrit=THRESHOLD"); |
681 | printf (" %s\n", _("Critical threshold for number of usable time sources (\"truechimers\")")); | 681 | printf (" %s\n", _("Critical threshold for number of usable time sources (\"truechimers\")")); |
682 | printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); | 682 | printf (UT_TIMEOUT, DEFAULT_SOCKET_TIMEOUT); |
683 | printf (_(UT_VERBOSE)); | 683 | printf (UT_VERBOSE); |
684 | 684 | ||
685 | printf("\n"); | 685 | printf("\n"); |
686 | printf("%s\n", _("This plugin checks an NTP server independent of any commandline")); | 686 | printf("%s\n", _("This plugin checks an NTP server independent of any commandline")); |
@@ -692,10 +692,10 @@ void print_help(void){ | |||
692 | printf(" %s\n", _("plugin will not check the clock offset between the local host and NTP")); | 692 | printf(" %s\n", _("plugin will not check the clock offset between the local host and NTP")); |
693 | printf(" %s\n", _("server; please use check_ntp_time for that purpose.")); | 693 | printf(" %s\n", _("server; please use check_ntp_time for that purpose.")); |
694 | printf("\n"); | 694 | printf("\n"); |
695 | printf(_(UT_THRESHOLDS_NOTES)); | 695 | printf(UT_THRESHOLDS_NOTES); |
696 | #ifdef NP_EXTRA_OPTS | 696 | #ifdef NP_EXTRA_OPTS |
697 | printf("\n"); | 697 | printf("\n"); |
698 | printf(_(UT_EXTRA_OPTS_NOTES)); | 698 | printf(UT_EXTRA_OPTS_NOTES); |
699 | #endif | 699 | #endif |
700 | 700 | ||
701 | printf("\n"); | 701 | printf("\n"); |
@@ -713,7 +713,7 @@ void print_help(void){ | |||
713 | printf(" %s\n", _("Check only stratum:")); | 713 | printf(" %s\n", _("Check only stratum:")); |
714 | printf(" %s\n", ("./check_ntp_peer -H ntpserv -W 4 -C 6")); | 714 | printf(" %s\n", ("./check_ntp_peer -H ntpserv -W 4 -C 6")); |
715 | 715 | ||
716 | printf (_(UT_SUPPORT)); | 716 | printf (UT_SUPPORT); |
717 | } | 717 | } |
718 | 718 | ||
719 | void | 719 | void |