diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2010-04-14 06:11:45 -0400 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2010-04-14 08:33:06 -0400 |
commit | 25d1ee331dbe4977a4a1a756c67f32bd51d9b070 (patch) | |
tree | b15cfec59fdbaa8b283f8e7aa2e3d8c4207a7376 /plugins/check_smtp.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_smtp.c')
-rw-r--r-- | plugins/check_smtp.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index 62f10254..c78b709c 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c | |||
@@ -767,12 +767,12 @@ print_help (void) | |||
767 | 767 | ||
768 | print_usage (); | 768 | print_usage (); |
769 | 769 | ||
770 | printf (_(UT_HELP_VRSN)); | 770 | printf (UT_HELP_VRSN); |
771 | printf (_(UT_EXTRA_OPTS)); | 771 | printf (UT_EXTRA_OPTS); |
772 | 772 | ||
773 | printf (_(UT_HOST_PORT), 'p', myport); | 773 | printf (UT_HOST_PORT, 'p', myport); |
774 | 774 | ||
775 | printf (_(UT_IPv46)); | 775 | printf (UT_IPv46); |
776 | 776 | ||
777 | printf (" %s\n", "-e, --expect=STRING"); | 777 | printf (" %s\n", "-e, --expect=STRING"); |
778 | printf (_(" String to expect in first line of server response (default: '%s')\n"), SMTP_EXPECT); | 778 | printf (_(" String to expect in first line of server response (default: '%s')\n"), SMTP_EXPECT); |
@@ -796,11 +796,11 @@ print_help (void) | |||
796 | printf (" %s\n", "-P, --authpass=STRING"); | 796 | printf (" %s\n", "-P, --authpass=STRING"); |
797 | printf (" %s\n", _("SMTP AUTH password")); | 797 | printf (" %s\n", _("SMTP AUTH password")); |
798 | 798 | ||
799 | printf (_(UT_WARN_CRIT)); | 799 | printf (UT_WARN_CRIT); |
800 | 800 | ||
801 | printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); | 801 | printf (UT_TIMEOUT, DEFAULT_SOCKET_TIMEOUT); |
802 | 802 | ||
803 | printf (_(UT_VERBOSE)); | 803 | printf (UT_VERBOSE); |
804 | 804 | ||
805 | printf("\n"); | 805 | printf("\n"); |
806 | printf ("%s\n", _("Successul connects return STATE_OK, refusals and timeouts return")); | 806 | printf ("%s\n", _("Successul connects return STATE_OK, refusals and timeouts return")); |
@@ -811,10 +811,10 @@ print_help (void) | |||
811 | #ifdef NP_EXTRA_OPTS | 811 | #ifdef NP_EXTRA_OPTS |
812 | printf ("\n"); | 812 | printf ("\n"); |
813 | printf ("%s\n", _("Notes:")); | 813 | printf ("%s\n", _("Notes:")); |
814 | printf (_(UT_EXTRA_OPTS_NOTES)); | 814 | printf (UT_EXTRA_OPTS_NOTES); |
815 | #endif | 815 | #endif |
816 | 816 | ||
817 | printf (_(UT_SUPPORT)); | 817 | printf (UT_SUPPORT); |
818 | } | 818 | } |
819 | 819 | ||
820 | 820 | ||