changeset 4195:4a0837c49d85

[gaim-migrate @ 4426] Nicola's Lichtmaier (niqueco) provides more _()'s committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 04 Jan 2003 14:32:13 +0000
parents 9325df841a40
children 422512cf6488
files src/log.c
diffstat 1 files changed, 28 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/src/log.c	Sat Jan 04 06:11:37 2003 +0000
+++ b/src/log.c	Sat Jan 04 14:32:13 2003 +0000
@@ -2,6 +2,15 @@
  * Function to remove a log file entry
  * ---------------------------------------------------
  */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+#include <string.h>
+
+#ifndef _WIN32
+#include <unistd.h>
+#endif
+
 #include "gaim.h"
 #include "core.h"
 #include "multi.h"
@@ -331,70 +340,70 @@
 	if (why & OPT_LOG_MY_SIGNON) {
 		switch (what) {
 		case log_signon:
-			g_snprintf(text, sizeof(text), "+++ %s (%s) signed on @ %s",
+			g_snprintf(text, sizeof(text), _("+++ %s (%s) signed on @ %s"),
 				   gc->username, gc->prpl->name, full_date());
 			g_snprintf(html, sizeof(html), "<B>%s</B>", text);
 			break;
 		case log_signoff:
-			g_snprintf(text, sizeof(text), "+++ %s (%s) signed off @ %s",
+			g_snprintf(text, sizeof(text), _("+++ %s (%s) signed off @ %s"),
 				   gc->username, gc->prpl->name, full_date());
 			g_snprintf(html, sizeof(html), "<I><FONT COLOR=GRAY>%s</FONT></I>", text);
 			break;
 		case log_away:
-			g_snprintf(text, sizeof(text), "+++ %s (%s) changed away state @ %s",
+			g_snprintf(text, sizeof(text), _("+++ %s (%s) changed away state @ %s"),
 				   gc->username, gc->prpl->name, full_date());
 			g_snprintf(html, sizeof(html), "<FONT COLOR=OLIVE>%s</FONT>", text);
 			break;
 		case log_back:
-			g_snprintf(text, sizeof(text), "+++ %s (%s) came back @ %s",
+			g_snprintf(text, sizeof(text), _("+++ %s (%s) came back @ %s"),
 				   gc->username, gc->prpl->name, full_date());
 			g_snprintf(html, sizeof(html), "%s", text);
 			break;
 		case log_idle:
-			g_snprintf(text, sizeof(text), "+++ %s (%s) became idle @ %s",
+			g_snprintf(text, sizeof(text), _("+++ %s (%s) became idle @ %s"),
 				   gc->username, gc->prpl->name, full_date());
 			g_snprintf(html, sizeof(html), "<FONT COLOR=GRAY>%s</FONT>", text);
 			break;
 		case log_unidle:
-			g_snprintf(text, sizeof(text), "+++ %s (%s) returned from idle @ %s",
+			g_snprintf(text, sizeof(text), _("+++ %s (%s) returned from idle @ %s"),
 				   gc->username, gc->prpl->name, full_date());
 			g_snprintf(html, sizeof(html), "%s", text);
 			break;
 		case log_quit:
-			g_snprintf(text, sizeof(text), "+++ Program exit @ %s", full_date());
+			g_snprintf(text, sizeof(text), _("+++ Program exit @ %s"), full_date());
 			g_snprintf(html, sizeof(html), "<I><FONT COLOR=GRAY>%s</FONT></I>", text);
 			break;
 		}
 	} else if (strcmp(who->name, who->show)) {
 		switch (what) {
 		case log_signon:
-			g_snprintf(text, sizeof(text), "%s (%s) reported that %s (%s) signed on @ %s",
+			g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) signed on @ %s"),
 				   gc->username, gc->prpl->name, who->show, who->name, full_date());
 			g_snprintf(html, sizeof(html), "<B>%s</B>", text);
 			break;
 		case log_signoff:
-			g_snprintf(text, sizeof(text), "%s (%s) reported that %s (%s) signed off @ %s",
+			g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) signed off @ %s"),
 				   gc->username, gc->prpl->name, who->show, who->name, full_date());
 			g_snprintf(html, sizeof(html), "<I><FONT COLOR=GRAY>%s</FONT></I>", text);
 			break;
 		case log_away:
-			g_snprintf(text, sizeof(text), "%s (%s) reported that %s (%s) went away @ %s",
+			g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) went away @ %s"),
 				   gc->username, gc->prpl->name, who->show, who->name, full_date());
 			g_snprintf(html, sizeof(html), "<FONT COLOR=OLIVE>%s</FONT>", text);
 			break;
 		case log_back:
-			g_snprintf(text, sizeof(text), "%s (%s) reported that %s (%s) came back @ %s",
+			g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) came back @ %s"),
 				   gc->username, gc->prpl->name, who->show, who->name, full_date());
 			g_snprintf(html, sizeof(html), "%s", text);
 			break;
 		case log_idle:
-			g_snprintf(text, sizeof(text), "%s (%s) reported that %s (%s) became idle @ %s",
+			g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) became idle @ %s"),
 				   gc->username, gc->prpl->name, who->show, who->name, full_date());
 			g_snprintf(html, sizeof(html), "<FONT COLOR=GRAY>%s</FONT>", text);
 			break;
 		case log_unidle:
 			g_snprintf(text, sizeof(text),
-				   "%s (%s) reported that %s (%s) returned from idle @ %s", gc->username,
+				   _("%s (%s) reported that %s (%s) returned from idle @ %s"), gc->username,
 				   gc->prpl->name, who->show, who->name, full_date());
 			g_snprintf(html, sizeof(html), "%s", text);
 			break;
@@ -406,33 +415,33 @@
 	} else {
 		switch (what) {
 		case log_signon:
-			g_snprintf(text, sizeof(text), "%s (%s) reported that %s signed on @ %s",
+			g_snprintf(text, sizeof(text), _("%s (%s) reported that %s signed on @ %s"),
 				   gc->username, gc->prpl->name, who->name, full_date());
 			g_snprintf(html, sizeof(html), "<B>%s</B>", text);
 			break;
 		case log_signoff:
-			g_snprintf(text, sizeof(text), "%s (%s) reported that %s signed off @ %s",
+			g_snprintf(text, sizeof(text), _("%s (%s) reported that %s signed off @ %s"),
 				   gc->username, gc->prpl->name, who->name, full_date());
 			g_snprintf(html, sizeof(html), "<I><FONT COLOR=GRAY>%s</FONT></I>", text);
 			break;
 		case log_away:
-			g_snprintf(text, sizeof(text), "%s (%s) reported that %s went away @ %s",
+			g_snprintf(text, sizeof(text), _("%s (%s) reported that %s went away @ %s"),
 				   gc->username, gc->prpl->name, who->name, full_date());
 			g_snprintf(html, sizeof(html), "<FONT COLOR=OLIVE>%s</FONT>", text);
 			break;
 		case log_back:
-			g_snprintf(text, sizeof(text), "%s (%s) reported that %s came back @ %s",
+			g_snprintf(text, sizeof(text), _("%s (%s) reported that %s came back @ %s"),
 				   gc->username, gc->prpl->name, who->name, full_date());
 			g_snprintf(html, sizeof(html), "%s", text);
 			break;
 		case log_idle:
-			g_snprintf(text, sizeof(text), "%s (%s) reported that %s became idle @ %s",
+			g_snprintf(text, sizeof(text), _("%s (%s) reported that %s became idle @ %s"),
 				   gc->username, gc->prpl->name, who->name, full_date());
 			g_snprintf(html, sizeof(html), "<FONT COLOR=GRAY>%s</FONT>", text);
 			break;
 		case log_unidle:
 			g_snprintf(text, sizeof(text),
-				   "%s (%s) reported that %s returned from idle @ %s", gc->username,
+				   _("%s (%s) reported that %s returned from idle @ %s"), gc->username,
 				   gc->prpl->name, who->name, full_date());
 			g_snprintf(html, sizeof(html), "%s", text);
 			break;