diff options
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 8 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook.c | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index cf3fb13eb1..0829040136 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,11 @@ +2001-08-27 Zbigniew Chyla <cyba@gnome.pl> + + * gui/component/addressbook.c (addressbook_factory_new_control): + For every category: + - set .translate to FALSE (e_categories_master_list_nth returns + translated category name) + - convert category name in UTF-8 to locale's encoding + 2001-08-23 Zbigniew Chyla <cyba@gnome.pl> * gui/component/select-names/e-select-names-popup.c diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index c2a1ca4631..cd5ba138a8 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -884,9 +884,13 @@ addressbook_factory_new_control (void) subitems[0].translate = FALSE; for (i=0; i<N; ++i) { + char *category; + subitems[i+1].id = i; - subitems[i+1].text = (char *) e_categories_master_list_nth (master_list, i); - subitems[i+1].translate = TRUE; + category = (char *) e_categories_master_list_nth (master_list, i); + subitems[i+1].text = e_utf8_to_locale_string (category); + g_free (category); + subitems[i+1].translate = FALSE; } subitems[N+1].id = -1; subitems[N+1].text = NULL; |