From: Marco Pesenti Gritti Date: Wed, 18 May 2005 16:12:40 +0000 (+0000) Subject: Translate zoom levels X-Git-Tag: EVINCE_0_3_1~12 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=fecc75d11b8905c61a0ccc9490a1a6c2c54567bc;p=evince.git 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 --- 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)));