aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-config.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-05-03 04:32:19 +0800
committerChris Lahey <clahey@src.gnome.org>2002-05-03 04:32:19 +0800
commit874390a8376202f138266bdd641e810db93a3136 (patch)
tree1e19721ead0b36bade4cc011313b0c70b5c71a5d /widgets/table/e-table-config.c
parentcad5e25f863f3bf643a2c7a7b4a77be0bc9db130 (diff)
downloadgsoc2013-evolution-874390a8376202f138266bdd641e810db93a3136.tar.gz
gsoc2013-evolution-874390a8376202f138266bdd641e810db93a3136.tar.zst
gsoc2013-evolution-874390a8376202f138266bdd641e810db93a3136.zip
Added this function that lets you specify the translation domain.
2002-05-02 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-popup-menu.c, gal/widgets/e-popup-menu.h (e_popup_menu_create_with_domain): Added this function that lets you specify the translation domain. From gal/e-table/ChangeLog: 2002-05-02 Christopher James Lahey <clahey@ximian.com> * e-table-click-to-add.c (finish_editing): Add horizontal dividers here too. * e-table-config.c (create_global_store): Translate column headers here. * e-table-header-item.c (ethi_header_context_menu): Use e_popup_menu_create_with_domain here. * e-table-header-utils.c (e_table_header_draw_button): Translate from utf8 here before drawing. * e-table-memory-store.c, e-table-memory-store.h (e_table_memory_store_insert_adopt_array): Changed the name of this function from e_table_memory_store_insert_adopt. (e_table_memory_store_insert_adopt): Added this function which takes a ... list. * e-table-utils.c (et_col_spec_to_col): Translate column titles to utf8 here. svn path=/trunk/; revision=16668
Diffstat (limited to 'widgets/table/e-table-config.c')
-rw-r--r--widgets/table/e-table-config.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c
index 05e5b09ddf..a3e9554d3a 100644
--- a/widgets/table/e-table-config.c
+++ b/widgets/table/e-table-config.c
@@ -43,6 +43,7 @@
#include <glade/glade.h>
#include "gal/util/e-util.h"
#include "gal/util/e-i18n.h"
+#include "gal/widgets/e-unicode.h"
#include <e-table-scrolled.h>
#include <e-table-without.h>
@@ -498,7 +499,10 @@ create_global_store (ETableConfig *config)
global_store = e_table_memory_store_new (store_columns);
for (i = 0; config->source_spec->columns[i]; i++) {
- e_table_memory_store_insert (E_TABLE_MEMORY_STORE (global_store), i, NULL, config->source_spec->columns[i]->title);
+ char *text = e_utf8_from_locale_string (dgettext (config->domain,
+ config->source_spec->columns[i]->title));
+
+ e_table_memory_store_insert_adopt (E_TABLE_MEMORY_STORE (global_store), i, NULL, text);
}
}