diff options
author | Chyla Zbigniew <chyla@src.gnome.org> | 2001-09-08 07:43:36 +0800 |
---|---|---|
committer | Chyla Zbigniew <chyla@src.gnome.org> | 2001-09-08 07:43:36 +0800 |
commit | ad3b49203a983224c11ec86e7e7a1bba1a9c39e6 (patch) | |
tree | 16ea6b90a842fe23f4364932390525deca3fd39d /addressbook/gui | |
parent | e9ca2eea34404118cf483fa88b80a61407b2f17a (diff) | |
download | gsoc2013-evolution-ad3b49203a983224c11ec86e7e7a1bba1a9c39e6.tar gsoc2013-evolution-ad3b49203a983224c11ec86e7e7a1bba1a9c39e6.tar.gz gsoc2013-evolution-ad3b49203a983224c11ec86e7e7a1bba1a9c39e6.tar.bz2 gsoc2013-evolution-ad3b49203a983224c11ec86e7e7a1bba1a9c39e6.tar.lz gsoc2013-evolution-ad3b49203a983224c11ec86e7e7a1bba1a9c39e6.tar.xz gsoc2013-evolution-ad3b49203a983224c11ec86e7e7a1bba1a9c39e6.tar.zst gsoc2013-evolution-ad3b49203a983224c11ec86e7e7a1bba1a9c39e6.zip |
For every category: - set .translate to FALSE
* 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
svn path=/trunk/; revision=12696
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/component/addressbook.c | 8 |
1 files changed, 6 insertions, 2 deletions
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; |