]> www.fi.muni.cz Git - evince.git/commitdiff
Translate zoom levels
authorMarco Pesenti Gritti <mpg@redhat.com>
Wed, 18 May 2005 16:12:40 +0000 (16:12 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Wed, 18 May 2005 16:12:40 +0000 (16:12 +0000)
2005-05-18  Marco Pesenti Gritti <mpg@redhat.com>

        * cut-n-paste/zoom-control/ephy-zoom-control.c:
        (ephy_zoom_control_init):

        Translate zoom levels

ChangeLog
cut-n-paste/zoom-control/ephy-zoom-control.c

index b7a58ef4628eb8dad6a14a9bd34ae755a9aeb5cc..9c56787862c51a264c8eced38d80462c2d3d3b96 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-05-18  Marco Pesenti Gritti <mpg@redhat.com>
+
+       * cut-n-paste/zoom-control/ephy-zoom-control.c:
+       (ephy_zoom_control_init):
+
+       Translate zoom levels
+
 2005-05-18  Marco Pesenti Gritti <mpg@redhat.com>
 
        * cut-n-paste/zoom-control/ephy-zoom.c:
index d3b7e572d130c1abda8afd8e7041be9a560af9ad..dcbe8a668c36025d33d3da773658ba1dfd123603 100644 (file)
@@ -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)));