diff src/protocols/irc/msgs.c @ 6351:ffb1b5003772

[gaim-migrate @ 6850] Bjoern Voigt writes: "I've prepared a new German translation. The patch i18n17.patch contains: - Updated German translation - added src/protocols/irc/{cmds.c,msgs.c,parse.c} to po/POTFILES.in - ngettext-support for src/protocols/irc/msgs.c (IRC idle times) I also found a number of bugs in src/gaim-remote.c. The patch gaim-remote1.patch contains: - parameter processing fix in gaim-remote (gaim-remote no longer segfaults on "gaim-remote uri") - gaim-remote now has correct error messages and return codes, if connection to gaim fails (gaim-remote is not longer silent, if gaim-remote uri 'aim:goim?screenname=Penguin&message=hello+world' failes, because gaim is not running) I also have a feature request for gaim-remote: "I want to have two commands in gaim-remote: - connect list|all: connects all specified accounts with auto-login - disconnect list|all: disconnects all specified accounts The commands will be especially useful for users with dialup connections. They could include gaim-remote in /etc/ppp/{ip-up,ip-down}. The auto-reconnection plugin doesn't solve the dialup-problem, because it generates to much error message windows over the time." Where can I place such a feature-request?" hhmm. that feature-request looks pretty placed ;-) committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 31 Jul 2003 23:49:12 +0000
parents 34c07f5f34a0
children 1fa4410d2e13
line wrap: on
line diff
--- a/src/protocols/irc/msgs.c	Thu Jul 31 23:21:36 2003 +0000
+++ b/src/protocols/irc/msgs.c	Thu Jul 31 23:49:12 2003 +0000
@@ -171,6 +171,7 @@
 	GaimConnection *gc;
 	GString *info;
 	char *str;
+	int idle_days, idle_hours, idle_minutes, idle_seconds;
 
 	if (!irc->whois.nick) {
 		gaim_debug(GAIM_DEBUG_WARNING, "irc", "Unexpected End of WHOIS for %s\n", args[1]);
@@ -205,9 +206,15 @@
 		g_free(irc->whois.channels);
 	}
 	if (irc->whois.idle) {
-		g_string_append_printf(info, _("<b>Idle for:</b> %d days, %02d:%02d:%02d<br>"),
-				       irc->whois.idle / 86400, (irc->whois.idle % 86400) / 3600,
-				       (irc->whois.idle % 3600) / 60, irc->whois.idle % 60);
+		idle_days=irc->whois.idle / 86400;
+		idle_hours=(irc->whois.idle % 86400) / 3600;
+		idle_minutes=(irc->whois.idle % 3600) / 60;
+		idle_seconds=irc->whois.idle % 60;
+		g_string_append_printf(info, ngettext(
+				       "<b>Idle for:</b> %d day, %02d:%02d:%02d<br>",
+				       "<b>Idle for:</b> %d days, %02d:%02d:%02d<br>",
+				       idle_days),
+				       idle_days, idle_hours, idle_minutes, idle_seconds);
 		g_string_append_printf(info, "<b>%s:</b> %s", _("Online since"), ctime(&irc->whois.signon));
 	}
 	if (!strcmp(irc->whois.nick, "Paco-Paco")) {