diff options
author | Milan Crha <mcrha@src.gnome.org> | 2007-07-30 15:52:48 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2007-07-30 15:52:48 +0800 |
commit | f971541da6eafd34428c318ad01c3de647057c5b (patch) | |
tree | 9fe3ddcda5aef793cf3b580794794f0d6b24f1ee /mail/em-format-html.c | |
parent | c3381b5b2e4ab4428a7421f23cab04bdef600a17 (diff) | |
download | gsoc2013-evolution-f971541da6eafd34428c318ad01c3de647057c5b.tar.gz gsoc2013-evolution-f971541da6eafd34428c318ad01c3de647057c5b.tar.zst gsoc2013-evolution-f971541da6eafd34428c318ad01c3de647057c5b.zip |
2007-07-30 Part of fix for bug #360461 - Avoid markup in translatable messages
svn path=/trunk/; revision=33894
Diffstat (limited to 'mail/em-format-html.c')
-rw-r--r-- | mail/em-format-html.c | 8 |
1 files changed, 6 insertions, 2 deletions
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), _("<I> (%a, %R %Z)</I>"), &local); + gchar *msg = g_strdup_printf("<I>%s</I>", _(" (%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), _("<I> (%R %Z)</I>"), &local); + gchar *msg = g_strdup_printf("<I>%s</I>", _(" (%R %Z)")); + e_utf8_strftime(buf, sizeof(buf), msg, &local); + g_free(msg); } html = camel_text_to_html(txt, efh->text_html_flags, 0); |