diff options
author | 9 <NotZed@Ximian.com> | 2001-10-20 06:25:54 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-10-20 06:25:54 +0800 |
commit | 46b2a9d35930d1f2d44609feb50d8e148987c6a9 (patch) | |
tree | fafeaa577b619b3df96e6e29214f2960267e84ad /camel/camel-session.c | |
parent | 7d70bec880913d222d52395f736125f4bf026337 (diff) | |
download | gsoc2013-evolution-46b2a9d35930d1f2d44609feb50d8e148987c6a9.tar.gz gsoc2013-evolution-46b2a9d35930d1f2d44609feb50d8e148987c6a9.tar.zst gsoc2013-evolution-46b2a9d35930d1f2d44609feb50d8e148987c6a9.zip |
When registering provider, translate all strings.
2001-10-19 <NotZed@Ximian.com>
* camel-session.c (register_provider): When registering provider,
translate all strings.
svn path=/trunk/; revision=13809
Diffstat (limited to 'camel/camel-session.c')
-rw-r--r-- | camel/camel-session.c | 23 |
1 files changed, 23 insertions, 0 deletions
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); } |