From fecc75d11b8905c61a0ccc9490a1a6c2c54567bc Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 18 May 2005 16:12:40 +0000 Subject: [PATCH] Translate zoom levels 2005-05-18 Marco Pesenti Gritti * cut-n-paste/zoom-control/ephy-zoom-control.c: (ephy_zoom_control_init): Translate zoom levels --- ChangeLog | 7 +++++++ cut-n-paste/zoom-control/ephy-zoom-control.c | 14 ++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index b7a58ef4..9c567878 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-05-18 Marco Pesenti Gritti + + * cut-n-paste/zoom-control/ephy-zoom-control.c: + (ephy_zoom_control_init): + + Translate zoom levels + 2005-05-18 Marco Pesenti Gritti * cut-n-paste/zoom-control/ephy-zoom.c: diff --git a/cut-n-paste/zoom-control/ephy-zoom-control.c b/cut-n-paste/zoom-control/ephy-zoom-control.c index d3b7e572..dcbe8a66 100644 --- a/cut-n-paste/zoom-control/ephy-zoom-control.c +++ b/cut-n-paste/zoom-control/ephy-zoom-control.c @@ -152,10 +152,16 @@ ephy_zoom_control_init (EphyZoomControl *control) for (i = 0; i < n_zoom_levels; i++) { gtk_list_store_append (store, &iter); - gtk_list_store_set (store, &iter, - COL_TEXT, zoom_levels[i].name, - COL_IS_SEP, zoom_levels[i].name == NULL, - -1); + + if (zoom_levels[i].name != NULL) { + gtk_list_store_set (store, &iter, + COL_TEXT, _(zoom_levels[i].name), + -1); + } else { + gtk_list_store_set (store, &iter, + COL_IS_SEP, zoom_levels[i].name == NULL, + -1); + } } p->combo = GTK_COMBO_BOX (gtk_combo_box_new_with_model (GTK_TREE_MODEL (store))); -- 2.43.5