From e1f208de7dfadbd84d2e5aa75204f04f60ad49e0 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 1 May 2002 23:26:42 +0000 Subject: Set the gettext-domain here. 2002-05-01 Christopher James Lahey * gal/e-text/e-completion-view.c (simple_spec), gal/widgets/e-categories-master-list-dialog.c (SPEC), gal/widgets/e-categories.c (INITIAL_SPEC): Set the gettext-domain here. * gal/util/e-i18n.h (E_I18N_DOMAIN): #define as makes sense in the different cases. From gal/e-table/ChangeLog: 2002-05-01 Christopher James Lahey * e-table-config.c, e-table-config.h, e-table-specification.c, e-table-specification.h, e-table-utils.c, e-table-utils.h, e-table.c, e-table.h: Made these pay attention to the gettext-domain in the etspec. * e-table-config.c: Set the gettext-domain in the etspec here. From gal/menus/ChangeLog: 2002-05-01 Christopher James Lahey * gal-define-views-dialog.c (SPEC), gal-view-instance-save-as-dialog.c (SPEC): Set the gettext-domain here. svn path=/trunk/; revision=16658 --- widgets/table/e-table-utils.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'widgets/table/e-table-utils.c') diff --git a/widgets/table/e-table-utils.c b/widgets/table/e-table-utils.c index a155d49b0a..c013a806b2 100644 --- a/widgets/table/e-table-utils.c +++ b/widgets/table/e-table-utils.c @@ -68,7 +68,8 @@ e_table_state_to_header (GtkWidget *widget, ETableHeader *full_header, ETableSta static ETableCol * et_col_spec_to_col (ETableColumnSpecification *col_spec, - ETableExtras *ete) + ETableExtras *ete, + const char *domain) { ETableCol *col = NULL; ECell *cell = NULL; @@ -83,6 +84,8 @@ et_col_spec_to_col (ETableColumnSpecification *col_spec, search = e_table_extras_get_search(ete, col_spec->search); if (cell && compare) { + const char *title = dgettext (domain, col_spec->title); + if (col_spec->pixbuf && *col_spec->pixbuf) { GdkPixbuf *pixbuf; @@ -90,7 +93,7 @@ et_col_spec_to_col (ETableColumnSpecification *col_spec, ete, col_spec->pixbuf); if (pixbuf) { col = e_table_col_new_with_pixbuf ( - col_spec->model_col, gettext (col_spec->title), + col_spec->model_col, title, pixbuf, col_spec->expansion, col_spec->minimum_width, cell, compare, col_spec->resizable, col_spec->disabled, col_spec->priority); @@ -98,7 +101,7 @@ et_col_spec_to_col (ETableColumnSpecification *col_spec, } if (col == NULL && col_spec->title && *col_spec->title) { col = e_table_col_new ( - col_spec->model_col, gettext (col_spec->title), + col_spec->model_col, title, col_spec->expansion, col_spec->minimum_width, cell, compare, col_spec->resizable, col_spec->disabled, col_spec->priority); } @@ -121,7 +124,7 @@ e_table_spec_to_full_header (ETableSpecification *spec, for (column = 0; spec->columns[column]; column++) { ETableCol *col = et_col_spec_to_col ( - spec->columns[column], ete); + spec->columns[column], ete, spec->domain); if (col) e_table_header_add_column (nh, col, -1); -- cgit