diff options
author | marcus <marcus@FreeBSD.org> | 2003-04-07 20:00:40 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-04-07 20:00:40 +0000 |
commit | 8f15e8422f601b07ac282b4eb2cecfad47b175c2 (patch) | |
tree | 188f11b84d1af1e8c7898998a62cc409beac532d /net-im/gaim/files | |
parent | 598deb38e848666f75cce44354e87cf29671e43e (diff) | |
download | FreeBSD-ports-8f15e8422f601b07ac282b4eb2cecfad47b175c2.zip FreeBSD-ports-8f15e8422f601b07ac282b4eb2cecfad47b175c2.tar.gz |
Add I18N conversion to IRC topic messages.
PR: 50675
Submitted by: Alexander Nedotsukov <bland@mail.ru>
Diffstat (limited to 'net-im/gaim/files')
-rw-r--r-- | net-im/gaim/files/patch-src_protocols_irc_irc.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/net-im/gaim/files/patch-src_protocols_irc_irc.c b/net-im/gaim/files/patch-src_protocols_irc_irc.c new file mode 100644 index 0000000..e042b2e --- /dev/null +++ b/net-im/gaim/files/patch-src_protocols_irc_irc.c @@ -0,0 +1,35 @@ +--- src/protocols/irc/irc.c.orig Wed Mar 12 11:50:45 2003 ++++ src/protocols/irc/irc.c Wed Mar 12 12:20:56 2003 +@@ -699,9 +699,11 @@ + + if ((c = irc_find_chat(gc, text))) { + char buf[IRC_BUF_LEN]; +- gaim_chat_set_topic(GAIM_CHAT(c), NULL, po); ++ char *utf8 = irc_recv_convert(gc, po); ++ gaim_chat_set_topic(GAIM_CHAT(c), NULL, utf8); + g_snprintf(buf, sizeof(buf), _("<B>%s has changed the topic to: %s</B>"), +- text, po); ++ text, utf8); ++ g_free(utf8); + + gaim_conversation_write(c, NULL, buf, -1, WFLAG_SYSTEM, time(NULL)); + } +@@ -1616,12 +1618,14 @@ + { + struct gaim_conversation *c = irc_find_chat(gc, word[3]); + char *topic = *word_eol[4] == ':' ? word_eol[4] + 1 : word_eol[4]; +- char buf[IRC_BUF_LEN]; + + if (c) { +- gaim_chat_set_topic(GAIM_CHAT(c), nick, topic); ++ char buf[IRC_BUF_LEN]; ++ char *utf8 = irc_recv_convert(gc, topic); ++ gaim_chat_set_topic(GAIM_CHAT(c), nick, utf8); + g_snprintf(buf, sizeof(buf), +- _("<B>%s has changed the topic to: %s</B>"), nick, topic); ++ _("<B>%s has changed the topic to: %s</B>"), nick, utf8); ++ g_free(utf8); + + gaim_conversation_write(c, NULL, buf, -1, WFLAG_SYSTEM, time(NULL)); + } + |