diff options
author | Dan Winship <danw@src.gnome.org> | 2000-10-24 13:23:27 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-10-24 13:23:27 +0800 |
commit | 360675f54b51d53ac99409077f2d31d96284fb9b (patch) | |
tree | 265d70af032473fbdf08d04695ed2a9b3c5b4a34 /camel/providers/sendmail | |
parent | babd37f2f7b43ea61df0d320ac7344d18debae72 (diff) | |
download | gsoc2013-evolution-360675f54b51d53ac99409077f2d31d96284fb9b.tar.gz gsoc2013-evolution-360675f54b51d53ac99409077f2d31d96284fb9b.tar.zst gsoc2013-evolution-360675f54b51d53ac99409077f2d31d96284fb9b.zip |
lots of i18n fixes
svn path=/trunk/; revision=6143
Diffstat (limited to 'camel/providers/sendmail')
-rw-r--r-- | camel/providers/sendmail/camel-sendmail-provider.c | 6 | ||||
-rw-r--r-- | camel/providers/sendmail/camel-sendmail-transport.c | 30 |
2 files changed, 19 insertions, 17 deletions
diff --git a/camel/providers/sendmail/camel-sendmail-provider.c b/camel/providers/sendmail/camel-sendmail-provider.c index 3b0b35dd72..5fbac10434 100644 --- a/camel/providers/sendmail/camel-sendmail-provider.c +++ b/camel/providers/sendmail/camel-sendmail-provider.c @@ -31,10 +31,10 @@ static CamelProvider sendmail_provider = { "sendmail", - "Sendmail", + N_("Sendmail"), - "For delivering mail by passing it to the \"sendmail\" program " - "on the local system.", + N_("For delivering mail by passing it to the \"sendmail\" program " + "on the local system."), "mail", diff --git a/camel/providers/sendmail/camel-sendmail-transport.c b/camel/providers/sendmail/camel-sendmail-transport.c index c53512ccb4..137c1d32a9 100644 --- a/camel/providers/sendmail/camel-sendmail-transport.c +++ b/camel/providers/sendmail/camel-sendmail-transport.c @@ -102,8 +102,8 @@ _send_internal (CamelMedium *message, char **argv, CamelException *ex) if (pipe (fd) == -1) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - "Could not create pipe to sendmail: " - "%s: mail not sent", + _("Could not create pipe to sendmail: " + "%s: mail not sent"), g_strerror (errno)); return FALSE; } @@ -119,8 +119,9 @@ _send_internal (CamelMedium *message, char **argv, CamelException *ex) switch (pid) { case -1: camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - "Could not fork sendmail: " - "%s: mail not sent", g_strerror (errno)); + _("Could not fork sendmail: " + "%s: mail not sent"), + g_strerror (errno)); sigprocmask (SIG_SETMASK, &omask, NULL); return FALSE; @@ -144,7 +145,7 @@ _send_internal (CamelMedium *message, char **argv, CamelException *ex) || camel_stream_close(out) == -1) { camel_object_unref (CAMEL_OBJECT (out)); camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - "Could not send message: %s", + _("Could not send message: %s"), strerror(errno)); return FALSE; } @@ -157,19 +158,20 @@ _send_internal (CamelMedium *message, char **argv, CamelException *ex) if (!WIFEXITED (wstat)) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - "sendmail exited with signal %s: " - "mail not sent.", + _("sendmail exited with signal %s: " + "mail not sent."), g_strsignal (WTERMSIG (wstat))); return FALSE; } else if (WEXITSTATUS (wstat) != 0) { if (WEXITSTATUS (wstat) == 255) { - camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM, - "Could not execute " - SENDMAIL_PATH ": mail not sent."); + camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, + _("Could not execute %s: " + "mail not sent."), + SENDMAIL_PATH); } else { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - "sendmail exited with status " - "%d: mail not sent.", + _("sendmail exited with status " + "%d: mail not sent."), WEXITSTATUS (wstat)); } return FALSE; @@ -215,7 +217,7 @@ static char * get_name (CamelService *service, gboolean brief) { if (brief) - return g_strdup ("sendmail"); + return g_strdup (_("sendmail")); else - return g_strdup ("Mail delivery via the sendmail program"); + return g_strdup (_("Mail delivery via the sendmail program")); } |