[Commits] [SCM] claws branch, master, updated. 3.13.0-90-ga7ff442

mones at claws-mail.org mones at claws-mail.org
Wed Dec 2 13:37:56 CET 2015


The branch, master has been updated
       via  a7ff442c30cbb2cd2819ebcb7f211a4d3a8bba3d (commit)
      from  facfb6174d9b5b97a144627ab44dbb61611ee882 (commit)

Summary of changes:
 src/plugins/attachwarner/attachwarner.c |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit a7ff442c30cbb2cd2819ebcb7f211a4d3a8bba3d
Author: Ricardo Mones <ricardo at mones.org>
Date:   Wed Dec 2 01:03:06 2015 +0100

    Remove markup from translatable strings

diff --git a/src/plugins/attachwarner/attachwarner.c b/src/plugins/attachwarner/attachwarner.c
index af882f3..b1ef1b0 100644
--- a/src/plugins/attachwarner/attachwarner.c
+++ b/src/plugins/attachwarner/attachwarner.c
@@ -203,6 +203,7 @@ static gboolean attwarn_before_send_hook(gpointer source, gpointer data)
 		AlertValue aval;
 		gchar *button_label;
 		gchar *message;
+		gchar *bold_text;
 		
 		debug_print("user has to decide\n");
 		if (compose->sending)
@@ -210,14 +211,19 @@ static gboolean attwarn_before_send_hook(gpointer source, gpointer data)
 		else
 			button_label = g_strconcat("+", _("_Queue"), NULL);
 
+		bold_text = g_strdup_printf("<span weight=\"bold\">%.20s</span>...",
+				mention->context);
 		message = g_strdup_printf(
-				_("An attachment is mentioned in the mail you're sending, but no file was attached. Mention appears on line %d, which begins with text: <span weight=\"bold\">%.20s</span>...\n\n%s it anyway?"),
+				_("An attachment is mentioned in the mail you're sending, "
+				"but no file was attached. Mention appears on line %d, "
+				"which begins with text: %s\n\n%s"),
 				mention->line,
-				mention->context,
-				compose->sending?_("Send"):_("Queue"));
+				bold_text,
+				compose->sending?_("Send it anyway?"):_("Queue it anyway?"));
 		aval = alertpanel(_("Attachment warning"), message,
 				  GTK_STOCK_CANCEL, button_label, NULL);
 		g_free(message);
+		g_free(bold_text);
 		if (aval != G_ALERTALTERNATE)
 			return TRUE;
 	}

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list