diff options
author | Christopher James Lahey <clahey@ximian.com> | 2002-05-02 07:26:42 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2002-05-02 07:26:42 +0800 |
commit | e1f208de7dfadbd84d2e5aa75204f04f60ad49e0 (patch) | |
tree | 08088fc548e31986fc29b715d489eb6389fd77d4 /widgets/table/e-table-utils.c | |
parent | 6be9006f3fa356bf1402067ec60aa278871562bb (diff) | |
download | gsoc2013-evolution-e1f208de7dfadbd84d2e5aa75204f04f60ad49e0.tar.gz gsoc2013-evolution-e1f208de7dfadbd84d2e5aa75204f04f60ad49e0.tar.zst gsoc2013-evolution-e1f208de7dfadbd84d2e5aa75204f04f60ad49e0.zip |
Set the gettext-domain here.
2002-05-01 Christopher James Lahey <clahey@ximian.com>
* 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 <clahey@ximian.com>
* 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 <clahey@ximian.com>
* gal-define-views-dialog.c (SPEC),
gal-view-instance-save-as-dialog.c (SPEC): Set the gettext-domain
here.
svn path=/trunk/; revision=16658
Diffstat (limited to 'widgets/table/e-table-utils.c')
-rw-r--r-- | widgets/table/e-table-utils.c | 11 |
1 files changed, 7 insertions, 4 deletions
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); |