diff options
author | Changwoo Ryu <cwryu@debian.org> | 2006-01-02 19:16:00 +0800 |
---|---|---|
committer | Shreyas Srinivasan <shres@src.gnome.org> | 2006-01-02 19:16:00 +0800 |
commit | 8c1f42f3ae96a61e84db22235bd5f2714676140a (patch) | |
tree | 73ba66e1da10e4c17c1bea6ee4606f676e3e8d0c /mail/em-folder-properties.c | |
parent | aedfb5445a0b8b54455864bfa44163260a01fef1 (diff) | |
download | gsoc2013-evolution-8c1f42f3ae96a61e84db22235bd5f2714676140a.tar.gz gsoc2013-evolution-8c1f42f3ae96a61e84db22235bd5f2714676140a.tar.zst gsoc2013-evolution-8c1f42f3ae96a61e84db22235bd5f2714676140a.zip |
translate the labels of emfp_items.
2006-01-01 Changwoo Ryu <cwryu@debian.org>
* em-folder-properties.c (emfp_dialog_got_folder): translate
the labels of emfp_items.
* em-account-editor.c (em_account_editor_construct): translate
the labels of emae_{editor,druid}_items.
svn path=/trunk/; revision=31023
Diffstat (limited to 'mail/em-folder-properties.c')
-rw-r--r-- | mail/em-folder-properties.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mail/em-folder-properties.c b/mail/em-folder-properties.c index d172a23515..98ada5a740 100644 --- a/mail/em-folder-properties.c +++ b/mail/em-folder-properties.c @@ -218,6 +218,7 @@ static EMConfigItem emfp_items[] = { { E_CONFIG_SECTION, "00.general/00.folder", NULL /* set by code */ }, { E_CONFIG_ITEM, "00.general/00.folder/00.info", NULL, emfp_get_folder_item }, }; +static gboolean emfp_items_translated = FALSE; static void emfp_dialog_got_folder (char *uri, CamelFolder *folder, void *data) @@ -245,8 +246,16 @@ emfp_dialog_got_folder (char *uri, CamelFolder *folder, void *data) && (!strcmp(prop_data->name, "Drafts") || !strcmp(prop_data->name, "Inbox") || !strcmp(prop_data->name, "Outbox") - || !strcmp(prop_data->name, "Sent"))) + || !strcmp(prop_data->name, "Sent"))) { emfp_items[EMFP_FOLDER_SECTION].label = _(prop_data->name); + if (!emfp_items_translated) { + for (i=0;i<sizeof(emfp_items)/sizeof(emfp_items[0]);i++) { + if (emfp_items[i].label) + emfp_items[i].label = _(emfp_items[i].label); + } + emfp_items_translated = TRUE; + } + } else emfp_items[EMFP_FOLDER_SECTION].label = prop_data->name; |