aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-service.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-10-24 13:23:27 +0800
committerDan Winship <danw@src.gnome.org>2000-10-24 13:23:27 +0800
commit360675f54b51d53ac99409077f2d31d96284fb9b (patch)
tree265d70af032473fbdf08d04695ed2a9b3c5b4a34 /camel/camel-service.c
parentbabd37f2f7b43ea61df0d320ac7344d18debae72 (diff)
downloadgsoc2013-evolution-360675f54b51d53ac99409077f2d31d96284fb9b.tar
gsoc2013-evolution-360675f54b51d53ac99409077f2d31d96284fb9b.tar.gz
gsoc2013-evolution-360675f54b51d53ac99409077f2d31d96284fb9b.tar.bz2
gsoc2013-evolution-360675f54b51d53ac99409077f2d31d96284fb9b.tar.lz
gsoc2013-evolution-360675f54b51d53ac99409077f2d31d96284fb9b.tar.xz
gsoc2013-evolution-360675f54b51d53ac99409077f2d31d96284fb9b.tar.zst
gsoc2013-evolution-360675f54b51d53ac99409077f2d31d96284fb9b.zip
lots of i18n fixes
svn path=/trunk/; revision=6143
Diffstat (limited to 'camel/camel-service.c')
-rw-r--r--camel/camel-service.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/camel/camel-service.c b/camel/camel-service.c
index 0449eb9d48..14d086653b 100644
--- a/camel/camel-service.c
+++ b/camel/camel-service.c
@@ -116,7 +116,7 @@ check_url (CamelService *service, CamelException *ex)
(service->url->user == NULL || service->url->user[0] == '\0')) {
url_string = camel_url_to_string (service->url, FALSE);
camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_URL_INVALID,
- "URL '%s' needs a username component",
+ _("URL '%s' needs a username component"),
url_string);
g_free (url_string);
return FALSE;
@@ -125,7 +125,7 @@ check_url (CamelService *service, CamelException *ex)
(service->url->host == NULL || service->url->host[0] == '\0')) {
url_string = camel_url_to_string (service->url, FALSE);
camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_URL_INVALID,
- "URL '%s' needs a host component",
+ _("URL '%s' needs a host component"),
url_string);
g_free (url_string);
return FALSE;
@@ -134,7 +134,7 @@ check_url (CamelService *service, CamelException *ex)
(service->url->path == NULL || service->url->path[0] == '\0')) {
url_string = camel_url_to_string (service->url, FALSE);
camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_URL_INVALID,
- "URL '%s' needs a path component",
+ _("URL '%s' needs a path component"),
url_string);
g_free (url_string);
return FALSE;
@@ -267,12 +267,7 @@ camel_service_disconnect (CamelService *service, CamelException *ex)
{
gboolean res;
- if (!service->connected) {
- camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_NOT_CONNECTED,
- "Trying to disconnect from a service that isn't connected");
- return FALSE;
- }
-
+ g_return_val_if_fail (service->connected, FALSE);
res = CSERV_CLASS (service)->disconnect (service, ex);
service->connected = FALSE;
return res;
@@ -518,11 +513,11 @@ camel_service_gethost (CamelService *service, CamelException *ex)
if (h_errno == HOST_NOT_FOUND || h_errno == NO_DATA) {
camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_URL_INVALID,
- "No such host %s.", hostname);
+ _("No such host %s."), hostname);
} else {
camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE,
- "Temporarily unable to look up "
- "hostname %s.", hostname);
+ _("Temporarily unable to look "
+ "up hostname %s."), hostname);
}
return NULL;
}