aboutsummaryrefslogtreecommitdiff
path: root/src/mail.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-02-23 10:03:37 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-02-23 10:03:37 +0200
commit337a06f32fb530e0e0884fef2f5f630cca9911a1 (patch)
treed0687ccd3e9ff527d9c5613fd052cbe0f79bb40a /src/mail.c
parent7543ff5973d1afe75b0f4226a3a02cc8d375ad3e (diff)
downloadwydawca-337a06f32fb530e0e0884fef2f5f630cca9911a1.tar.gz
wydawca-337a06f32fb530e0e0884fef2f5f630cca9911a1.tar.bz2
Add missing i18n markers
Diffstat (limited to 'src/mail.c')
-rw-r--r--src/mail.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mail.c b/src/mail.c
index d44d692..7987819 100644
--- a/src/mail.c
+++ b/src/mail.c
@@ -38,7 +38,7 @@ mail_init ()
38 { 38 {
39 const char *url = NULL; 39 const char *url = NULL;
40 mu_mailer_get_url_default (&url); 40 mu_mailer_get_url_default (&url);
41 logmsg (LOG_ERR, "cannot create default mailer `%s': %s", 41 logmsg (LOG_ERR, _("cannot create default mailer `%s': %s"),
42 url, mu_strerror (rc)); 42 url, mu_strerror (rc));
43 } 43 }
44 } 44 }
@@ -85,7 +85,7 @@ mail_send_message (mu_address_t rcpt, const char *text)
85 { 85 {
86 mu_url_t url = NULL; 86 mu_url_t url = NULL;
87 mu_mailer_get_url (mailer, &url); 87 mu_mailer_get_url (mailer, &url);
88 logmsg (LOG_CRIT, "opening mailer `%s' failed: %s", 88 logmsg (LOG_CRIT, _("opening mailer `%s' failed: %s"),
89 url ? mu_url_to_string (url) : "(unknown URL)", 89 url ? mu_url_to_string (url) : "(unknown URL)",
90 mu_strerror (rc)); 90 mu_strerror (rc));
91 return; 91 return;
@@ -95,7 +95,7 @@ mail_send_message (mu_address_t rcpt, const char *text)
95 95
96 rc = mu_mailer_send_message (mailer, msg, from_address, rcpt); 96 rc = mu_mailer_send_message (mailer, msg, from_address, rcpt);
97 if (rc) 97 if (rc)
98 logmsg (LOG_CRIT, "cannot send message: %s", mu_strerror (rc)); 98 logmsg (LOG_CRIT, _("cannot send message: %s"), mu_strerror (rc));
99 99
100 mu_message_destroy (&msg, mu_message_get_owner (msg)); 100 mu_message_destroy (&msg, mu_message_get_owner (msg));
101} 101}
@@ -213,7 +213,7 @@ mail_stats ()
213 213
214 if (!admin_address) 214 if (!admin_address)
215 { 215 {
216 logmsg (LOG_ERR, "Cannot mail statistics: admin-address not defined"); 216 logmsg (LOG_ERR, _("cannot mail statistics: admin-address not defined"));
217 return; 217 return;
218 } 218 }
219 219
@@ -224,7 +224,7 @@ mail_stats ()
224 mu_address_to_string (admin_address, NULL, 0, &size); 224 mu_address_to_string (admin_address, NULL, 0, &size);
225 buf = xmalloc (size + 1); 225 buf = xmalloc (size + 1);
226 mu_address_to_string (admin_address, buf, size + 1, NULL); 226 mu_address_to_string (admin_address, buf, size + 1, NULL);
227 logmsg (LOG_DEBUG, "Sending stats to %s", buf); 227 logmsg (LOG_DEBUG, _("sending stats to %s"), buf);
228 free (buf); 228 free (buf);
229 } 229 }
230 230
@@ -242,7 +242,7 @@ mail_stats ()
242 tmpl = resolve_message_template (admin_stat_message); 242 tmpl = resolve_message_template (admin_stat_message);
243 if (!tmpl) 243 if (!tmpl)
244 { 244 {
245 logmsg (LOG_ERR, "undefined message reference: %s", 245 logmsg (LOG_ERR, _("undefined message reference: %s"),
246 admin_stat_message); 246 admin_stat_message);
247 return; 247 return;
248 } 248 }
@@ -347,7 +347,7 @@ do_notify (struct file_triplet *trp, enum notification_event ev,
347 347
348 if (!rcpt) 348 if (!rcpt)
349 { 349 {
350 logmsg (LOG_ERR, "not notifying %s (project %s) about %s: %s", 350 logmsg (LOG_ERR, _("not notifying %s (project %s) about %s: %s"),
351 notification_target_str (ntf->tgt), 351 notification_target_str (ntf->tgt),
352 trp->project, 352 trp->project,
353 notification_event_str (ev), errp); 353 notification_event_str (ev), errp);
@@ -361,7 +361,7 @@ do_notify (struct file_triplet *trp, enum notification_event ev,
361 mu_address_to_string (rcpt, NULL, 0, &size); 361 mu_address_to_string (rcpt, NULL, 0, &size);
362 buf = xmalloc (size + 1); 362 buf = xmalloc (size + 1);
363 mu_address_to_string (rcpt, buf, size + 1, NULL); 363 mu_address_to_string (rcpt, buf, size + 1, NULL);
364 logmsg (LOG_DEBUG, "notifying %s (project %s) about %s", 364 logmsg (LOG_DEBUG, _("notifying %s (project %s) about %s"),
365 buf, trp->project, notification_event_str (ev)); 365 buf, trp->project, notification_event_str (ev));
366 free (buf); 366 free (buf);
367 } 367 }
@@ -370,7 +370,7 @@ do_notify (struct file_triplet *trp, enum notification_event ev,
370 { 370 {
371 const char *msg = resolve_message_template (ntf->msg); 371 const char *msg = resolve_message_template (ntf->msg);
372 if (!msg) 372 if (!msg)
373 logmsg (LOG_ERR, "undefined message reference: %s", ntf->msg); 373 logmsg (LOG_ERR, _("undefined message reference: %s"), ntf->msg);
374 else 374 else
375 { 375 {
376 char *text = triplet_expand_param (msg, trp); 376 char *text = triplet_expand_param (msg, trp);

Return to:

Send suggestions and report system problems to the System administrator.