[gaim-migrate @ 15952]

Sun, 26 Mar 2006 17:45:53 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Sun, 26 Mar 2006 17:45:53 +0000
changeset 13574
433001d94e3e
parent 13573
b054b0e348fe
child 13575
713c7b8bc8f6

[gaim-migrate @ 15952]
Björn pointed out on gaim-i18n that the instructions are not translated.
For users who might not speak English (or whatever language the server
configuration file is in), it seems worthwhile to flag that text as coming
from the server.

src/protocols/jabber/buddy.c file | annotate | diff | comparison | revisions
--- a/src/protocols/jabber/buddy.c	Sun Mar 26 16:19:19 2006 +0000
+++ b/src/protocols/jabber/buddy.c	Sun Mar 26 17:45:53 2006 +0000
@@ -1383,7 +1383,11 @@
 		gaim_request_fields_add_group(fields, group);
 
 		if((instnode = xmlnode_get_child(query, "instructions")))
-			instructions = xmlnode_get_data(instnode);
+		{
+			char *tmp = xmlnode_get_data(instnode);
+			instructions = g_strdup_printf(_("Server Instructions: %s"), tmp);
+			g_free(tmp);
+		}
 		else
 			instructions = g_strdup(_("Fill in one or more fields to search "
 						"for any matching Jabber users."));

mercurial