summaryrefslogtreecommitdiffstats
path: root/plugins/utils.h
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/utils.h
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/utils.h')
-rw-r--r--plugins/utils.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/plugins/utils.h b/plugins/utils.h
index d6e9c8f..8da2160 100644
--- a/plugins/utils.h
+++ b/plugins/utils.h
@@ -137,73 +137,73 @@ char *fperfdata (const char *,
137#define COPYRIGHT "Copyright (c) %s Nagios Plugin Development Team\n\ 137#define COPYRIGHT "Copyright (c) %s Nagios Plugin Development Team\n\
138\t<%s>\n\n" 138\t<%s>\n\n"
139 139
140#define UT_HLP_VRS "\ 140#define UT_HLP_VRS _("\
141 %s (-h | --help) for detailed help\n\ 141 %s (-h | --help) for detailed help\n\
142 %s (-V | --version) for version information\n" 142 %s (-V | --version) for version information\n")
143 143
144#define UT_HELP_VRSN "\ 144#define UT_HELP_VRSN _("\
145\nOptions:\n\ 145\nOptions:\n\
146 -h, --help\n\ 146 -h, --help\n\
147 Print detailed help screen\n\ 147 Print detailed help screen\n\
148 -V, --version\n\ 148 -V, --version\n\
149 Print version information\n" 149 Print version information\n")
150 150
151#define UT_HOST_PORT "\ 151#define UT_HOST_PORT _("\
152 -H, --hostname=ADDRESS\n\ 152 -H, --hostname=ADDRESS\n\
153 Host name, IP Address, or unix socket (must be an absolute path)\n\ 153 Host name, IP Address, or unix socket (must be an absolute path)\n\
154 -%c, --port=INTEGER\n\ 154 -%c, --port=INTEGER\n\
155 Port number (default: %s)\n" 155 Port number (default: %s)\n")
156 156
157#define UT_IPv46 "\ 157#define UT_IPv46 _("\
158 -4, --use-ipv4\n\ 158 -4, --use-ipv4\n\
159 Use IPv4 connection\n\ 159 Use IPv4 connection\n\
160 -6, --use-ipv6\n\ 160 -6, --use-ipv6\n\
161 Use IPv6 connection\n" 161 Use IPv6 connection\n")
162 162
163#define UT_VERBOSE "\ 163#define UT_VERBOSE _("\
164 -v, --verbose\n\ 164 -v, --verbose\n\
165 Show details for command-line debugging (Nagios may truncate output)\n" 165 Show details for command-line debugging (Nagios may truncate output)\n")
166 166
167#define UT_WARN_CRIT "\ 167#define UT_WARN_CRIT _("\
168 -w, --warning=DOUBLE\n\ 168 -w, --warning=DOUBLE\n\
169 Response time to result in warning status (seconds)\n\ 169 Response time to result in warning status (seconds)\n\
170 -c, --critical=DOUBLE\n\ 170 -c, --critical=DOUBLE\n\
171 Response time to result in critical status (seconds)\n" 171 Response time to result in critical status (seconds)\n")
172 172
173#define UT_WARN_CRIT_RANGE "\ 173#define UT_WARN_CRIT_RANGE _("\
174 -w, --warning=RANGE\n\ 174 -w, --warning=RANGE\n\
175 Warning range (format: start:end). Alert if outside this range\n\ 175 Warning range (format: start:end). Alert if outside this range\n\
176 -c, --critical=RANGE\n\ 176 -c, --critical=RANGE\n\
177 Critical range\n" 177 Critical range\n")
178 178
179#define UT_TIMEOUT "\ 179#define UT_TIMEOUT _("\
180 -t, --timeout=INTEGER\n\ 180 -t, --timeout=INTEGER\n\
181 Seconds before connection times out (default: %d)\n" 181 Seconds before connection times out (default: %d)\n")
182 182
183#ifdef NP_EXTRA_OPTS 183#ifdef NP_EXTRA_OPTS
184#define UT_EXTRA_OPTS "\ 184#define UT_EXTRA_OPTS _("\
185 --extra-opts=[section][@file]\n\ 185 --extra-opts=[section][@file]\n\
186 Read additionnal options from ini file\n" 186 Read additionnal options from ini file\n")
187#define UT_EXTRA_OPTS_NOTES "\ 187#define UT_EXTRA_OPTS_NOTES _("\
188 See: http://nagiosplugins.org/extra-opts for --extra-opts usage and examples.\n" 188 See: http://nagiosplugins.org/extra-opts for --extra-opts usage and examples.\n")
189#else 189#else
190#define UT_EXTRA_OPTS "" 190#define UT_EXTRA_OPTS ""
191#define UT_EXTRA_OPTS_NOTES "" 191#define UT_EXTRA_OPTS_NOTES ""
192#endif 192#endif
193 193
194#define UT_THRESHOLDS_NOTES "\ 194#define UT_THRESHOLDS_NOTES _("\
195 See:\n\ 195 See:\n\
196 http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT\n\ 196 http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT\n\
197 for THRESHOLD format and examples.\n" 197 for THRESHOLD format and examples.\n")
198 198
199#define UT_SUPPORT "\n\ 199#define UT_SUPPORT _("\n\
200Send email to nagios-users@lists.sourceforge.net if you have questions\n\ 200Send email to nagios-users@lists.sourceforge.net if you have questions\n\
201regarding use of this software. To submit patches or suggest improvements,\n\ 201regarding use of this software. To submit patches or suggest improvements,\n\
202send email to nagiosplug-devel@lists.sourceforge.net\n\n" 202send email to nagiosplug-devel@lists.sourceforge.net\n\n")
203 203
204#define UT_NOWARRANTY "\n\ 204#define UT_NOWARRANTY _("\n\
205The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute\n\ 205The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute\n\
206copies of the plugins under the terms of the GNU General Public License.\n\ 206copies of the plugins under the terms of the GNU General Public License.\n\
207For more information about these matters, see the file named COPYING.\n" 207For more information about these matters, see the file named COPYING.\n")
208 208
209#endif /* NP_UTILS_H */ 209#endif /* NP_UTILS_H */