[mutter] Reduce amount of markup in translated messages



commit 760a36aeee1d6b4a4a2a937d7b1c3af77a414db7
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jul 9 23:14:16 2012 -0400

    Reduce amount of markup in translated messages
    
    Markup in messages is fragile and tends to break in translations.
    This patch reduces the amount of markup as far as possible.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679660

 src/core/delete.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/core/delete.c b/src/core/delete.c
index a6d7018..5f3f674 100644
--- a/src/core/delete.c
+++ b/src/core/delete.c
@@ -108,8 +108,12 @@ delete_ping_timeout_func (MetaDisplay *display,
 
   /* Translators: %s is a window title */
   if (window_title)
-    tmp = g_markup_printf_escaped (_("<tt>%s</tt> is not responding."),
-                                   window_title);
+    {
+      gchar *bold;
+      bold = g_strconcat ("<tt>", window_title, "</tt>", NULL);
+      tmp = g_markup_printf_escaped (_("%s is not responding."), bold);
+      g_free (bold);
+    }
   else
     tmp = g_strdup (_("Application is not responding."));
 



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