Mercurial > pidgin
diff src/protocols/irc/irc.c @ 5236:0d4b8ca97c17
[gaim-migrate @ 5606]
Bjoern Voigt writes:
"I made some i18n fixes and updates for the German translation. The
i18n fixes include:
- new i18n files in po/POTFILES.in
- i18n fixes for the Jabber plugin
- i18n fixes for IRC plugin"
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 26 Apr 2003 20:42:30 +0000 |
parents | 890b29f00b68 |
children | 0e2cc6379618 |
line wrap: on
line diff
--- a/src/protocols/irc/irc.c Sat Apr 26 20:31:33 2003 +0000 +++ b/src/protocols/irc/irc.c Sat Apr 26 20:42:30 2003 +0000 @@ -931,31 +931,34 @@ switch (num) { case 311: - id->liststr = g_string_append(id->liststr, "<b>User: </b>"); + g_snprintf(tmp, sizeof(tmp), "<b>%s: </b>", _("User")); + id->liststr = g_string_append(id->liststr, tmp); break; case 312: - id->liststr = g_string_append(id->liststr, "<b>Server: </b>"); + g_snprintf(tmp, sizeof(tmp), "<b>%s: </b>", _("Server")); + id->liststr = g_string_append(id->liststr, tmp); break; case 313: - g_snprintf(tmp, sizeof(tmp), "<b>IRC Operator:</b> %s ", word[4]); + g_snprintf(tmp, sizeof(tmp), "<b>%s:</b> %s ", _("IRC Operator"), word[4]); id->liststr = g_string_append(id->liststr, tmp); break; case 314: - id->liststr = g_string_append(id->liststr, "<b>User: </b>"); - g_snprintf(tmp, sizeof(tmp), "<b>%s</b> (%s@%s) %s", - word[4], word[5], word[6], word_eol[8]); + g_snprintf(tmp, sizeof(tmp), "<b>%s: </b><b>%s</b> (%s@%s) %s", + _("User"), word[4], word[5], word[6], word_eol[8]); id->liststr = g_string_append(id->liststr, tmp); return; case 317: - id->liststr = g_string_append(id->liststr, "<b>Idle Time: </b>"); + g_snprintf(tmp, sizeof(tmp), "<b>%s: </b>", _("Idle Time")); + id->liststr = g_string_append(id->liststr, tmp); break; case 319: - id->liststr = g_string_append(id->liststr, "<b>Channels: </b>"); + g_snprintf(tmp, sizeof(tmp), "<b>%s: </b>", _("Channels")); + id->liststr = g_string_append(id->liststr, tmp); break; /* Numeric 320 is used by the freenode irc network for showing * that a user is identified to services (Jason Straw <misato@wopn.org>)*/ case 320: - g_snprintf(tmp, sizeof(tmp), "%s is an Identified User", word[4]); + g_snprintf(tmp, sizeof(tmp), _("%s is an Identified User"), word[4]); id->liststr = g_string_append(id->liststr, tmp); return; default: @@ -970,7 +973,7 @@ time_t signon = atol(strchr(word_eol[5], ' ')); g_snprintf(tmp, sizeof(tmp), - "%ld seconds [signon: %s]", (idle / 1000), ctime(&signon)); + _("%ld seconds [signon: %s]"), (idle / 1000), ctime(&signon)); id->liststr = g_string_append(id->liststr, tmp); } else @@ -1009,6 +1012,7 @@ struct irc_data *id = gc->proto_data; char *text = word_eol[3]; int n = atoi(word[2]); + char tmp[1024]; if (!g_ascii_strncasecmp(gc->displayname, text, strlen(gc->displayname))) text += strlen(gc->displayname) + 1; @@ -1028,7 +1032,8 @@ break; case 301: /* RPL_AWAY */ if (id->in_whois) { - id->liststr = g_string_append(id->liststr, "<BR><b>Away: </b>"); + g_snprintf(tmp, sizeof(tmp), "<BR><b>%s: </b>", _("Away")); + id->liststr = g_string_append(id->liststr, tmp); if (word_eol[5][0] == ':') id->liststr = g_string_append(id->liststr, word_eol[5] + 1);