Commit 52a37206 52a372063eba534bba595becd10d50680916deca by Wojciech Polak

Added NLS.

1 parent 62519d9d
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by 5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details. 12 GNU Lesser General Public License for more details.
13 13
14 You should have received a copy of the GNU Lesser General Public License 14 You should have received a copy of the GNU Lesser General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #ifdef HAVE_CONFIG_H 18 #ifdef HAVE_CONFIG_H
...@@ -46,7 +46,7 @@ sieve_action_keep (sieve_machine_t mach, list_t args, list_t tags) ...@@ -46,7 +46,7 @@ sieve_action_keep (sieve_machine_t mach, list_t args, list_t tags)
46 int 46 int
47 sieve_action_discard (sieve_machine_t mach, list_t args, list_t tags) 47 sieve_action_discard (sieve_machine_t mach, list_t args, list_t tags)
48 { 48 {
49 sieve_log_action (mach, "DISCARD", "marking as deleted"); 49 sieve_log_action (mach, "DISCARD", _("marking as deleted"));
50 if (sieve_is_dry_run (mach)) 50 if (sieve_is_dry_run (mach))
51 return 0; 51 return 0;
52 sieve_mark_deleted (mach->msg, 1); 52 sieve_mark_deleted (mach->msg, 1);
...@@ -60,17 +60,17 @@ sieve_action_fileinto (sieve_machine_t mach, list_t args, list_t tags) ...@@ -60,17 +60,17 @@ sieve_action_fileinto (sieve_machine_t mach, list_t args, list_t tags)
60 sieve_value_t *val = sieve_value_get (args, 0); 60 sieve_value_t *val = sieve_value_get (args, 0);
61 if (!val) 61 if (!val)
62 { 62 {
63 sieve_error (mach, "fileinto: can't get filename!"); 63 sieve_error (mach, _("fileinto: can't get filename!"));
64 sieve_abort (mach); 64 sieve_abort (mach);
65 } 65 }
66 sieve_log_action (mach, "FILEINTO", "delivering into %s", val->v.string); 66 sieve_log_action (mach, "FILEINTO", _("delivering into %s"), val->v.string);
67 if (sieve_is_dry_run (mach)) 67 if (sieve_is_dry_run (mach))
68 return 0; 68 return 0;
69 69
70 rc = message_save_to_mailbox (mach->msg, mach->ticket, mach->mu_debug, 70 rc = message_save_to_mailbox (mach->msg, mach->ticket, mach->mu_debug,
71 val->v.string); 71 val->v.string);
72 if (rc) 72 if (rc)
73 sieve_error (mach, "fileinto: cannot save to mailbox: %s", 73 sieve_error (mach, _("fileinto: cannot save to mailbox: %s"),
74 mu_errstring (rc)); 74 mu_errstring (rc));
75 else 75 else
76 sieve_mark_deleted (mach->msg, 1); 76 sieve_mark_deleted (mach->msg, 1);
...@@ -236,7 +236,7 @@ sieve_action_reject (sieve_machine_t mach, list_t args, list_t tags) ...@@ -236,7 +236,7 @@ sieve_action_reject (sieve_machine_t mach, list_t args, list_t tags)
236 sieve_value_t *val = sieve_value_get (args, 0); 236 sieve_value_t *val = sieve_value_get (args, 0);
237 if (!val) 237 if (!val)
238 { 238 {
239 sieve_error (mach, "reject: can't get text!"); 239 sieve_error (mach, _("reject: can't get text!"));
240 sieve_abort (mach); 240 sieve_abort (mach);
241 } 241 }
242 sieve_log_action (mach, "REJECT", NULL); 242 sieve_log_action (mach, "REJECT", NULL);
...@@ -252,7 +252,7 @@ sieve_action_reject (sieve_machine_t mach, list_t args, list_t tags) ...@@ -252,7 +252,7 @@ sieve_action_reject (sieve_machine_t mach, list_t args, list_t tags)
252 if (rc) 252 if (rc)
253 { 253 {
254 sieve_error (mach, 254 sieve_error (mach,
255 "%d: reject - can't create to address <%s>: %s\n", 255 _("%d: reject - can't create to address <%s>: %s\n"),
256 sieve_get_message_num (mach), 256 sieve_get_message_num (mach),
257 addrtext, mu_errstring (rc)); 257 addrtext, mu_errstring (rc));
258 free (addrtext); 258 free (addrtext);
...@@ -264,7 +264,7 @@ sieve_action_reject (sieve_machine_t mach, list_t args, list_t tags) ...@@ -264,7 +264,7 @@ sieve_action_reject (sieve_machine_t mach, list_t args, list_t tags)
264 if (rc) 264 if (rc)
265 { 265 {
266 sieve_error (mach, 266 sieve_error (mach,
267 "%d: reject - can't create from address <%s>: %s\n", 267 _("%d: reject - can't create from address <%s>: %s\n"),
268 sieve_get_message_num (mach), 268 sieve_get_message_num (mach),
269 sieve_get_daemon_email (mach), 269 sieve_get_daemon_email (mach),
270 mu_errstring (rc)); 270 mu_errstring (rc));
...@@ -278,7 +278,7 @@ sieve_action_reject (sieve_machine_t mach, list_t args, list_t tags) ...@@ -278,7 +278,7 @@ sieve_action_reject (sieve_machine_t mach, list_t args, list_t tags)
278 mailer_get_url (mailer, &url); 278 mailer_get_url (mailer, &url);
279 279
280 sieve_error (mach, 280 sieve_error (mach,
281 "%d: reject - can't open mailer %s: %s\n", 281 _("%d: reject - can't open mailer %s: %s\n"),
282 sieve_get_message_num (mach), 282 sieve_get_message_num (mach),
283 url_to_string (url), 283 url_to_string (url),
284 mu_errstring (rc)); 284 mu_errstring (rc));
...@@ -353,7 +353,7 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags) ...@@ -353,7 +353,7 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags)
353 sieve_value_t *val = sieve_value_get (args, 0); 353 sieve_value_t *val = sieve_value_get (args, 0);
354 if (!val) 354 if (!val)
355 { 355 {
356 sieve_error (mach, "redirect: can't get address!"); 356 sieve_error (mach, _("redirect: can't get address!"));
357 sieve_abort (mach); 357 sieve_abort (mach);
358 } 358 }
359 359
...@@ -361,20 +361,20 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags) ...@@ -361,20 +361,20 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags)
361 if (rc) 361 if (rc)
362 { 362 {
363 sieve_error (mach, 363 sieve_error (mach,
364 "%d: redirect - parsing to `%s' failed: %s\n", 364 _("%d: redirect - parsing to `%s' failed: %s\n"),
365 sieve_get_message_num (mach), 365 sieve_get_message_num (mach),
366 val->v.string, mu_errstring (rc)); 366 val->v.string, mu_errstring (rc));
367 return 1; 367 return 1;
368 } 368 }
369 369
370 sieve_log_action (mach, "REDIRECT", "to %s", val->v.string); 370 sieve_log_action (mach, "REDIRECT", _("to %s"), val->v.string);
371 if (sieve_is_dry_run (mach)) 371 if (sieve_is_dry_run (mach))
372 return 0; 372 return 0;
373 373
374 msg = sieve_get_message (mach); 374 msg = sieve_get_message (mach);
375 if (check_redirect_loop (msg)) 375 if (check_redirect_loop (msg))
376 { 376 {
377 sieve_error (mach, "%d: Redirection loop detected", 377 sieve_error (mach, _("%d: Redirection loop detected"),
378 sieve_get_message_num (mach)); 378 sieve_get_message_num (mach));
379 goto end; 379 goto end;
380 } 380 }
...@@ -383,7 +383,7 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags) ...@@ -383,7 +383,7 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags)
383 if (rc) 383 if (rc)
384 { 384 {
385 sieve_error (mach, 385 sieve_error (mach,
386 "%d: redirect - can't get envelope sender: %s\n", 386 _("%d: redirect - can't get envelope sender: %s\n"),
387 sieve_get_message_num (mach), mu_errstring (rc)); 387 sieve_get_message_num (mach), mu_errstring (rc));
388 goto end; 388 goto end;
389 } 389 }
...@@ -392,7 +392,7 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags) ...@@ -392,7 +392,7 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags)
392 if (rc) 392 if (rc)
393 { 393 {
394 sieve_error (mach, 394 sieve_error (mach,
395 "%d: redirect - can't create from address <%s>: %s\n", 395 _("%d: redirect - can't create from address <%s>: %s\n"),
396 sieve_get_message_num (mach), 396 sieve_get_message_num (mach),
397 fromaddr, mu_errstring (rc)); 397 fromaddr, mu_errstring (rc));
398 free (fromaddr); 398 free (fromaddr);
...@@ -404,7 +404,7 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags) ...@@ -404,7 +404,7 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags)
404 rc = message_create_copy (&newmsg, msg); 404 rc = message_create_copy (&newmsg, msg);
405 if (rc) 405 if (rc)
406 { 406 {
407 sieve_error (mach, "%d: can't copy message: %s", 407 sieve_error (mach, _("%d: can't copy message: %s"),
408 sieve_get_message_num (mach), 408 sieve_get_message_num (mach),
409 mu_errstring (rc)); 409 mu_errstring (rc));
410 goto end; 410 goto end;
...@@ -419,7 +419,7 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags) ...@@ -419,7 +419,7 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags)
419 } 419 }
420 else 420 else
421 { 421 {
422 sieve_error (mach, "%d: can't get my email address", 422 sieve_error (mach, _("%d: can't get my email address"),
423 sieve_get_message_num (mach)); 423 sieve_get_message_num (mach));
424 goto end; 424 goto end;
425 } 425 }
...@@ -431,7 +431,7 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags) ...@@ -431,7 +431,7 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags)
431 mailer_get_url (mailer, &url); 431 mailer_get_url (mailer, &url);
432 432
433 sieve_error (mach, 433 sieve_error (mach,
434 "%d: redirect - can't open mailer %s: %s\n", 434 _("%d: redirect - can't open mailer %s: %s\n"),
435 sieve_get_message_num (mach), 435 sieve_get_message_num (mach),
436 url_to_string (url), 436 url_to_string (url),
437 mu_errstring (rc)); 437 mu_errstring (rc));
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by 5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details. 12 GNU Lesser General Public License for more details.
13 13
14 You should have received a copy of the GNU Lesser General Public License 14 You should have received a copy of the GNU Lesser General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #ifdef HAVE_CONFIG_H 18 #ifdef HAVE_CONFIG_H
...@@ -165,12 +165,12 @@ _regex_compile (void *item, void *data) ...@@ -165,12 +165,12 @@ _regex_compile (void *item, void *data)
165 { 165 {
166 regerror (rc, preg, errbuf, size); 166 regerror (rc, preg, errbuf, size);
167 sieve_compile_error (sieve_filename, sieve_line_num, 167 sieve_compile_error (sieve_filename, sieve_line_num,
168 "regex error: %s", errbuf); 168 _("regex error: %s"), errbuf);
169 free (errbuf); 169 free (errbuf);
170 } 170 }
171 else 171 else
172 sieve_compile_error (sieve_filename, sieve_line_num, 172 sieve_compile_error (sieve_filename, sieve_line_num,
173 "regex error"); 173 _("regex error"));
174 return rc; 174 return rc;
175 } 175 }
176 176
...@@ -234,7 +234,7 @@ sieve_match_part_checker (const char *name, list_t tags, list_t args) ...@@ -234,7 +234,7 @@ sieve_match_part_checker (const char *name, list_t tags, list_t args)
234 if (err) 234 if (err)
235 { 235 {
236 sieve_compile_error (sieve_filename, sieve_line_num, 236 sieve_compile_error (sieve_filename, sieve_line_num,
237 "match type specified twice in call to `%s'", 237 _("match type specified twice in call to `%s'"),
238 name); 238 name);
239 return 1; 239 return 1;
240 } 240 }
...@@ -256,8 +256,8 @@ sieve_match_part_checker (const char *name, list_t tags, list_t args) ...@@ -256,8 +256,8 @@ sieve_match_part_checker (const char *name, list_t tags, list_t args)
256 if (!compfun) 256 if (!compfun)
257 { 257 {
258 sieve_compile_error (sieve_filename, sieve_line_num, 258 sieve_compile_error (sieve_filename, sieve_line_num,
259 "comparator `%s' is incompatible with match type `%s' in call to `%s'", 259 _("comparator `%s' is incompatible with match type `%s' in call to `%s'"),
260 compname, match ? match->tag : "is", name); 260 compname, match ? match->tag : _("is"), name);
261 return 1; 261 return 1;
262 } 262 }
263 263
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by 5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details. 12 GNU Lesser General Public License for more details.
13 13
14 You should have received a copy of the GNU Lesser General Public License 14 You should have received a copy of the GNU Lesser General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #ifdef HAVE_CONFIG_H 18 #ifdef HAVE_CONFIG_H
...@@ -35,7 +35,7 @@ sieve_code (sieve_op_t *op) ...@@ -35,7 +35,7 @@ sieve_code (sieve_op_t *op)
35 if (!newprog) 35 if (!newprog)
36 { 36 {
37 sieve_compile_error (sieve_filename, sieve_line_num, 37 sieve_compile_error (sieve_filename, sieve_line_num,
38 "out of memory!"); 38 _("out of memory!"));
39 return 1; 39 return 1;
40 } 40 }
41 sieve_machine->prog = newprog; 41 sieve_machine->prog = newprog;
...@@ -154,7 +154,7 @@ sieve_code_command (sieve_register_t *reg, list_t arglist) ...@@ -154,7 +154,7 @@ sieve_code_command (sieve_register_t *reg, list_t arglist)
154 if (rc) 154 if (rc)
155 { 155 {
156 sieve_compile_error (sieve_filename, sieve_line_num, 156 sieve_compile_error (sieve_filename, sieve_line_num,
157 "can't create iterator: %s", 157 _("can't create iterator: %s"),
158 mu_errstring (rc)); 158 mu_errstring (rc));
159 return 1; 159 return 1;
160 } 160 }
...@@ -173,7 +173,7 @@ sieve_code_command (sieve_register_t *reg, list_t arglist) ...@@ -173,7 +173,7 @@ sieve_code_command (sieve_register_t *reg, list_t arglist)
173 if (!tag) 173 if (!tag)
174 { 174 {
175 sieve_compile_error (sieve_filename, sieve_line_num, 175 sieve_compile_error (sieve_filename, sieve_line_num,
176 "invalid tag name `%s' for `%s'", 176 _("invalid tag name `%s' for `%s'"),
177 val->v.string, reg->name); 177 val->v.string, reg->name);
178 err = 1; 178 err = 1;
179 break; 179 break;
...@@ -182,7 +182,7 @@ sieve_code_command (sieve_register_t *reg, list_t arglist) ...@@ -182,7 +182,7 @@ sieve_code_command (sieve_register_t *reg, list_t arglist)
182 if (!tag_list && (rc = list_create (&tag_list))) 182 if (!tag_list && (rc = list_create (&tag_list)))
183 { 183 {
184 sieve_compile_error (sieve_filename, sieve_line_num, 184 sieve_compile_error (sieve_filename, sieve_line_num,
185 "%s:%d: can't create tag list: %s", 185 _("%s:%d: can't create tag list: %s"),
186 mu_errstring (rc)); 186 mu_errstring (rc));
187 err = 1; 187 err = 1;
188 break; 188 break;
...@@ -206,7 +206,7 @@ sieve_code_command (sieve_register_t *reg, list_t arglist) ...@@ -206,7 +206,7 @@ sieve_code_command (sieve_register_t *reg, list_t arglist)
206 if (!chk_list && (rc = list_create (&chk_list))) 206 if (!chk_list && (rc = list_create (&chk_list)))
207 { 207 {
208 sieve_compile_error (sieve_filename, sieve_line_num, 208 sieve_compile_error (sieve_filename, sieve_line_num,
209 "%s:%d: can't create check list: %s", 209 _("%s:%d: can't create check list: %s"),
210 mu_errstring (rc)); 210 mu_errstring (rc));
211 err = 1; 211 err = 1;
212 break; 212 break;
...@@ -218,7 +218,7 @@ sieve_code_command (sieve_register_t *reg, list_t arglist) ...@@ -218,7 +218,7 @@ sieve_code_command (sieve_register_t *reg, list_t arglist)
218 else if (*exp_arg == SVT_VOID) 218 else if (*exp_arg == SVT_VOID)
219 { 219 {
220 sieve_compile_error (sieve_filename, sieve_line_num, 220 sieve_compile_error (sieve_filename, sieve_line_num,
221 "too many arguments in call to `%s'", 221 _("too many arguments in call to `%s'"),
222 reg->name); 222 reg->name);
223 err = 1; 223 err = 1;
224 break; 224 break;
...@@ -239,11 +239,11 @@ sieve_code_command (sieve_register_t *reg, list_t arglist) ...@@ -239,11 +239,11 @@ sieve_code_command (sieve_register_t *reg, list_t arglist)
239 else 239 else
240 { 240 {
241 sieve_compile_error (sieve_filename, sieve_line_num, 241 sieve_compile_error (sieve_filename, sieve_line_num,
242 "type mismatch in argument %d to `%s'", 242 _("type mismatch in argument %d to `%s'"),
243 exp_arg - reg->req_args + 1, 243 exp_arg - reg->req_args + 1,
244 reg->name); 244 reg->name);
245 sieve_compile_error (sieve_filename, sieve_line_num, 245 sieve_compile_error (sieve_filename, sieve_line_num,
246 "Expected %s but passed %s", 246 _("Expected %s but passed %s"),
247 sieve_type_str (*exp_arg), 247 sieve_type_str (*exp_arg),
248 sieve_type_str (val->type)); 248 sieve_type_str (val->type));
249 err = 1; 249 err = 1;
...@@ -254,7 +254,7 @@ sieve_code_command (sieve_register_t *reg, list_t arglist) ...@@ -254,7 +254,7 @@ sieve_code_command (sieve_register_t *reg, list_t arglist)
254 if (!arg_list && (rc = list_create (&arg_list))) 254 if (!arg_list && (rc = list_create (&arg_list)))
255 { 255 {
256 sieve_compile_error (sieve_filename, sieve_line_num, 256 sieve_compile_error (sieve_filename, sieve_line_num,
257 "can't create arg list: %s", 257 _("can't create arg list: %s"),
258 mu_errstring (rc)); 258 mu_errstring (rc));
259 err = 1; 259 err = 1;
260 break; 260 break;
...@@ -272,7 +272,7 @@ sieve_code_command (sieve_register_t *reg, list_t arglist) ...@@ -272,7 +272,7 @@ sieve_code_command (sieve_register_t *reg, list_t arglist)
272 if (*exp_arg != SVT_VOID) 272 if (*exp_arg != SVT_VOID)
273 { 273 {
274 sieve_compile_error (sieve_filename, sieve_line_num, 274 sieve_compile_error (sieve_filename, sieve_line_num,
275 "too few arguments in call to `%s'", 275 _("too few arguments in call to `%s'"),
276 reg->name); 276 reg->name);
277 err = 1; 277 err = 1;
278 } 278 }
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by 5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details. 12 GNU Lesser General Public License for more details.
13 13
14 You should have received a copy of the GNU Lesser General Public License 14 You should have received a copy of the GNU Lesser General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #ifdef HAVE_CONFIG_H 18 #ifdef HAVE_CONFIG_H
...@@ -35,7 +35,7 @@ sieve_require (list_t slist) ...@@ -35,7 +35,7 @@ sieve_require (list_t slist)
35 if (status) 35 if (status)
36 { 36 {
37 sieve_compile_error (sieve_filename, sieve_line_num, 37 sieve_compile_error (sieve_filename, sieve_line_num,
38 "cannot create iterator: %s", 38 _("cannot create iterator: %s"),
39 mu_errstring (status)); 39 mu_errstring (status));
40 return; 40 return;
41 } 41 }
...@@ -69,7 +69,7 @@ sieve_require (list_t slist) ...@@ -69,7 +69,7 @@ sieve_require (list_t slist)
69 if (reqfn (sieve_machine, name)) 69 if (reqfn (sieve_machine, name))
70 { 70 {
71 sieve_compile_error (sieve_filename, sieve_line_num, 71 sieve_compile_error (sieve_filename, sieve_line_num,
72 "source for the required %s %s is not available", 72 _("source for the required %s %s is not available"),
73 text, 73 text,
74 name); 74 name);
75 } 75 }
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by 5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details. 12 GNU Lesser General Public License for more details.
13 13
14 You should have received a copy of the GNU Lesser General Public License 14 You should have received a copy of the GNU Lesser General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #ifdef HAVE_CONFIG_H 18 #ifdef HAVE_CONFIG_H
...@@ -87,7 +87,7 @@ instr_push (sieve_machine_t mach) ...@@ -87,7 +87,7 @@ instr_push (sieve_machine_t mach)
87 87
88 if (!mach->stack && list_create (&mach->stack)) 88 if (!mach->stack && list_create (&mach->stack))
89 { 89 {
90 sieve_error (mach, "can't create stack"); 90 sieve_error (mach, _("can't create stack"));
91 sieve_abort (mach); 91 sieve_abort (mach);
92 } 92 }
93 list_prepend (mach->stack, (void*) mach->reg); 93 list_prepend (mach->stack, (void*) mach->reg);
...@@ -105,7 +105,7 @@ instr_pop (sieve_machine_t mach) ...@@ -105,7 +105,7 @@ instr_pop (sieve_machine_t mach)
105 105
106 if (!mach->stack || list_is_empty (mach->stack)) 106 if (!mach->stack || list_is_empty (mach->stack))
107 { 107 {
108 sieve_error (mach, "stack underflow"); 108 sieve_error (mach, _("stack underflow"));
109 sieve_abort (mach); 109 sieve_abort (mach);
110 } 110 }
111 list_get (mach->stack, 0, (void **)&mach->reg); 111 list_get (mach->stack, 0, (void **)&mach->reg);
...@@ -314,7 +314,7 @@ sieve_mailbox (sieve_machine_t mach, mailbox_t mbox) ...@@ -314,7 +314,7 @@ sieve_mailbox (sieve_machine_t mach, mailbox_t mbox)
314 mach->msgno = 0; 314 mach->msgno = 0;
315 rc = mailbox_scan (mbox, 1, &total); 315 rc = mailbox_scan (mbox, 1, &total);
316 if (rc) 316 if (rc)
317 sieve_error (mach, "mailbox_scan: %s", mu_errstring (errno)); 317 sieve_error (mach, _("mailbox_scan: %s"), mu_errstring (errno));
318 318
319 observable_detach (observable, observer); 319 observable_detach (observable, observer);
320 observer_destroy (&observer, mach); 320 observer_destroy (&observer, mach);
......
1 %{ 1 %{
2 /* GNU mailutils - a suite of utilities for electronic mail 2 /* GNU Mailutils -- a suite of utilities for electronic mail
3 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 3 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
4 4
5 This program is free software; you can redistribute it and/or modify 5 GNU Mailutils is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by 6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option) 7 the Free Software Foundation; either version 2, or (at your option)
8 any later version. 8 any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 GNU Mailutils is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details. 13 GNU Lesser General Public License for more details.
14 14
15 You should have received a copy of the GNU Lesser General Public License 15 You should have received a copy of the GNU Lesser General Public License
16 along with this program; if not, write to the Free Software 16 along with GNU Mailutils; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
18 18
19 #ifdef HAVE_CONFIG_H 19 #ifdef HAVE_CONFIG_H
...@@ -122,7 +122,7 @@ lex_set_buffer (FILE *fp) ...@@ -122,7 +122,7 @@ lex_set_buffer (FILE *fp)
122 122
123 if (!buf) 123 if (!buf)
124 { 124 {
125 sieve_compile_error (sieve_filename, sieve_line_num, "not enough memory"); 125 sieve_compile_error (sieve_filename, sieve_line_num, _("not enough memory"));
126 abort (); 126 abort ();
127 } 127 }
128 128
...@@ -224,25 +224,25 @@ push_source (const char *name) ...@@ -224,25 +224,25 @@ push_source (const char *name)
224 if (stat (name, &st)) 224 if (stat (name, &st))
225 { 225 {
226 sieve_compile_error (sieve_filename, sieve_line_num, 226 sieve_compile_error (sieve_filename, sieve_line_num,
227 "can't stat `%s': %s", name, strerror (errno)); 227 _("can't stat `%s': %s"), name, strerror (errno));
228 return 1; 228 return 1;
229 } 229 }
230 230
231 if (sieve_filename && st.st_ino == sieve_source_inode) 231 if (sieve_filename && st.st_ino == sieve_source_inode)
232 { 232 {
233 yyerror ("recursive inclusion"); 233 yyerror (_("recursive inclusion"));
234 return 1; 234 return 1;
235 } 235 }
236 if (ctx = ctx_lookup (st.st_ino)) 236 if (ctx = ctx_lookup (st.st_ino))
237 { 237 {
238 yyerror ("recursive inclusion"); 238 yyerror (_("recursive inclusion"));
239 if (ctx->prev) 239 if (ctx->prev)
240 sieve_compile_error (ctx->prev->filename, ctx->prev->line, 240 sieve_compile_error (ctx->prev->filename, ctx->prev->line,
241 "`%s' already included here", 241 _("`%s' already included here"),
242 name); 242 name);
243 else 243 else
244 sieve_compile_error (sieve_filename, sieve_line_num, 244 sieve_compile_error (sieve_filename, sieve_line_num,
245 "`%s' already included at top level", 245 _("`%s' already included at top level"),
246 name); 246 name);
247 return 1; 247 return 1;
248 } 248 }
...@@ -251,7 +251,7 @@ push_source (const char *name) ...@@ -251,7 +251,7 @@ push_source (const char *name)
251 if (!fp) 251 if (!fp)
252 { 252 {
253 sieve_compile_error (sieve_filename, sieve_line_num, 253 sieve_compile_error (sieve_filename, sieve_line_num,
254 "can't open `%s': %s", name, strerror (errno)); 254 _("can't open `%s': %s"), name, strerror (errno));
255 return 1; 255 return 1;
256 } 256 }
257 257
...@@ -420,7 +420,7 @@ get_file_name (char *p, char *endp, int *usepath) ...@@ -420,7 +420,7 @@ get_file_name (char *p, char *endp, int *usepath)
420 break; 420 break;
421 421
422 default: 422 default:
423 yyerror ("preprocessor syntax"); 423 yyerror (_("preprocessor syntax"));
424 return NULL; 424 return NULL;
425 } 425 }
426 426
...@@ -429,7 +429,7 @@ get_file_name (char *p, char *endp, int *usepath) ...@@ -429,7 +429,7 @@ get_file_name (char *p, char *endp, int *usepath)
429 429
430 if (*p != exp) 430 if (*p != exp)
431 { 431 {
432 yyerror ("missing closing quote in preprocessor statement"); 432 yyerror (_("missing closing quote in preprocessor statement"));
433 return NULL; 433 return NULL;
434 } 434 }
435 435
...@@ -582,7 +582,7 @@ multiline_add (char *s) ...@@ -582,7 +582,7 @@ multiline_add (char *s)
582 s = strdup (multiline_strip_tabs (yytext)); 582 s = strdup (multiline_strip_tabs (yytext));
583 if (!s) 583 if (!s)
584 { 584 {
585 yyerror ("not enough memory"); 585 yyerror (_("not enough memory"));
586 exit (1); 586 exit (1);
587 } 587 }
588 } 588 }
...@@ -622,7 +622,7 @@ multiline_begin () ...@@ -622,7 +622,7 @@ multiline_begin ()
622 multiline_delimiter = strdup ("."); 622 multiline_delimiter = strdup (".");
623 if (!multiline_delimiter) 623 if (!multiline_delimiter)
624 { 624 {
625 yyerror ("not enough memory"); 625 yyerror (_("not enough memory"));
626 exit (1); 626 exit (1);
627 } 627 }
628 } 628 }
...@@ -679,7 +679,7 @@ ident (const char *text) ...@@ -679,7 +679,7 @@ ident (const char *text)
679 yylval.string = strdup (text); 679 yylval.string = strdup (text);
680 if (!yylval.string) 680 if (!yylval.string)
681 { 681 {
682 yyerror ("not enough memory"); 682 yyerror (_("not enough memory"));
683 exit (1); 683 exit (1);
684 } 684 }
685 } 685 }
......
1 %{ 1 %{
2 /* GNU mailutils - a suite of utilities for electronic mail 2 /* GNU Mailutils -- a suite of utilities for electronic mail
3 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 3 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
4 4
5 This program is free software; you can redistribute it and/or modify 5 GNU Mailutils is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by 6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option) 7 the Free Software Foundation; either version 2, or (at your option)
8 any later version. 8 any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 GNU Mailutils is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details. 13 GNU Lesser General Public License for more details.
14 14
15 You should have received a copy of the GNU Lesser General Public License 15 You should have received a copy of the GNU Lesser General Public License
16 along with this program; if not, write to the Free Software 16 along with GNU Mailutils; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
18 18
19 #ifdef HAVE_CONFIG_H 19 #ifdef HAVE_CONFIG_H
...@@ -226,11 +226,11 @@ test : command ...@@ -226,11 +226,11 @@ test : command
226 226
227 if (!reg) 227 if (!reg)
228 sieve_compile_error (sieve_filename, sieve_line_num, 228 sieve_compile_error (sieve_filename, sieve_line_num,
229 "unknown test: %s", 229 _("unknown test: %s"),
230 $1.ident); 230 $1.ident);
231 else if (!reg->required) 231 else if (!reg->required)
232 sieve_compile_error (sieve_filename, sieve_line_num, 232 sieve_compile_error (sieve_filename, sieve_line_num,
233 "test `%s' has not been required", 233 _("test `%s' has not been required"),
234 $1.ident); 234 $1.ident);
235 else if (sieve_code_test (reg, $1.args)) 235 else if (sieve_code_test (reg, $1.args))
236 YYERROR; 236 YYERROR;
...@@ -252,11 +252,11 @@ action : command ...@@ -252,11 +252,11 @@ action : command
252 $$ = sieve_machine->pc; 252 $$ = sieve_machine->pc;
253 if (!reg) 253 if (!reg)
254 sieve_compile_error (sieve_filename, sieve_line_num, 254 sieve_compile_error (sieve_filename, sieve_line_num,
255 "unknown action: %s", 255 _("unknown action: %s"),
256 $1.ident); 256 $1.ident);
257 else if (!reg->required) 257 else if (!reg->required)
258 sieve_compile_error (sieve_filename, sieve_line_num, 258 sieve_compile_error (sieve_filename, sieve_line_num,
259 "action `%s' has not been required", 259 _("action `%s' has not been required"),
260 $1.ident); 260 $1.ident);
261 else if (sieve_code_action (reg, $1.args)) 261 else if (sieve_code_action (reg, $1.args))
262 YYERROR; 262 YYERROR;
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by 5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details. 12 GNU Lesser General Public License for more details.
13 13
14 You should have received a copy of the GNU Lesser General Public License 14 You should have received a copy of the GNU Lesser General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #ifdef HAVE_CONFIG_H 18 #ifdef HAVE_CONFIG_H
...@@ -101,13 +101,13 @@ sieve_test_address (sieve_machine_t mach, list_t args, list_t tags) ...@@ -101,13 +101,13 @@ sieve_test_address (sieve_machine_t mach, list_t args, list_t tags)
101 h = sieve_value_get (args, 0); 101 h = sieve_value_get (args, 0);
102 if (!h) 102 if (!h)
103 { 103 {
104 sieve_error (mach, "address: can't get argument 1"); 104 sieve_error (mach, _("address: can't get argument 1"));
105 sieve_abort (mach); 105 sieve_abort (mach);
106 } 106 }
107 v = sieve_value_get (args, 1); 107 v = sieve_value_get (args, 1);
108 if (!v) 108 if (!v)
109 { 109 {
110 sieve_error (mach, "address: can't get argument 2"); 110 sieve_error (mach, _("address: can't get argument 2"));
111 sieve_abort (mach); 111 sieve_abort (mach);
112 } 112 }
113 113
...@@ -141,13 +141,13 @@ sieve_test_header (sieve_machine_t mach, list_t args, list_t tags) ...@@ -141,13 +141,13 @@ sieve_test_header (sieve_machine_t mach, list_t args, list_t tags)
141 h = sieve_value_get (args, 0); 141 h = sieve_value_get (args, 0);
142 if (!h) 142 if (!h)
143 { 143 {
144 sieve_error (mach, "header: can't get argument 1"); 144 sieve_error (mach, _("header: can't get argument 1"));
145 sieve_abort (mach); 145 sieve_abort (mach);
146 } 146 }
147 v = sieve_value_get (args, 1); 147 v = sieve_value_get (args, 1);
148 if (!v) 148 if (!v)
149 { 149 {
150 sieve_error (mach, "header: can't get argument 2"); 150 sieve_error (mach, _("header: can't get argument 2"));
151 sieve_abort (mach); 151 sieve_abort (mach);
152 } 152 }
153 153
...@@ -221,13 +221,13 @@ sieve_test_envelope (sieve_machine_t mach, list_t args, list_t tags) ...@@ -221,13 +221,13 @@ sieve_test_envelope (sieve_machine_t mach, list_t args, list_t tags)
221 h = sieve_value_get (args, 0); 221 h = sieve_value_get (args, 0);
222 if (!h) 222 if (!h)
223 { 223 {
224 sieve_error (mach, "header: can't get argument 1"); 224 sieve_error (mach, _("header: can't get argument 1"));
225 sieve_abort (mach); 225 sieve_abort (mach);
226 } 226 }
227 v = sieve_value_get (args, 1); 227 v = sieve_value_get (args, 1);
228 if (!v) 228 if (!v)
229 { 229 {
230 sieve_error (mach, "header: can't get argument 2"); 230 sieve_error (mach, _("header: can't get argument 2"));
231 sieve_abort (mach); 231 sieve_abort (mach);
232 } 232 }
233 233
...@@ -249,7 +249,7 @@ sieve_test_size (sieve_machine_t mach, list_t args, list_t tags) ...@@ -249,7 +249,7 @@ sieve_test_size (sieve_machine_t mach, list_t args, list_t tags)
249 sieve_value_t *val = sieve_value_get (args, 0); 249 sieve_value_t *val = sieve_value_get (args, 0);
250 if (!val) 250 if (!val)
251 { 251 {
252 sieve_error (mach, "size: can't get argument!"); 252 sieve_error (mach, _("size: can't get argument!"));
253 sieve_abort (mach); 253 sieve_abort (mach);
254 } 254 }
255 255
...@@ -303,7 +303,7 @@ sieve_test_exists (sieve_machine_t mach, list_t args, list_t tags) ...@@ -303,7 +303,7 @@ sieve_test_exists (sieve_machine_t mach, list_t args, list_t tags)
303 val = sieve_value_get (args, 0); 303 val = sieve_value_get (args, 0);
304 if (!val) 304 if (!val)
305 { 305 {
306 sieve_error (mach, "exists: can't get argument!"); 306 sieve_error (mach, _("exists: can't get argument!"));
307 sieve_abort (mach); 307 sieve_abort (mach);
308 } 308 }
309 309
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by 5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details. 12 GNU Lesser General Public License for more details.
13 13
14 You should have received a copy of the GNU Lesser General Public License 14 You should have received a copy of the GNU Lesser General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #ifdef HAVE_CONFIG_H 18 #ifdef HAVE_CONFIG_H
...@@ -171,7 +171,7 @@ sieve_value_create (sieve_data_type type, void *data) ...@@ -171,7 +171,7 @@ sieve_value_create (sieve_data_type type, void *data)
171 171
172 default: 172 default:
173 sieve_compile_error (sieve_filename, sieve_line_num, 173 sieve_compile_error (sieve_filename, sieve_line_num,
174 "Invalid data type"); 174 _("Invalid data type"));
175 abort (); 175 abort ();
176 } 176 }
177 return val; 177 return val;
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by 5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details. 12 GNU Library General Public License for more details.
13 13
14 You should have received a copy of the GNU Library General Public License 14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #ifdef HAVE_CONFIG_H 18 #ifdef HAVE_CONFIG_H
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
48 #include <mailutils/observer.h> 48 #include <mailutils/observer.h>
49 #include <mailutils/stream.h> 49 #include <mailutils/stream.h>
50 #include <mailutils/mu_auth.h> 50 #include <mailutils/mu_auth.h>
51 #include <mailutils/nls.h>
51 52
52 #define MESSAGE_MODIFIED 0x10000; 53 #define MESSAGE_MODIFIED 0x10000;
53 54
...@@ -1064,7 +1065,7 @@ message_save_to_mailbox (message_t msg, ticket_t ticket, mu_debug_t debug, ...@@ -1064,7 +1065,7 @@ message_save_to_mailbox (message_t msg, ticket_t ticket, mu_debug_t debug,
1064 if ((rc = mailbox_create_default (&to, toname))) 1065 if ((rc = mailbox_create_default (&to, toname)))
1065 { 1066 {
1066 mu_debug_print (debug, MU_DEBUG_TRACE, 1067 mu_debug_print (debug, MU_DEBUG_TRACE,
1067 "mailbox_create_default (%s) failed: %s\n", toname, 1068 _("mailbox_create_default (%s) failed: %s\n"), toname,
1068 mu_errstring (rc)); 1069 mu_errstring (rc));
1069 goto end; 1070 goto end;
1070 } 1071 }
...@@ -1095,7 +1096,7 @@ message_save_to_mailbox (message_t msg, ticket_t ticket, mu_debug_t debug, ...@@ -1095,7 +1096,7 @@ message_save_to_mailbox (message_t msg, ticket_t ticket, mu_debug_t debug,
1095 if ((rc = mailbox_open (to, MU_STREAM_WRITE | MU_STREAM_CREAT))) 1096 if ((rc = mailbox_open (to, MU_STREAM_WRITE | MU_STREAM_CREAT)))
1096 { 1097 {
1097 mu_debug_print (debug, MU_DEBUG_TRACE, 1098 mu_debug_print (debug, MU_DEBUG_TRACE,
1098 "mailbox_open (%s) failed: %s\n", toname, 1099 _("mailbox_open (%s) failed: %s\n"), toname,
1099 mu_errstring (rc)); 1100 mu_errstring (rc));
1100 goto end; 1101 goto end;
1101 } 1102 }
...@@ -1103,7 +1104,7 @@ message_save_to_mailbox (message_t msg, ticket_t ticket, mu_debug_t debug, ...@@ -1103,7 +1104,7 @@ message_save_to_mailbox (message_t msg, ticket_t ticket, mu_debug_t debug,
1103 if ((rc = mailbox_append_message (to, msg))) 1104 if ((rc = mailbox_append_message (to, msg)))
1104 { 1105 {
1105 mu_debug_print (debug, MU_DEBUG_TRACE, 1106 mu_debug_print (debug, MU_DEBUG_TRACE,
1106 "mailbox_append_message (%s) failed: %s\n", toname, 1107 _("mailbox_append_message (%s) failed: %s\n"), toname,
1107 mu_errstring (rc)); 1108 mu_errstring (rc));
1108 goto end; 1109 goto end;
1109 } 1110 }
...@@ -1115,7 +1116,7 @@ end: ...@@ -1115,7 +1116,7 @@ end:
1115 if ((rc = mailbox_close (to))) 1116 if ((rc = mailbox_close (to)))
1116 { 1117 {
1117 mu_debug_print (debug, MU_DEBUG_TRACE, 1118 mu_debug_print (debug, MU_DEBUG_TRACE,
1118 "mailbox_close (%s) failed: %s\n", toname, 1119 _("mailbox_close (%s) failed: %s\n"), toname,
1119 mu_errstring (rc)); 1120 mu_errstring (rc));
1120 } 1121 }
1121 } 1122 }
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by 5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details. 12 GNU Lesser General Public License for more details.
13 13
14 You should have received a copy of the GNU Lesser General Public License 14 You should have received a copy of the GNU Lesser General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #ifdef HAVE_CONFIG_H 18 #ifdef HAVE_CONFIG_H
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
41 #include <mailutils/locker.h> 41 #include <mailutils/locker.h>
42 #include <mailutils/mailer.h> 42 #include <mailutils/mailer.h>
43 #include <mailutils/mailbox.h> 43 #include <mailutils/mailbox.h>
44 44 #include <mailutils/nls.h>
45 #include <mailutils/argcv.h> 45 #include <mailutils/argcv.h>
46 46
47 #define ARG_LOG_FACILITY 1 47 #define ARG_LOG_FACILITY 1
...@@ -53,47 +53,47 @@ const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">"; ...@@ -53,47 +53,47 @@ const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">";
53 53
54 static struct argp_option mu_common_argp_options[] = 54 static struct argp_option mu_common_argp_options[] =
55 { 55 {
56 { NULL, 0, NULL, 0, "Common options", 0}, 56 { NULL, 0, NULL, 0, N_("Common options"), 0},
57 { "show-config-options", ARG_SHOW_OPTIONS, NULL, OPTION_HIDDEN, 57 { "show-config-options", ARG_SHOW_OPTIONS, NULL, OPTION_HIDDEN,
58 "Show compilation options", 0 }, 58 N_("Show compilation options"), 0 },
59 { NULL, 0, NULL, 0, NULL, 0 } 59 { NULL, 0, NULL, 0, NULL, 0 }
60 }; 60 };
61 61
62 /* Option to print the license. */ 62 /* Option to print the license. */
63 static struct argp_option mu_license_argp_option[] = { 63 static struct argp_option mu_license_argp_option[] = {
64 { "license", ARG_LICENSE, NULL, 0, "Print license and exit", -2 }, 64 { "license", ARG_LICENSE, NULL, 0, N_("Print license and exit"), -2 },
65 { NULL, 0, NULL, 0, NULL, 0 } 65 { NULL, 0, NULL, 0, NULL, 0 }
66 }; 66 };
67 67
68 /* Options used by programs that access mailboxes. */ 68 /* Options used by programs that access mailboxes. */
69 static struct argp_option mu_mailbox_argp_option[] = { 69 static struct argp_option mu_mailbox_argp_option[] = {
70 {"mail-spool", 'm', "URL", 0, 70 {"mail-spool", 'm', "URL", 0,
71 "Use specified URL as a mailspool directory", 0}, 71 N_("Use specified URL as a mailspool directory"), 0},
72 {"lock-flags", ARG_LOCK_FLAGS, "FLAGS", 0, 72 {"lock-flags", ARG_LOCK_FLAGS, "FLAGS", 0,
73 "Default locker flags (E=external, R=retry, T=time, P=pid)", 0}, 73 N_("Default locker flags (E=external, R=retry, T=time, P=pid)"), 0},
74 { NULL, 0, NULL, 0, NULL, 0 } 74 { NULL, 0, NULL, 0, NULL, 0 }
75 }; 75 };
76 76
77 /* Options used by programs that do address mapping. */ 77 /* Options used by programs that do address mapping. */
78 static struct argp_option mu_address_argp_option[] = { 78 static struct argp_option mu_address_argp_option[] = {
79 {"email-addr", 'E', "EMAIL", 0, 79 {"email-addr", 'E', "EMAIL", 0,
80 "Set current user's email address (default is loginname@defaultdomain)", 0}, 80 N_("Set current user's email address (default is loginname@defaultdomain)"), 0},
81 {"email-domain", 'D', "DOMAIN", 0, 81 {"email-domain", 'D', "DOMAIN", 0,
82 "Set domain for unqualified user names (default is this host)", 0}, 82 N_("Set domain for unqualified user names (default is this host)"), 0},
83 { NULL, 0, NULL, 0, NULL, 0 } 83 { NULL, 0, NULL, 0, NULL, 0 }
84 }; 84 };
85 85
86 /* Options used by programs that send mail. */ 86 /* Options used by programs that send mail. */
87 static struct argp_option mu_mailer_argp_option[] = { 87 static struct argp_option mu_mailer_argp_option[] = {
88 {"mailer", 'M', "MAILER", 0, 88 {"mailer", 'M', "MAILER", 0,
89 "Use specified URL as the default mailer", 0}, 89 N_("Use specified URL as the default mailer"), 0},
90 { NULL, 0, NULL, 0, NULL, 0 } 90 { NULL, 0, NULL, 0, NULL, 0 }
91 }; 91 };
92 92
93 /* Options used by programs that log to syslog. */ 93 /* Options used by programs that log to syslog. */
94 static struct argp_option mu_logging_argp_option[] = { 94 static struct argp_option mu_logging_argp_option[] = {
95 {"log-facility", ARG_LOG_FACILITY, "FACILITY", 0, 95 {"log-facility", ARG_LOG_FACILITY, "FACILITY", 0,
96 "Output logs to syslog FACILITY", 0}, 96 N_("Output logs to syslog FACILITY"), 0},
97 { NULL, 0, NULL, 0, NULL, 0 } 97 { NULL, 0, NULL, 0, NULL, 0 }
98 }; 98 };
99 99
...@@ -101,15 +101,15 @@ static struct argp_option mu_logging_argp_option[] = { ...@@ -101,15 +101,15 @@ static struct argp_option mu_logging_argp_option[] = {
101 /* Options used by programs that become daemons. */ 101 /* Options used by programs that become daemons. */
102 static struct argp_option mu_daemon_argp_option[] = { 102 static struct argp_option mu_daemon_argp_option[] = {
103 {"daemon", 'd', "NUMBER", OPTION_ARG_OPTIONAL, 103 {"daemon", 'd', "NUMBER", OPTION_ARG_OPTIONAL,
104 "Runs in daemon mode with a maximum of NUMBER children"}, 104 N_("Runs in daemon mode with a maximum of NUMBER children")},
105 {"inetd", 'i', 0, 0, 105 {"inetd", 'i', 0, 0,
106 "Run in inetd mode", 0}, 106 N_("Run in inetd mode"), 0},
107 {"port", 'p', "PORT", 0, 107 {"port", 'p', "PORT", 0,
108 "Listen on specified port number", 0}, 108 N_("Listen on specified port number"), 0},
109 {"timeout", 't', "NUMBER", 0, 109 {"timeout", 't', "NUMBER", 0,
110 "Set idle timeout value to NUMBER seconds", 0}, 110 N_("Set idle timeout value to NUMBER seconds"), 0},
111 {"transcript", 'x', NULL, 0, 111 {"transcript", 'x', NULL, 0,
112 "output session transcript via syslog", 0}, 112 N_("output session transcript via syslog"), 0},
113 { NULL, 0, NULL, 0, NULL, 0 } 113 { NULL, 0, NULL, 0, NULL, 0 }
114 }; 114 };
115 115
...@@ -198,7 +198,7 @@ struct argp mu_daemon_argp = { ...@@ -198,7 +198,7 @@ struct argp mu_daemon_argp = {
198 struct argp_child mu_daemon_argp_child = { 198 struct argp_child mu_daemon_argp_child = {
199 &mu_daemon_argp, 199 &mu_daemon_argp,
200 0, 200 0,
201 "Daemon configuration options", 201 N_("Daemon configuration options"),
202 0 202 0
203 }; 203 };
204 204
...@@ -233,24 +233,24 @@ parse_log_facility (const char *str) ...@@ -233,24 +233,24 @@ parse_log_facility (const char *str)
233 for (i = 0; i < sizeof (syslog_kw) / sizeof (syslog_kw[0]); i++) 233 for (i = 0; i < sizeof (syslog_kw) / sizeof (syslog_kw[0]); i++)
234 if (strcasecmp (syslog_kw[i].name, str) == 0) 234 if (strcasecmp (syslog_kw[i].name, str) == 0)
235 return syslog_kw[i].facility; 235 return syslog_kw[i].facility;
236 fprintf (stderr, "unknown facility `%s'\n", str); 236 fprintf (stderr, _("unknown facility `%s'\n"), str);
237 return LOG_FACILITY; 237 return LOG_FACILITY;
238 } 238 }
239 239
240 char *mu_license_text = 240 char *mu_license_text =
241 " This program is free software; you can redistribute it and/or modify\n" 241 N_(" GNU Mailutils is free software; you can redistribute it and/or modify\n"
242 " it under the terms of the GNU General Public License as published by\n" 242 " it under the terms of the GNU General Public License as published by\n"
243 " the Free Software Foundation; either version 2, or (at your option)\n" 243 " the Free Software Foundation; either version 2, or (at your option)\n"
244 " any later version.\n" 244 " any later version.\n"
245 "\n" 245 "\n"
246 " This program is distributed in the hope that it will be useful,\n" 246 " GNU Mailutils is distributed in the hope that it will be useful,\n"
247 " but WITHOUT ANY WARRANTY; without even the implied warranty of\n" 247 " but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
248 " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" 248 " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
249 " GNU General Public License for more details.\n" 249 " GNU General Public License for more details.\n"
250 "\n" 250 "\n"
251 " You should have received a copy of the GNU General Public License\n" 251 " You should have received a copy of the GNU General Public License\n"
252 " along with this program; if not, write to the Free Software\n" 252 " along with GNU Mailutils; if not, write to the Free Software\n"
253 " Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n"; 253 " Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n\n");
254 254
255 static char *mu_conf_option[] = { 255 static char *mu_conf_option[] = {
256 "VERSION=" VERSION, 256 "VERSION=" VERSION,
...@@ -353,7 +353,7 @@ mu_common_argp_parser (int key, char *arg, struct argp_state *state) ...@@ -353,7 +353,7 @@ mu_common_argp_parser (int key, char *arg, struct argp_state *state)
353 { 353 {
354 /* common */ 354 /* common */
355 case ARG_LICENSE: 355 case ARG_LICENSE:
356 printf ("License for %s:\n\n", argp_program_version); 356 printf (_("License for %s:\n\n"), argp_program_version);
357 printf ("%s", mu_license_text); 357 printf ("%s", mu_license_text);
358 exit (0); 358 exit (0);
359 359
...@@ -390,7 +390,7 @@ mu_common_argp_parser (int key, char *arg, struct argp_state *state) ...@@ -390,7 +390,7 @@ mu_common_argp_parser (int key, char *arg, struct argp_state *state)
390 break; 390 break;
391 391
392 default: 392 default:
393 argp_error (state, "invalid lock flag '%c'", *arg); 393 argp_error (state, _("invalid lock flag '%c'"), *arg);
394 } 394 }
395 } 395 }
396 locker_set_default_flags(flags); 396 locker_set_default_flags(flags);
...@@ -401,7 +401,7 @@ mu_common_argp_parser (int key, char *arg, struct argp_state *state) ...@@ -401,7 +401,7 @@ mu_common_argp_parser (int key, char *arg, struct argp_state *state)
401 case 'E': 401 case 'E':
402 if ((err = mu_set_user_email(arg)) != 0) 402 if ((err = mu_set_user_email(arg)) != 0)
403 { 403 {
404 argp_error (state, "invalid email-addr '%s': %s", 404 argp_error (state, _("invalid email-addr '%s': %s"),
405 arg, mu_errstring(err)); 405 arg, mu_errstring(err));
406 } 406 }
407 break; 407 break;
...@@ -409,7 +409,7 @@ mu_common_argp_parser (int key, char *arg, struct argp_state *state) ...@@ -409,7 +409,7 @@ mu_common_argp_parser (int key, char *arg, struct argp_state *state)
409 case 'D': 409 case 'D':
410 if ((err = mu_set_user_email_domain(arg)) != 0) 410 if ((err = mu_set_user_email_domain(arg)) != 0)
411 { 411 {
412 argp_error (state, "invalid email-domain '%s': %s", 412 argp_error (state, _("invalid email-domain '%s': %s"),
413 arg, mu_errstring(err)); 413 arg, mu_errstring(err));
414 } 414 }
415 break; 415 break;
...@@ -418,7 +418,7 @@ mu_common_argp_parser (int key, char *arg, struct argp_state *state) ...@@ -418,7 +418,7 @@ mu_common_argp_parser (int key, char *arg, struct argp_state *state)
418 case 'M': 418 case 'M':
419 if ((err = mailer_set_url_default (arg)) != 0) 419 if ((err = mailer_set_url_default (arg)) != 0)
420 { 420 {
421 argp_error (state, "invalid mailer url '%s': %s", 421 argp_error (state, _("invalid mailer url '%s': %s"),
422 arg, mu_errstring(err)); 422 arg, mu_errstring(err));
423 } 423 }
424 break; 424 break;
...@@ -432,7 +432,7 @@ mu_common_argp_parser (int key, char *arg, struct argp_state *state) ...@@ -432,7 +432,7 @@ mu_common_argp_parser (int key, char *arg, struct argp_state *state)
432 p = mu_normalize_maildir (mu_path_maildir); 432 p = mu_normalize_maildir (mu_path_maildir);
433 if (!p) 433 if (!p)
434 { 434 {
435 argp_error (state, "badly formed maildir: %s", mu_path_maildir); 435 argp_error (state, _("badly formed maildir: %s"), mu_path_maildir);
436 } 436 }
437 mu_path_maildir = p; 437 mu_path_maildir = p;
438 break; 438 break;
...@@ -522,7 +522,7 @@ read_rc (const char *progname, const char *name, const char *capa[], ...@@ -522,7 +522,7 @@ read_rc (const char *progname, const char *name, const char *capa[],
522 522
523 if (!rcfile) 523 if (!rcfile)
524 { 524 {
525 fprintf (stderr, "%s: not enough memory\n", progname); 525 fprintf (stderr, _("%s: not enough memory\n"), progname);
526 exit (1); 526 exit (1);
527 } 527 }
528 528
...@@ -567,7 +567,7 @@ read_rc (const char *progname, const char *name, const char *capa[], ...@@ -567,7 +567,7 @@ read_rc (const char *progname, const char *name, const char *capa[],
567 567
568 if (!linebuf) 568 if (!linebuf)
569 { 569 {
570 fprintf (stderr, "%s: not enough memory\n", progname); 570 fprintf (stderr, _("%s: not enough memory\n"), progname);
571 exit (1); 571 exit (1);
572 } 572 }
573 573
...@@ -606,7 +606,7 @@ read_rc (const char *progname, const char *name, const char *capa[], ...@@ -606,7 +606,7 @@ read_rc (const char *progname, const char *name, const char *capa[],
606 (x_argc + n_argc) * sizeof (x_argv[0])); 606 (x_argc + n_argc) * sizeof (x_argv[0]));
607 if (!x_argv) 607 if (!x_argv)
608 { 608 {
609 fprintf (stderr, "%s: not enough memory\n", progname); 609 fprintf (stderr, _("%s: not enough memory\n"), progname);
610 exit (1); 610 exit (1);
611 } 611 }
612 612
...@@ -646,7 +646,7 @@ mu_create_argcv (const char *capa[], ...@@ -646,7 +646,7 @@ mu_create_argcv (const char *capa[],
646 x_argv = malloc (sizeof (x_argv[0])); 646 x_argv = malloc (sizeof (x_argv[0]));
647 if (!x_argv) 647 if (!x_argv)
648 { 648 {
649 fprintf (stderr, "%s: not enough memory\n", progname); 649 fprintf (stderr, _("%s: not enough memory\n"), progname);
650 exit (1); 650 exit (1);
651 } 651 }
652 652
...@@ -668,7 +668,7 @@ mu_create_argcv (const char *capa[], ...@@ -668,7 +668,7 @@ mu_create_argcv (const char *capa[],
668 668
669 if (!rcdirname) 669 if (!rcdirname)
670 { 670 {
671 fprintf (stderr, "%s: not enough memory\n", progname); 671 fprintf (stderr, _("%s: not enough memory\n"), progname);
672 exit (1); 672 exit (1);
673 } 673 }
674 if(stat(rcdirname, &s) == 0 && S_ISDIR(s.st_mode)) 674 if(stat(rcdirname, &s) == 0 && S_ISDIR(s.st_mode))
...@@ -693,7 +693,7 @@ mu_create_argcv (const char *capa[], ...@@ -693,7 +693,7 @@ mu_create_argcv (const char *capa[],
693 693
694 if (!userrc) 694 if (!userrc)
695 { 695 {
696 fprintf (stderr, "%s: not enough memory\n", progname); 696 fprintf (stderr, _("%s: not enough memory\n"), progname);
697 exit (1); 697 exit (1);
698 } 698 }
699 699
...@@ -722,7 +722,7 @@ mu_create_argcv (const char *capa[], ...@@ -722,7 +722,7 @@ mu_create_argcv (const char *capa[],
722 722
723 if (!progrc) 723 if (!progrc)
724 { 724 {
725 fprintf (stderr, "%s: not enough memory\n", progname); 725 fprintf (stderr, _("%s: not enough memory\n"), progname);
726 exit (1); 726 exit (1);
727 } 727 }
728 728
...@@ -808,7 +808,7 @@ mu_build_argp (const struct argp *template, const char *capa[]) ...@@ -808,7 +808,7 @@ mu_build_argp (const struct argp *template, const char *capa[])
808 ap = calloc (n + 1, sizeof (*ap)); 808 ap = calloc (n + 1, sizeof (*ap));
809 if (!ap) 809 if (!ap)
810 { 810 {
811 mu_error ("out of memory"); 811 mu_error (_("out of memory"));
812 abort (); 812 abort ();
813 } 813 }
814 814
...@@ -832,7 +832,7 @@ mu_build_argp (const struct argp *template, const char *capa[]) ...@@ -832,7 +832,7 @@ mu_build_argp (const struct argp *template, const char *capa[])
832 struct argp_child *child = find_argp_child (capa[n]); 832 struct argp_child *child = find_argp_child (capa[n]);
833 if (!child) 833 if (!child)
834 { 834 {
835 mu_error ("INTERNAL ERROR: requested unknown argp capability %s", 835 mu_error (_("INTERNAL ERROR: requested unknown argp capability %s"),
836 capa[n]); 836 capa[n]);
837 abort (); 837 abort ();
838 } 838 }
...@@ -846,7 +846,7 @@ mu_build_argp (const struct argp *template, const char *capa[]) ...@@ -846,7 +846,7 @@ mu_build_argp (const struct argp *template, const char *capa[])
846 argp = malloc (sizeof (*argp)); 846 argp = malloc (sizeof (*argp));
847 if (!argp) 847 if (!argp)
848 { 848 {
849 mu_error ("out of memory"); 849 mu_error (_("out of memory"));
850 abort (); 850 abort ();
851 } 851 }
852 852
...@@ -885,7 +885,7 @@ mu_auth_init () ...@@ -885,7 +885,7 @@ mu_auth_init ()
885 extern struct argp_child mu_auth_argp_child; 885 extern struct argp_child mu_auth_argp_child;
886 if (mu_register_capa ("auth", &mu_auth_argp_child)) 886 if (mu_register_capa ("auth", &mu_auth_argp_child))
887 { 887 {
888 mu_error ("INTERNAL ERROR: cannot register argp capability auth"); 888 mu_error (_("INTERNAL ERROR: cannot register argp capability auth"));
889 abort (); 889 abort ();
890 } 890 }
891 } 891 }
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by 5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details. 12 GNU Library General Public License for more details.
13 13
14 You should have received a copy of the GNU Library General Public License 14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #ifdef HAVE_CONFIG_H 18 #ifdef HAVE_CONFIG_H
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
23 #include <string.h> 23 #include <string.h>
24 24
25 #include <mailutils/errno.h> 25 #include <mailutils/errno.h>
26 #include <mailutils/nls.h>
26 27
27 #ifndef EOK 28 #ifndef EOK
28 # define EOK 0 29 # define EOK 0
...@@ -85,39 +86,39 @@ const char* mu_errstring (int e) ...@@ -85,39 +86,39 @@ const char* mu_errstring (int e)
85 switch(e) 86 switch(e)
86 { 87 {
87 #define ES(x, d) case x: return d; 88 #define ES(x, d) case x: return d;
88 ES(EOK, "Success") 89 ES(EOK, _("Success"))
89 90
90 ES(MU_ERR_NO_HANDLER, "No registered handler") 91 ES(MU_ERR_NO_HANDLER, _("No registered handler"))
91 ES(MU_ERR_EMPTY_VFN, "Empty virtual function") 92 ES(MU_ERR_EMPTY_VFN, _("Empty virtual function"))
92 93
93 ES(MU_ERR_OUT_NULL, "Pointer to output null") 94 ES(MU_ERR_OUT_NULL, _("Pointer to output null"))
94 ES(MU_ERR_OUT_PTR_NULL, "Pointer to output pointer null") 95 ES(MU_ERR_OUT_PTR_NULL, _("Pointer to output pointer null"))
95 96
96 ES(MU_ERR_MBX_NULL, "Mailbox null") 97 ES(MU_ERR_MBX_NULL, _("Mailbox null"))
97 98
98 ES(MU_ERR_BAD_822_FORMAT, "Format of RFC822 object is bad") 99 ES(MU_ERR_BAD_822_FORMAT, _("Format of RFC822 object is bad"))
99 ES(MU_ERR_EMPTY_ADDRESS, "Address contains no addr specs") 100 ES(MU_ERR_EMPTY_ADDRESS, _("Address contains no addr specs"))
100 101
101 ES(MU_ERR_LOCKER_NULL, "Locker null") 102 ES(MU_ERR_LOCKER_NULL, _("Locker null"))
102 ES(MU_ERR_LOCK_CONFLICT, "Conflict with previous locker") 103 ES(MU_ERR_LOCK_CONFLICT, _("Conflict with previous locker"))
103 ES(MU_ERR_LOCK_BAD_LOCK, "Lock file check failed") 104 ES(MU_ERR_LOCK_BAD_LOCK, _("Lock file check failed"))
104 ES(MU_ERR_LOCK_BAD_FILE, "File check failed") 105 ES(MU_ERR_LOCK_BAD_FILE, _("File check failed"))
105 ES(MU_ERR_LOCK_NOT_HELD, "Lock not held on file") 106 ES(MU_ERR_LOCK_NOT_HELD, _("Lock not held on file"))
106 ES(MU_ERR_LOCK_EXT_FAIL, "Failed to exec external locker") 107 ES(MU_ERR_LOCK_EXT_FAIL, _("Failed to exec external locker"))
107 ES(MU_ERR_LOCK_EXT_ERR, "External locker failed") 108 ES(MU_ERR_LOCK_EXT_ERR, _("External locker failed"))
108 ES(MU_ERR_LOCK_EXT_KILLED, "External locker killed") 109 ES(MU_ERR_LOCK_EXT_KILLED, _("External locker killed"))
109 110
110 ES(MU_ERR_NO_SUCH_USER, "No such user name") 111 ES(MU_ERR_NO_SUCH_USER, _("No such user name"))
111 112
112 ES(MU_ERR_GETHOSTBYNAME, "DNS name resolution failed") 113 ES(MU_ERR_GETHOSTBYNAME, _("DNS name resolution failed"))
113 ES(MU_ERR_BAD_RESUMPTION, "State busy, must resume operation") 114 ES(MU_ERR_BAD_RESUMPTION, _("State busy, must resume operation"))
114 ES(MU_ERR_MAILER_BAD_FROM, "Not a valid mailer from address") 115 ES(MU_ERR_MAILER_BAD_FROM, _("Not a valid mailer from address"))
115 ES(MU_ERR_MAILER_BAD_TO, "Not a valid mailer to address") 116 ES(MU_ERR_MAILER_BAD_TO, _("Not a valid mailer to address"))
116 ES(MU_ERR_MAILER_NO_RCPT_TO,"No receipt addresses found") 117 ES(MU_ERR_MAILER_NO_RCPT_TO,_("No receipt addresses found"))
117 ES(MU_ERR_MAILER_BAD_URL, "Malformed or unsupported mailer URL") 118 ES(MU_ERR_MAILER_BAD_URL, _("Malformed or unsupported mailer URL"))
118 ES(MU_ERR_SMTP_RCPT_FAILED, "SMTP rcpt to command failed") 119 ES(MU_ERR_SMTP_RCPT_FAILED, _("SMTP rcpt to command failed"))
119 ES(MU_ERR_TCP_NO_HOST, "Tcp connections need a host") 120 ES(MU_ERR_TCP_NO_HOST, _("Tcp connections need a host"))
120 ES(MU_ERR_TCP_NO_PORT, "Tcp connections need a postive port") 121 ES(MU_ERR_TCP_NO_PORT, _("Tcp connections need a postive port"))
121 } 122 }
122 123
123 return strerror(e); 124 return strerror(e);
......