From 46b2a9d35930d1f2d44609feb50d8e148987c6a9 Mon Sep 17 00:00:00 2001 From: 9 Date: Fri, 19 Oct 2001 22:25:54 +0000 Subject: When registering provider, translate all strings. 2001-10-19 * camel-session.c (register_provider): When registering provider, translate all strings. svn path=/trunk/; revision=13809 --- camel/ChangeLog | 3 +++ camel/camel-session.c | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/camel/ChangeLog b/camel/ChangeLog index c9a0946fab..1458ba8b12 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,8 @@ 2001-10-19 + * camel-session.c (register_provider): When registering provider, + translate all strings. + * camel-vee-folder.c (camel_vee_folder_remove_folder): Lock the right lock for unmatched subfolder list stuff. If the sub folder is deleted & part of unmatched, or the last ref to the sub folder diff --git a/camel/camel-session.c b/camel/camel-session.c index 49fcc0b926..6acde1fe66 100644 --- a/camel/camel-session.c +++ b/camel/camel-session.c @@ -198,6 +198,29 @@ camel_session_construct (CamelSession *session, const char *storage_path) static void register_provider (CamelSession *session, CamelProvider *provider) { + int i; + CamelProviderConfEntry *conf; + GList *l; + + /* Translate all strings here */ + provider->name = _(provider->name); + provider->description = _(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); + } + } + l = provider->authtypes; + while (l) { + CamelServiceAuthType *auth = l->data; + + auth->name = _(auth->name); + auth->description = _(auth->description); + l = l->next; + } + g_hash_table_insert (session->providers, provider->protocol, provider); } -- cgit