summaryrefslogtreecommitdiffstats
path: root/plugins/check_ups.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_ups.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_ups.c')
-rw-r--r--plugins/check_ups.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/check_ups.c b/plugins/check_ups.c
index 8985b74e..ce57ef3d 100644
--- a/plugins/check_ups.c
+++ b/plugins/check_ups.c
@@ -611,10 +611,10 @@ print_help (void)
611 611
612 print_usage (); 612 print_usage ();
613 613
614 printf (_(UT_HELP_VRSN)); 614 printf (UT_HELP_VRSN);
615 printf (_(UT_EXTRA_OPTS)); 615 printf (UT_EXTRA_OPTS);
616 616
617 printf (_(UT_HOST_PORT), 'p', myport); 617 printf (UT_HOST_PORT, 'p', myport);
618 618
619 printf (" %s\n", "-u, --ups=STRING"); 619 printf (" %s\n", "-u, --ups=STRING");
620 printf (" %s\n", _("Name of UPS")); 620 printf (" %s\n", _("Name of UPS"));
@@ -623,13 +623,13 @@ print_help (void)
623 printf (" %s\n", "-v, --variable=STRING"); 623 printf (" %s\n", "-v, --variable=STRING");
624 printf (" %s %s\n", _("Valid values for STRING are"), "LINE, TEMP, BATTPCT or LOADPCT"); 624 printf (" %s %s\n", _("Valid values for STRING are"), "LINE, TEMP, BATTPCT or LOADPCT");
625 625
626 printf (_(UT_WARN_CRIT)); 626 printf (UT_WARN_CRIT);
627 627
628 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); 628 printf (UT_TIMEOUT, DEFAULT_SOCKET_TIMEOUT);
629 629
630/* TODO: -v clashing with -v/-variable. Commenting out help text since verbose 630/* TODO: -v clashing with -v/-variable. Commenting out help text since verbose
631 is unused up to now */ 631 is unused up to now */
632/* printf (_(UT_VERBOSE)); */ 632/* printf (UT_VERBOSE); */
633 633
634 printf ("\n"); 634 printf ("\n");
635 printf ("%s\n", _("This plugin attempts to determine the status of a UPS (Uninterruptible Power")); 635 printf ("%s\n", _("This plugin attempts to determine the status of a UPS (Uninterruptible Power"));
@@ -651,10 +651,10 @@ print_help (void)
651 printf (" %s\n", _("http://www.networkupstools.org")); 651 printf (" %s\n", _("http://www.networkupstools.org"));
652#ifdef NP_EXTRA_OPTS 652#ifdef NP_EXTRA_OPTS
653 printf ("\n"); 653 printf ("\n");
654 printf (_(UT_EXTRA_OPTS_NOTES)); 654 printf (UT_EXTRA_OPTS_NOTES);
655#endif 655#endif
656 656
657 printf (_(UT_SUPPORT)); 657 printf (UT_SUPPORT);
658} 658}
659 659
660 660