[gnome-initial-setup] summary: Don't require translations for "Start using GNOME 3"



commit 14701f792b5a43b5375a296d4b1051b07935b312
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Oct 31 16:52:31 2013 -0400

    summary: Don't require translations for "Start using GNOME 3"
    
    Just use "GNOME 3" as the default distro name

 .../pages/summary/gis-summary-page.c               |   16 ++++++++--------
 .../pages/summary/gis-summary-page.ui              |    1 -
 2 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/gnome-initial-setup/pages/summary/gis-summary-page.c 
b/gnome-initial-setup/pages/summary/gis-summary-page.c
index c418d8c..d500c02 100644
--- a/gnome-initial-setup/pages/summary/gis-summary-page.c
+++ b/gnome-initial-setup/pages/summary/gis-summary-page.c
@@ -312,6 +312,7 @@ update_distro_name (GisSummaryPage *page)
   GisSummaryPagePrivate *priv = gis_summary_page_get_instance_private (page);
   char *buffer;
   char *name;
+  char *label;
 
   name = NULL;
 
@@ -321,14 +322,13 @@ update_distro_name (GisSummaryPage *page)
       g_free (buffer);
     }
 
-  if (name)
-    {
-      gchar *label;
-      label = g_strdup_printf (_("_Start using %s"), name);
-      gtk_label_set_label (GTK_LABEL (priv->start_button_label), label);
-      g_free (label);
-      g_free (name);
-    }
+  if (!name)
+    name = g_strdup ("GNOME 3");
+
+  label = g_strdup_printf (_("_Start using %s"), name);
+  gtk_label_set_label (GTK_LABEL (priv->start_button_label), label);
+  g_free (label);
+  g_free (name);
 }
 
 static void
diff --git a/gnome-initial-setup/pages/summary/gis-summary-page.ui 
b/gnome-initial-setup/pages/summary/gis-summary-page.ui
index 93cb4e2..4783958 100644
--- a/gnome-initial-setup/pages/summary/gis-summary-page.ui
+++ b/gnome-initial-setup/pages/summary/gis-summary-page.ui
@@ -47,7 +47,6 @@
                 <property name="can_focus">False</property>
                 <property name="xpad">4</property>
                 <property name="ypad">4</property>
-                <property name="label" translatable="yes">_Start using GNOME 3</property>
                 <property name="use_underline">True</property>
               </object>
             </child>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]