From ff6ebb305f3e83e866b85c3126eb7cad79976706 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 19 Aug 2003 14:14:29 +0000 Subject: Added a comment for translators. 2003-08-19 Not Zed * mail-callbacks.c (mail_generate_reply): Added a comment for translators. 2003-08-19 David Woodhouse * mail-callbacks.c (mail_generate_reply): Add a timezone offset to the attribution string. svn path=/trunk/; revision=22284 --- mail/ChangeLog | 10 ++++++++++ mail/mail-callbacks.c | 12 +++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 69d9f59aef..e7c7e92570 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,13 @@ +2003-08-19 Not Zed + + * mail-callbacks.c (mail_generate_reply): Added a comment for + translators. + +2003-08-19 David Woodhouse + + * mail-callbacks.c (mail_generate_reply): Add a timezone offset to + the attribution string. + 2003-08-19 Not Zed * mail-format.c (write_date): Added translation for day and 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); -- cgit v1.2.3