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-account-editor.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-account-editor.c')
-rw-r--r-- | mail/em-account-editor.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index 59f18fa9e4..4dda9a9f05 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -2338,6 +2338,7 @@ static EMConfigItem emae_editor_items[] = { /* table not vbox: { E_CONFIG_SECTION, "50.security/10.smime", "smime_table", emae_widget_glade }, */ { 0 }, }; +static gboolean emae_editor_items_translated = FALSE; static GtkWidget * emae_management_page(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, void *data) @@ -2424,6 +2425,7 @@ static EMConfigItem emae_druid_items[] = { { E_CONFIG_PAGE_FINISH, "999.end", "finish_page", emae_widget_druid_glade }, { 0 }, }; +static gboolean emae_druid_items_translated = FALSE; static void emae_free(EConfig *ec, GSList *items, void *data) @@ -2675,9 +2677,23 @@ em_account_editor_construct(EMAccountEditor *emae, EAccount *account, em_account if (type == EMAE_NOTEBOOK) { ec = em_config_new(E_CONFIG_BOOK, id); items = emae_editor_items; + if (!emae_editor_items_translated) { + for (i=0;items[i].path;i++) { + if (items[i].label) + items[i].label = gettext(items[i].label); + } + emae_editor_items_translated = TRUE; + } } else { ec = em_config_new(E_CONFIG_DRUID, id); items = emae_druid_items; + if (!emae_druid_items_translated) { + for (i=0;items[i].path;i++) { + if (items[i].label) + items[i].label = _(items[i].label); + } + emae_druid_items_translated = TRUE; + } } emae->config = gui->config = ec; |