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
This commit is contained in:
9
2001-10-19 22:25:54 +00:00
committed by Michael Zucci
parent 7d70bec880
commit 46b2a9d359
2 changed files with 26 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2001-10-19 <NotZed@Ximian.com>
* 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

View File

@ -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);
}