[giggle] Remove markup from translatable strings



commit 1fd8c92ff9c925c4cbc58c9b8759207ebc6028b5
Author: Claude Paroz <claude 2xlibre net>
Date:   Sat May 15 09:45:40 2010 +0200

    Remove markup from translatable strings

 data/main-window.ui       |    6 ++++--
 src/giggle-view-summary.c |   10 ++++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/data/main-window.ui b/data/main-window.ui
index 63cde80..bb4562f 100644
--- a/data/main-window.ui
+++ b/data/main-window.ui
@@ -78,8 +78,10 @@
               <object class="GtkLabel" id="label12">
                 <property name="visible">True</property>
                 <property name="xalign">0</property>
-                <property name="label" translatable="yes">&lt;b&gt;Branches&lt;/b&gt;</property>
-                <property name="use_markup">True</property>
+                <property name="label" translatable="yes">Branches</property>
+                <attributes>
+                  <attribute name="weight" value="bold"/>
+                </attributes>
               </object>
               <packing>
                 <property name="expand">False</property>
diff --git a/src/giggle-view-summary.c b/src/giggle-view-summary.c
index 7afd853..bf394e6 100644
--- a/src/giggle-view-summary.c
+++ b/src/giggle-view-summary.c
@@ -95,6 +95,7 @@ create_summary_page (GiggleViewSummaryPriv *priv)
 {
 	GtkWidget *page;
 	GtkWidget *label;
+	gchar     *markup;
 
 	page = gtk_vbox_new (FALSE, 6);
 
@@ -114,7 +115,9 @@ create_summary_page (GiggleViewSummaryPriv *priv)
 
 	label = gtk_label_new (NULL);
 	gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
-	gtk_label_set_markup (GTK_LABEL (label), _("<b>Description:</b>"));
+	markup = g_strdup_printf ("<b>%s</b>", _("Description:"));
+	gtk_label_set_markup (GTK_LABEL (label), markup);
+	g_free (markup);
 	gtk_box_pack_start (GTK_BOX (page), label, FALSE, FALSE, 0);
 
 	priv->description_editor = giggle_description_editor_new ();
@@ -152,6 +155,7 @@ static GtkWidget *
 create_remotes_page (GiggleViewSummaryPriv *priv)
 {
 	GtkWidget *page, *label, *scrolled_window;
+	gchar     *markup;
 
 	/* add remotes view */
 	priv->remotes_view = giggle_remotes_view_new ();
@@ -160,7 +164,9 @@ create_remotes_page (GiggleViewSummaryPriv *priv)
 	/* FIXME: string should not contain markup */
 	label = gtk_label_new (NULL);
 	gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
-	gtk_label_set_markup (GTK_LABEL (label), _("<b>Remotes:</b>"));
+	markup = g_strdup_printf ("<b>%s</b>", _("Remotes:"));
+	gtk_label_set_markup (GTK_LABEL (label), markup);
+	g_free (markup);
 	gtk_box_pack_start (GTK_BOX (page), label, FALSE, FALSE, 0);
 
 	scrolled_window = gtk_scrolled_window_new (NULL, NULL);



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