# HG changeset patch # User Luke Schierer # Date 1041690733 0 # Node ID 4a0837c49d855d8abcca52503e7ca33afc0a0827 # Parent 9325df841a40bb121c76a7825d64a32dae54847a [gaim-migrate @ 4426] Nicola's Lichtmaier (niqueco) provides more _()'s committer: Tailor Script diff -r 9325df841a40 -r 4a0837c49d85 src/log.c --- 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 +#endif +#include + +#ifndef _WIN32 +#include +#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), "%s", 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), "%s", 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), "%s", 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), "%s", 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), "%s", 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), "%s", 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), "%s", 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), "%s", 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), "%s", 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), "%s", 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), "%s", 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), "%s", 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), "%s", 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;