From eec472c35c69b0a5f070d65063941e81fb0ac9b5 Mon Sep 17 00:00:00 2001 From: mental Date: Tue, 15 Jan 2008 05:13:05 +0000 Subject: [PATCH] make input labels translatable --- src/ui/dialog/filter-effects-dialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/dialog/filter-effects-dialog.cpp b/src/ui/dialog/filter-effects-dialog.cpp index 2469abb23..dcd3cd8cf 100644 --- a/src/ui/dialog/filter-effects-dialog.cpp +++ b/src/ui/dialog/filter-effects-dialog.cpp @@ -1243,7 +1243,7 @@ int FilterEffectsDialog::PrimitiveList::init_text() int maxfont = 0; for(int i = 0; i < FPInputConverter.end; ++i) { - _vertical_layout->set_text(FPInputConverter.get_label((FilterPrimitiveInput)i)); + _vertical_layout->set_text(_(FPInputConverter.get_label((FilterPrimitiveInput)i).c_str())); int fontw, fonth; _vertical_layout->get_pixel_size(fontw, fonth); if(fonth > maxfont) @@ -1354,7 +1354,7 @@ bool FilterEffectsDialog::PrimitiveList::on_expose_signal(GdkEventExpose* e) text_start_x = rct.get_x() + rct.get_width() - _connection_cell.get_text_width() * (FPInputConverter.end + 1) + 1; for(int i = 0; i < FPInputConverter.end; ++i) { - _vertical_layout->set_text(FPInputConverter.get_label((FilterPrimitiveInput)i)); + _vertical_layout->set_text(_(FPInputConverter.get_label((FilterPrimitiveInput)i).c_str())); const int x = text_start_x + _connection_cell.get_text_width() * (i + 1); get_bin_window()->draw_rectangle(get_style()->get_bg_gc(Gtk::STATE_NORMAL), true, x, vis_y, _connection_cell.get_text_width(), vis.get_height()); get_bin_window()->draw_layout(get_style()->get_text_gc(Gtk::STATE_NORMAL), x + 1, vis_y, _vertical_layout); -- 2.30.2