aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-08-19 22:14:29 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-08-19 22:14:29 +0800
commitff6ebb305f3e83e866b85c3126eb7cad79976706 (patch)
tree36122c0c64b265a179fcd0fa40942bc2edd8c8ea /mail/mail-callbacks.c
parentfee1a9752eabf8f5fc08b952adf3255415dea241 (diff)
downloadgsoc2013-evolution-ff6ebb305f3e83e866b85c3126eb7cad79976706.tar
gsoc2013-evolution-ff6ebb305f3e83e866b85c3126eb7cad79976706.tar.gz
gsoc2013-evolution-ff6ebb305f3e83e866b85c3126eb7cad79976706.tar.bz2
gsoc2013-evolution-ff6ebb305f3e83e866b85c3126eb7cad79976706.tar.lz
gsoc2013-evolution-ff6ebb305f3e83e866b85c3126eb7cad79976706.tar.xz
gsoc2013-evolution-ff6ebb305f3e83e866b85c3126eb7cad79976706.tar.zst
gsoc2013-evolution-ff6ebb305f3e83e866b85c3126eb7cad79976706.zip
Added a comment for translators.
2003-08-19 Not Zed <NotZed@Ximian.com> * mail-callbacks.c (mail_generate_reply): Added a comment for translators. 2003-08-19 David Woodhouse <dwmw2@infradead.org> * mail-callbacks.c (mail_generate_reply): Add a timezone offset to the attribution string. svn path=/trunk/; revision=22284
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 56c32ad662..d018febeb0 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -995,6 +995,7 @@ mail_generate_reply (CamelFolder *folder, CamelMimeMessage *message, const char
GConfClient *gconf;
EIterator *iter;
time_t date;
+ int date_ofs;
char *url;
gconf = mail_config_get_gconf_client ();
@@ -1189,9 +1190,14 @@ mail_generate_reply (CamelFolder *folder, CamelMimeMessage *message, const char
name = _("an unknown sender");
}
- date = camel_mime_message_get_date (message, NULL);
- e_utf8_strftime (format, sizeof (format), _("On %a, %Y-%m-%d at %H:%M, %%s wrote:"), localtime (&date));
- text = mail_tool_quote_message (message, format, name && *name ? name : address);
+ date = camel_mime_message_get_date (message, &date_ofs);
+ /* Convert to UTC */
+ date += (date_ofs / 100) * 60 * 60;
+ date += (date_ofs % 100) * 60;
+
+ /* translators: attribution string used when quoting messages */
+ e_utf8_strftime (format, sizeof (format), _("On %a, %Y-%m-%d at %H:%M %%+05d, %%s wrote:"), gmtime (&date));
+ text = mail_tool_quote_message (message, format, date_ofs, name && *name ? name : address);
mail_ignore (composer, name, address);
if (text) {
e_msg_composer_set_body_text (composer, text);