pidgin: 13cd7e63: Use a more friendly format for the times...

sadrul at pidgin.im sadrul at pidgin.im
Fri Jul 11 02:35:49 EDT 2008


-----------------------------------------------------------------
Revision: 13cd7e63f2ef3cff7b18d5b797b9064f2ce6ede6
Ancestor: 99fe11b8da675f3b74b853ea29a16d8c9564cb95
Author: sadrul at pidgin.im
Date: 2008-07-11T06:35:32
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/13cd7e63f2ef3cff7b18d5b797b9064f2ce6ede6

Modified files:
        libpurple/protocols/irc/msgs.c

ChangeLog: 

Use a more friendly format for the timestamp in the banlist.
It's weird to compute time in millions of seconds.

-------------- next part --------------
============================================================
--- libpurple/protocols/irc/msgs.c	ce0244abc29d67d974f72fa1c46ea62c14488743
+++ libpurple/protocols/irc/msgs.c	2edff1a3e2eb8e7d3a2cce08a575165d5d4cbff1
@@ -215,10 +215,8 @@ void irc_msg_ban(struct irc_conn *irc, c
 			/* This is an extended syntax, not in RFC 1459 */
 			int t1 = atoi(args[4]);
 			time_t t2 = time(NULL);
-			msg = g_strdup_printf(ngettext("Ban on %s by %s, set %ld second ago",
-						       "Ban on %s by %s, set %ld seconds ago",
-						       t2 - t1),
-			                      args[2], args[3], t2 - t1);
+			msg = g_strdup_printf(_("Ban on %s by %s, set %s ago"),
+			                      args[2], args[3], purple_str_seconds_to_string(t2 - t1));
 		} else {
 			msg = g_strdup_printf(_("Ban on %s"), args[2]);
 		}


More information about the Commits mailing list