Commit 1698e17b 1698e17b133476142f64eeb5cf151477e5d35ec3 by Wojciech Polak

Added NLS.

1 parent ff407d02
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 Public License as published by 5 it under the terms of the GNU 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 General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU 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 #if defined(HAVE_CONFIG_H) 18 #if defined(HAVE_CONFIG_H)
...@@ -80,6 +80,7 @@ ...@@ -80,6 +80,7 @@
80 #include <mailutils/url.h> 80 #include <mailutils/url.h>
81 #include <mailutils/mu_auth.h> 81 #include <mailutils/mu_auth.h>
82 #include <mailutils/libsieve.h> 82 #include <mailutils/libsieve.h>
83 #include <mailutils/nls.h>
83 84
84 #include <mu_dbm.h> 85 #include <mu_dbm.h>
85 #include <mu_asprintf.h> 86 #include <mu_asprintf.h>
......
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 Public License as published by 5 it under the terms of the GNU 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 General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU 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 #include <mail.local.h> 18 #include <mail.local.h>
...@@ -77,7 +77,7 @@ check_quota (char *name, size_t size, size_t *rest) ...@@ -77,7 +77,7 @@ check_quota (char *name, size_t size, size_t *rest)
77 rc = mu_dbm_fetch (db, named, &contentd); 77 rc = mu_dbm_fetch (db, named, &contentd);
78 if (rc) 78 if (rc)
79 { 79 {
80 /*mu_error("can't fetch data: %s", strerror (rc));*/ 80 /*mu_error (_("can't fetch data: %s"), strerror (rc));*/
81 return DEFRETVAL; 81 return DEFRETVAL;
82 } 82 }
83 if (!MU_DATUM_PTR (contentd)) 83 if (!MU_DATUM_PTR (contentd))
...@@ -90,7 +90,7 @@ check_quota (char *name, size_t size, size_t *rest) ...@@ -90,7 +90,7 @@ check_quota (char *name, size_t size, size_t *rest)
90 unlimited = 1; 90 unlimited = 1;
91 else if (MU_DATUM_SIZE (contentd) > sizeof(buffer)-1) 91 else if (MU_DATUM_SIZE (contentd) > sizeof(buffer)-1)
92 { 92 {
93 mu_error ("mailbox quota for `%s' is too big: %d digits", 93 mu_error (_("mailbox quota for `%s' is too big: %d digits"),
94 name, MU_DATUM_SIZE (contentd)); 94 name, MU_DATUM_SIZE (contentd));
95 quota = groupquota; 95 quota = groupquota;
96 } 96 }
...@@ -103,7 +103,7 @@ check_quota (char *name, size_t size, size_t *rest) ...@@ -103,7 +103,7 @@ check_quota (char *name, size_t size, size_t *rest)
103 quota = strtoul (buffer, &p, 0); 103 quota = strtoul (buffer, &p, 0);
104 if (get_size (buffer, &quota, &p)) 104 if (get_size (buffer, &quota, &p))
105 { 105 {
106 mu_error ("bogus mailbox quota for `%s' (near `%s')", name, p); 106 mu_error (_("bogus mailbox quota for `%s' (near `%s')"), name, p);
107 quota = groupquota; 107 quota = groupquota;
108 } 108 }
109 } 109 }
......
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 Public License as published by 5 it under the terms of the GNU 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 General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU 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 #include <mail.local.h> 18 #include <mail.local.h>
...@@ -43,7 +43,7 @@ void notify_biff __P((mailbox_t mbox, char *name, size_t size)); ...@@ -43,7 +43,7 @@ void notify_biff __P((mailbox_t mbox, char *name, size_t size));
43 43
44 const char *argp_program_version = "mail.local (" PACKAGE_STRING ")"; 44 const char *argp_program_version = "mail.local (" PACKAGE_STRING ")";
45 static char doc[] = 45 static char doc[] =
46 "GNU mail.local -- the local MDA" 46 N_("GNU mail.local -- the local MDA"
47 "\v" 47 "\v"
48 "Debug flags are:\n" 48 "Debug flags are:\n"
49 " g - guimb stack traces\n" 49 " g - guimb stack traces\n"
...@@ -51,9 +51,9 @@ static char doc[] = ...@@ -51,9 +51,9 @@ static char doc[] =
51 " P - network protocols (MU_DEBUG_PROT)\n" 51 " P - network protocols (MU_DEBUG_PROT)\n"
52 " t - sieve trace (MU_SIEVE_DEBUG_TRACE)\n" 52 " t - sieve trace (MU_SIEVE_DEBUG_TRACE)\n"
53 " l - sieve action logs\n" 53 " l - sieve action logs\n"
54 " 0-9 - Set mail.local debugging level\n"; 54 " 0-9 - Set mail.local debugging level\n");
55 55
56 static char args_doc[] = "recipient [recipient ...]"; 56 static char args_doc[] = N_("recipient [recipient ...]");
57 57
58 #define ARG_MULTIPLE_DELIVERY 1 58 #define ARG_MULTIPLE_DELIVERY 1
59 #define ARG_QUOTA_TEMPFAIL 2 59 #define ARG_QUOTA_TEMPFAIL 2
...@@ -61,26 +61,26 @@ static char args_doc[] = "recipient [recipient ...]"; ...@@ -61,26 +61,26 @@ static char args_doc[] = "recipient [recipient ...]";
61 static struct argp_option options[] = 61 static struct argp_option options[] =
62 { 62 {
63 { "ex-multiple-delivery-success", ARG_MULTIPLE_DELIVERY, NULL, 0, 63 { "ex-multiple-delivery-success", ARG_MULTIPLE_DELIVERY, NULL, 0,
64 "Don't return errors when delivering to multiple recipients", 0 }, 64 N_("Don't return errors when delivering to multiple recipients"), 0 },
65 { "ex-quota-tempfail", ARG_QUOTA_TEMPFAIL, NULL, 0, 65 { "ex-quota-tempfail", ARG_QUOTA_TEMPFAIL, NULL, 0,
66 "Return temporary failure if disk or mailbox quota is exceeded", 0 }, 66 N_("Return temporary failure if disk or mailbox quota is exceeded"), 0 },
67 { "from", 'f', "EMAIL", 0, 67 { "from", 'f', "EMAIL", 0,
68 "Specify the sender's name" }, 68 N_("Specify the sender's name") },
69 { NULL, 'r', NULL, OPTION_ALIAS, NULL }, 69 { NULL, 'r', NULL, OPTION_ALIAS, NULL },
70 #ifdef USE_DBM 70 #ifdef USE_DBM
71 { "quota-db", 'q', "FILE", 0, 71 { "quota-db", 'q', "FILE", 0,
72 "Specify path to quota database", 0 }, 72 N_("Specify path to quota database"), 0 },
73 #endif 73 #endif
74 { "sieve", 'S', "PATTERN", 0, 74 { "sieve", 'S', "PATTERN", 0,
75 "Set name pattern for user-defined sieve mail filters", 0 }, 75 N_("Set name pattern for user-defined sieve mail filters"), 0 },
76 #ifdef WITH_GUILE 76 #ifdef WITH_GUILE
77 { "source", 's', "PATTERN", 0, 77 { "source", 's', "PATTERN", 0,
78 "Set name pattern for user-defined mail filters", 0 }, 78 N_("Set name pattern for user-defined mail filters"), 0 },
79 #endif 79 #endif
80 { "debug", 'x', "FLAGS", 0, 80 { "debug", 'x', "FLAGS", 0,
81 "Enable debugging", 0 }, 81 N_("Enable debugging"), 0 },
82 { "timeout", 't', "NUMBER", 0, 82 { "timeout", 't', "NUMBER", 0,
83 "Set timeout for acquiring the lockfile" }, 83 N_("Set timeout for acquiring the lockfile") },
84 { NULL, 0, NULL, 0, NULL, 0 } 84 { NULL, 0, NULL, 0, NULL, 0 }
85 }; 85 };
86 86
...@@ -129,7 +129,7 @@ parse_opt (int key, char *arg, struct argp_state *state) ...@@ -129,7 +129,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
129 case 'f': 129 case 'f':
130 if (from != NULL) 130 if (from != NULL)
131 { 131 {
132 argp_error (state, "multiple --from options"); 132 argp_error (state, _("multiple --from options"));
133 return EX_USAGE; 133 return EX_USAGE;
134 } 134 }
135 from = arg; 135 from = arg;
...@@ -188,7 +188,7 @@ parse_opt (int key, char *arg, struct argp_state *state) ...@@ -188,7 +188,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
188 if (isdigit (*optarg)) 188 if (isdigit (*optarg))
189 debug_level = *optarg - '0'; 189 debug_level = *optarg - '0';
190 else 190 else
191 argp_error (state, "%c is not a valid debug flag", *arg); 191 argp_error (state, _("%c is not a valid debug flag"), *arg);
192 break; 192 break;
193 } 193 }
194 } 194 }
...@@ -230,16 +230,16 @@ _sieve_action_log (void *user_name, ...@@ -230,16 +230,16 @@ _sieve_action_log (void *user_name,
230 230
231 message_get_uid (msg, &uid); 231 message_get_uid (msg, &uid);
232 232
233 asprintf (&text, "%s on msg uid %d", action, uid); 233 asprintf (&text, _("%s on msg uid %d"), action, uid);
234 if (fmt && strlen (fmt)) 234 if (fmt && strlen (fmt))
235 { 235 {
236 char *diag = NULL; 236 char *diag = NULL;
237 vasprintf (&diag, fmt, ap); 237 vasprintf (&diag, fmt, ap);
238 syslog (LOG_NOTICE, "(user %s) %s: %s", (char*) user_name, text, diag); 238 syslog (LOG_NOTICE, _("(user %s) %s: %s"), (char*) user_name, text, diag);
239 free (diag); 239 free (diag);
240 } 240 }
241 else 241 else
242 syslog (LOG_NOTICE, "(user %s) %s", (char*) user_name, text); 242 syslog (LOG_NOTICE, _("(user %s) %s"), (char*) user_name, text);
243 free (text); 243 free (text);
244 } 244 }
245 245
...@@ -257,7 +257,7 @@ _sieve_parse_error (void *user_name, const char *filename, int lineno, ...@@ -257,7 +257,7 @@ _sieve_parse_error (void *user_name, const char *filename, int lineno,
257 free (loc); 257 free (loc);
258 } 258 }
259 else 259 else
260 syslog (LOG_ERR, "(user %s) %s", (char*)user_name, text); 260 syslog (LOG_ERR, _("(user %s) %s"), (char*)user_name, text);
261 free (text); 261 free (text);
262 return 0; 262 return 0;
263 } 263 }
...@@ -286,18 +286,18 @@ main (int argc, char *argv[]) ...@@ -286,18 +286,18 @@ main (int argc, char *argv[])
286 286
287 if ((rc = mu_debug_create (&mudebug, NULL))) 287 if ((rc = mu_debug_create (&mudebug, NULL)))
288 { 288 {
289 mu_error ("mu_debug_create failed: %s\n", mu_errstring (rc)); 289 mu_error (_("mu_debug_create failed: %s\n"), mu_errstring (rc));
290 exit (EX_TEMPFAIL); 290 exit (EX_TEMPFAIL);
291 } 291 }
292 if ((rc = mu_debug_set_level (mudebug, debug_flags))) 292 if ((rc = mu_debug_set_level (mudebug, debug_flags)))
293 { 293 {
294 mu_error ("mu_debug_set_level failed: %s\n", 294 mu_error (_("mu_debug_set_level failed: %s\n"),
295 mu_errstring (rc)); 295 mu_errstring (rc));
296 exit (EX_TEMPFAIL); 296 exit (EX_TEMPFAIL);
297 } 297 }
298 if ((rc = mu_debug_set_print (mudebug, _mu_debug_printer, NULL))) 298 if ((rc = mu_debug_set_print (mudebug, _mu_debug_printer, NULL)))
299 { 299 {
300 mu_error ("mu_debug_set_print failed: %s\n", 300 mu_error (_("mu_debug_set_print failed: %s\n"),
301 mu_errstring (rc)); 301 mu_errstring (rc));
302 exit (EX_TEMPFAIL); 302 exit (EX_TEMPFAIL);
303 } 303 }
...@@ -310,7 +310,7 @@ main (int argc, char *argv[]) ...@@ -310,7 +310,7 @@ main (int argc, char *argv[])
310 310
311 if (!argc) 311 if (!argc)
312 { 312 {
313 mu_error ("Missing arguments. Try --help for more info"); 313 mu_error (_("Missing arguments. Try --help for more info."));
314 return EX_USAGE; 314 return EX_USAGE;
315 } 315 }
316 316
...@@ -362,7 +362,7 @@ sieve_test (struct mu_auth_data *auth, mailbox_t mbx) ...@@ -362,7 +362,7 @@ sieve_test (struct mu_auth_data *auth, mailbox_t mbx)
362 if (access (progfile, R_OK)) 362 if (access (progfile, R_OK))
363 { 363 {
364 if (debug_level > 2) 364 if (debug_level > 2)
365 syslog (LOG_DEBUG, "access to %s failed: %m", progfile); 365 syslog (LOG_DEBUG, _("access to %s failed: %m"), progfile);
366 } 366 }
367 else 367 else
368 { 368 {
...@@ -370,7 +370,7 @@ sieve_test (struct mu_auth_data *auth, mailbox_t mbx) ...@@ -370,7 +370,7 @@ sieve_test (struct mu_auth_data *auth, mailbox_t mbx)
370 rc = sieve_machine_init (&mach, auth->name); 370 rc = sieve_machine_init (&mach, auth->name);
371 if (rc) 371 if (rc)
372 { 372 {
373 mu_error ("can't initialize sieve machine: %s", 373 mu_error (_("can't initialize sieve machine: %s"),
374 mu_errstring (rc)); 374 mu_errstring (rc));
375 } 375 }
376 else 376 else
...@@ -491,13 +491,13 @@ make_tmp (const char *from, mailbox_t *mbox) ...@@ -491,13 +491,13 @@ make_tmp (const char *from, mailbox_t *mbox)
491 tempfile = mu_tempname (NULL); 491 tempfile = mu_tempname (NULL);
492 if ((status = file_stream_create (&stream, tempfile, MU_STREAM_RDWR))) 492 if ((status = file_stream_create (&stream, tempfile, MU_STREAM_RDWR)))
493 { 493 {
494 mailer_err ("unable to open temporary file: %s", mu_errstring (status)); 494 mailer_err (_("unable to open temporary file: %s"), mu_errstring (status));
495 exit (exit_code); 495 exit (exit_code);
496 } 496 }
497 497
498 if ((status = stream_open (stream))) 498 if ((status = stream_open (stream)))
499 { 499 {
500 mailer_err ("unable to open temporary file: %s", mu_errstring (status)); 500 mailer_err (_("unable to open temporary file: %s"), mu_errstring (status));
501 exit (exit_code); 501 exit (exit_code);
502 } 502 }
503 503
...@@ -528,7 +528,7 @@ make_tmp (const char *from, mailbox_t *mbox) ...@@ -528,7 +528,7 @@ make_tmp (const char *from, mailbox_t *mbox)
528 } 528 }
529 else 529 else
530 { 530 {
531 mailer_err ("Can't determine sender address"); 531 mailer_err (_("Can't determine sender address"));
532 exit (EX_UNAVAILABLE); 532 exit (EX_UNAVAILABLE);
533 } 533 }
534 if (auth) 534 if (auth)
...@@ -546,7 +546,7 @@ make_tmp (const char *from, mailbox_t *mbox) ...@@ -546,7 +546,7 @@ make_tmp (const char *from, mailbox_t *mbox)
546 546
547 if (status) 547 if (status)
548 { 548 {
549 mailer_err ("temporary file write error: %s", mu_errstring (status)); 549 mailer_err (_("temporary file write error: %s"), mu_errstring (status));
550 stream_destroy (&stream, stream_get_owner (stream)); 550 stream_destroy (&stream, stream_get_owner (stream));
551 return status; 551 return status;
552 } 552 }
...@@ -563,7 +563,7 @@ make_tmp (const char *from, mailbox_t *mbox) ...@@ -563,7 +563,7 @@ make_tmp (const char *from, mailbox_t *mbox)
563 if (status) 563 if (status)
564 { 564 {
565 errno = status; 565 errno = status;
566 mailer_err ("temporary file write error: %s", mu_errstring (status)); 566 mailer_err (_("temporary file write error: %s"), mu_errstring (status));
567 stream_destroy (&stream, stream_get_owner (stream)); 567 stream_destroy (&stream, stream_get_owner (stream));
568 return status; 568 return status;
569 } 569 }
...@@ -573,7 +573,7 @@ make_tmp (const char *from, mailbox_t *mbox) ...@@ -573,7 +573,7 @@ make_tmp (const char *from, mailbox_t *mbox)
573 || (status = mailbox_open (*mbox, MU_STREAM_READ)) 573 || (status = mailbox_open (*mbox, MU_STREAM_READ))
574 || (status = mailbox_set_stream (*mbox, stream))) 574 || (status = mailbox_set_stream (*mbox, stream)))
575 { 575 {
576 mailer_err ("temporary file open error: %s", mu_errstring (status)); 576 mailer_err (_("temporary file open error: %s"), mu_errstring (status));
577 stream_destroy (&stream, stream_get_owner (stream)); 577 stream_destroy (&stream, stream_get_owner (stream));
578 return status; 578 return status;
579 } 579 }
...@@ -582,7 +582,7 @@ make_tmp (const char *from, mailbox_t *mbox) ...@@ -582,7 +582,7 @@ make_tmp (const char *from, mailbox_t *mbox)
582 if (status) 582 if (status)
583 { 583 {
584 errno = status; 584 errno = status;
585 mailer_err ("temporary message creation error: %s", 585 mailer_err (_("temporary message creation error: %s"),
586 mu_errstring (status)); 586 mu_errstring (status));
587 stream_destroy (&stream, stream_get_owner (stream)); 587 stream_destroy (&stream, stream_get_owner (stream));
588 return status; 588 return status;
...@@ -607,7 +607,7 @@ deliver (mailbox_t imbx, char *name) ...@@ -607,7 +607,7 @@ deliver (mailbox_t imbx, char *name)
607 auth = mu_get_auth_by_name (name); 607 auth = mu_get_auth_by_name (name);
608 if (!auth) 608 if (!auth)
609 { 609 {
610 mailer_err ("%s: no such user", name); 610 mailer_err (_("%s: no such user"), name);
611 exit_code = EX_UNAVAILABLE; 611 exit_code = EX_UNAVAILABLE;
612 return; 612 return;
613 } 613 }
...@@ -621,14 +621,14 @@ deliver (mailbox_t imbx, char *name) ...@@ -621,14 +621,14 @@ deliver (mailbox_t imbx, char *name)
621 621
622 if ((status = mailbox_get_stream (imbx, &istream)) != 0) 622 if ((status = mailbox_get_stream (imbx, &istream)) != 0)
623 { 623 {
624 mailer_err ("can't get input message stream: %s", mu_errstring (status)); 624 mailer_err (_("can't get input message stream: %s"), mu_errstring (status));
625 mu_auth_data_free (auth); 625 mu_auth_data_free (auth);
626 return; 626 return;
627 } 627 }
628 628
629 if ((status = mailbox_create (&mbox, auth->mailbox)) != 0) 629 if ((status = mailbox_create (&mbox, auth->mailbox)) != 0)
630 { 630 {
631 mailer_err ("can't open mailbox %s: %s", 631 mailer_err (_("can't open mailbox %s: %s"),
632 auth->mailbox, mu_errstring (status)); 632 auth->mailbox, mu_errstring (status));
633 mu_auth_data_free (auth); 633 mu_auth_data_free (auth);
634 return; 634 return;
...@@ -647,7 +647,7 @@ deliver (mailbox_t imbx, char *name) ...@@ -647,7 +647,7 @@ deliver (mailbox_t imbx, char *name)
647 return; 647 return;
648 if (status != 0) 648 if (status != 0)
649 { 649 {
650 mailer_err ("can't open mailbox %s: %s", path, mu_errstring (status)); 650 mailer_err (_("can't open mailbox %s: %s"), path, mu_errstring (status));
651 mailbox_destroy (&mbox); 651 mailbox_destroy (&mbox);
652 return; 652 return;
653 } 653 }
...@@ -660,7 +660,7 @@ deliver (mailbox_t imbx, char *name) ...@@ -660,7 +660,7 @@ deliver (mailbox_t imbx, char *name)
660 660
661 if (status) 661 if (status)
662 { 662 {
663 mailer_err ("cannot lock mailbox '%s': %s", path, mu_errstring (status)); 663 mailer_err (_("cannot lock mailbox '%s': %s"), path, mu_errstring (status));
664 mailbox_destroy (&mbox); 664 mailbox_destroy (&mbox);
665 exit_code = EX_TEMPFAIL; 665 exit_code = EX_TEMPFAIL;
666 return; 666 return;
...@@ -668,7 +668,7 @@ deliver (mailbox_t imbx, char *name) ...@@ -668,7 +668,7 @@ deliver (mailbox_t imbx, char *name)
668 668
669 if ((status = mailbox_get_stream (mbox, &ostream))) 669 if ((status = mailbox_get_stream (mbox, &ostream)))
670 { 670 {
671 mailer_err ("can't get stream for mailbox %s: %s", 671 mailer_err (_("can't get stream for mailbox %s: %s"),
672 path, mu_errstring (status)); 672 path, mu_errstring (status));
673 mailbox_destroy (&mbox); 673 mailbox_destroy (&mbox);
674 return; 674 return;
...@@ -676,7 +676,7 @@ deliver (mailbox_t imbx, char *name) ...@@ -676,7 +676,7 @@ deliver (mailbox_t imbx, char *name)
676 676
677 if ((status = stream_size (ostream, (off_t *) &size))) 677 if ((status = stream_size (ostream, (off_t *) &size)))
678 { 678 {
679 mailer_err ("can't get stream size (mailbox %s): %s", 679 mailer_err (_("can't get stream size (mailbox %s): %s"),
680 path, mu_errstring (status)); 680 path, mu_errstring (status));
681 mailbox_destroy (&mbox); 681 mailbox_destroy (&mbox);
682 return; 682 return;
...@@ -689,7 +689,7 @@ deliver (mailbox_t imbx, char *name) ...@@ -689,7 +689,7 @@ deliver (mailbox_t imbx, char *name)
689 switch (check_quota (name, size, &n)) 689 switch (check_quota (name, size, &n))
690 { 690 {
691 case MQUOTA_EXCEEDED: 691 case MQUOTA_EXCEEDED:
692 mailer_err ("%s: mailbox quota exceeded for this recipient", name); 692 mailer_err (_("%s: mailbox quota exceeded for this recipient"), name);
693 exit_code = EX_QUOTA(); 693 exit_code = EX_QUOTA();
694 failed++; 694 failed++;
695 break; 695 break;
...@@ -700,14 +700,14 @@ deliver (mailbox_t imbx, char *name) ...@@ -700,14 +700,14 @@ deliver (mailbox_t imbx, char *name)
700 default: 700 default:
701 if ((status = stream_size (istream, (off_t *) &isize))) 701 if ((status = stream_size (istream, (off_t *) &isize)))
702 { 702 {
703 mailer_err ("can't get stream size (input message): %s", 703 mailer_err (_("can't get stream size (input message): %s"),
704 path, mu_errstring (status)); 704 path, mu_errstring (status));
705 exit_code = EX_UNAVAILABLE; 705 exit_code = EX_UNAVAILABLE;
706 failed++; 706 failed++;
707 } 707 }
708 else if (isize > n) 708 else if (isize > n)
709 { 709 {
710 mailer_err ("%s: message would exceed maximum mailbox size for this recipient", 710 mailer_err (_("%s: message would exceed maximum mailbox size for this recipient"),
711 name); 711 name);
712 exit_code = EX_QUOTA(); 712 exit_code = EX_QUOTA();
713 failed++; 713 failed++;
...@@ -756,7 +756,7 @@ deliver (mailbox_t imbx, char *name) ...@@ -756,7 +756,7 @@ deliver (mailbox_t imbx, char *name)
756 756
757 if (status) 757 if (status)
758 { 758 {
759 mailer_err ("error writing to mailbox: %s", 759 mailer_err (_("error writing to mailbox: %s"),
760 mu_errstring (status)); 760 mu_errstring (status));
761 } 761 }
762 } 762 }
...@@ -921,7 +921,3 @@ guess_retval (int ec) ...@@ -921,7 +921,3 @@ guess_retval (int ec)
921 exit_code = EX_UNAVAILABLE; 921 exit_code = EX_UNAVAILABLE;
922 } 922 }
923 923
924
925
926
927
......
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 Public License as published by 5 it under the terms of the GNU 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 General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU 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 #include <mail.local.h> 18 #include <mail.local.h>
...@@ -92,7 +92,7 @@ mda_catch_body (void *data, mailbox_t mbox) ...@@ -92,7 +92,7 @@ mda_catch_body (void *data, mailbox_t mbox)
92 if (access (md->progfile, R_OK)) 92 if (access (md->progfile, R_OK))
93 { 93 {
94 if (debug_level > 2) 94 if (debug_level > 2)
95 syslog (LOG_DEBUG, "access to %s failed: %m", md->progfile); 95 syslog (LOG_DEBUG, _("access to %s failed: %m"), md->progfile);
96 } 96 }
97 else 97 else
98 { 98 {
......
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 Public License as published by 5 it under the terms of the GNU 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 General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU 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 18
...@@ -39,11 +39,11 @@ pop3d_sigchld (int signo) ...@@ -39,11 +39,11 @@ pop3d_sigchld (int signo)
39 RETSIGTYPE 39 RETSIGTYPE
40 pop3d_signal (int signo) 40 pop3d_signal (int signo)
41 { 41 {
42 syslog (LOG_CRIT, "got signal %s", strsignal(signo)); 42 syslog (LOG_CRIT, _("got signal %s"), strsignal(signo));
43 /* Master process. */ 43 /* Master process. */
44 if (!ofile) 44 if (!ofile)
45 { 45 {
46 syslog (LOG_CRIT, "MASTER: exiting on signal"); 46 syslog (LOG_CRIT, _("MASTER: exiting on signal"));
47 exit (EXIT_FAILURE); /* abort(); */ 47 exit (EXIT_FAILURE); /* abort(); */
48 } 48 }
49 49
......