From f971541da6eafd34428c318ad01c3de647057c5b Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 30 Jul 2007 07:52:48 +0000 Subject: 2007-07-30 Part of fix for bug #360461 - Avoid markup in translatable messages svn path=/trunk/; revision=33894 --- mail/em-format-html.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mail/em-format-html.c') diff --git a/mail/em-format-html.c b/mail/em-format-html.c index d554b1e288..3334e65ce3 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -1707,10 +1707,14 @@ efh_format_header(EMFormat *emf, CamelStream *stream, CamelMedium *part, struct msg_offset += (local.tm_hour * 60) + local.tm_min; if (msg_offset >= (24 * 60) || msg_offset < 0) { /* translators: strftime format for local time equivalent in Date header display, with day */ - e_utf8_strftime(buf, sizeof(buf), _(" (%a, %R %Z)"), &local); + gchar *msg = g_strdup_printf("%s", _(" (%a, %R %Z)")); + e_utf8_strftime(buf, sizeof(buf), msg, &local); + g_free(msg); } else { /* translators: strftime format for local time equivalent in Date header display, without day */ - e_utf8_strftime(buf, sizeof(buf), _(" (%R %Z)"), &local); + gchar *msg = g_strdup_printf("%s", _(" (%R %Z)")); + e_utf8_strftime(buf, sizeof(buf), msg, &local); + g_free(msg); } html = camel_text_to_html(txt, efh->text_html_flags, 0); -- cgit v1.2.3