diff options
author | Milan Crha <mcrha@redhat.com> | 2010-04-23 17:20:50 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-04-23 17:20:50 +0800 |
commit | 91020b05a3107e4ae51d7aa33dc0bebe5b668e6d (patch) | |
tree | e3b2445f54a7d74e5ff00ebbd8ecfa70235ed016 /mail/em-format-html.c | |
parent | edf6286a38279e6db82dee4da50e94c587f06e02 (diff) | |
download | gsoc2013-evolution-91020b05a3107e4ae51d7aa33dc0bebe5b668e6d.tar.gz gsoc2013-evolution-91020b05a3107e4ae51d7aa33dc0bebe5b668e6d.tar.zst gsoc2013-evolution-91020b05a3107e4ae51d7aa33dc0bebe5b668e6d.zip |
Bug #360461 - Avoid markup in translatable messages
Diffstat (limited to 'mail/em-format-html.c')
-rw-r--r-- | mail/em-format-html.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c index f89c89a6b9..b521264bd7 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -2587,16 +2587,20 @@ efh_format_headers(EMFormatHTML *efh, CamelStream *stream, CamelMedium *part) } if (header_sender && header_from && mail_from_delegate) { + gchar *bold_sender, *bold_from; camel_stream_printf(stream, "<tr><td><table border=1 width=\"100%%\" cellspacing=2 cellpadding=2><tr>"); if (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL) camel_stream_printf (stream, "<td align=\"right\" width=\"100%%\">"); else camel_stream_printf (stream, "<td align=\"left\" width=\"100%%\">"); + bold_sender = g_strconcat ("<b>", header_sender, "</b>", NULL); + bold_from = g_strconcat ("<b>", header_from, "</b>", NULL); /* To translators: This message suggests to the receipients that the sender of the mail is - different from the one listed in From field. - */ - camel_stream_printf(stream, _("This message was sent by <b>%s</b> on behalf of <b>%s</b>"), header_sender, header_from); + different from the one listed in From field. */ + camel_stream_printf(stream, _("This message was sent by %s on behalf of %s"), bold_sender, bold_from); camel_stream_printf(stream, "</td></tr></table></td></tr>"); + g_free (bold_sender); + g_free (bold_from); } g_free (header_sender); |