aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-session.c')
-rw-r--r--camel/camel-session.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/camel/camel-session.c b/camel/camel-session.c
index 750c34c18c..c4634b45dd 100644
--- a/camel/camel-session.c
+++ b/camel/camel-session.c
@@ -207,21 +207,24 @@ register_provider (CamelSession *session, CamelProvider *provider)
}
/* Translate all strings here */
- provider->name = _(provider->name);
- provider->description = _(provider->description);
+
+#define P_(string) dgettext (provider->translation_domain, string)
+
+ provider->name = P_(provider->name);
+ provider->description = P_(provider->description);
conf = provider->extra_conf;
if (conf) {
for (i=0;conf[i].type != CAMEL_PROVIDER_CONF_END;i++) {
if (conf[i].text)
- conf[i].text = _(conf[i].text);
+ conf[i].text = P_(conf[i].text);
}
}
l = provider->authtypes;
while (l) {
CamelServiceAuthType *auth = l->data;
- auth->name = _(auth->name);
- auth->description = _(auth->description);
+ auth->name = P_(auth->name);
+ auth->description = P_(auth->description);
l = l->next;
}