[gaim-migrate @ 12749]

Tue, 31 May 2005 23:04:33 +0000

author
Evan Schoenberg <evands@pidgin.im>
date
Tue, 31 May 2005 23:04:33 +0000
changeset 10949
b2949f5fc512
parent 10948
3a55085a2f33
child 10950
72a6cc0fc7a8

[gaim-migrate @ 12749]
sf patch #1209197, from Evan Schoenberg
"Consistency in text of authorization request dialogs"

committer: Mark Doliner <markdoliner@pidgin.im>

src/protocols/jabber/presence.c file | annotate | diff | comparison | revisions
src/protocols/oscar/oscar.c file | annotate | diff | comparison | revisions
--- a/src/protocols/jabber/presence.c	Fri May 27 23:23:44 2005 +0000
+++ b/src/protocols/jabber/presence.c	Tue May 31 23:04:33 2005 +0000
@@ -282,7 +282,11 @@
 		jb->error_msg = msg ? msg : g_strdup(_("Unknown Error in presence"));
 	} else if(type && !strcmp(type, "subscribe")) {
 		struct _jabber_add_permit *jap = g_new0(struct _jabber_add_permit, 1);
-		char *msg = g_strdup_printf(_("The user %s wants to add you to their buddy list."), from);
+		char *msg;
+
+		msg = g_strdup_printf(_("The user %s wants to add %s to his or "
+								"her buddy list."),
+							  from, gaim_account_get_username(js->gc->account));
 		jap->gc = js->gc;
 		jap->who = g_strdup(from);
 
--- a/src/protocols/oscar/oscar.c	Fri May 27 23:23:44 2005 +0000
+++ b/src/protocols/oscar/oscar.c	Tue May 31 23:04:33 2005 +0000
@@ -3832,7 +3832,10 @@
 		case 0x06: { /* Someone requested authorization */
 			if (i >= 6) {
 				struct name_data *data = g_new(struct name_data, 1);
-				gchar *dialog_msg = g_strdup_printf(_("The user %u wants to add you to their buddy list for the following reason:\n%s"), args->uin, msg2[5] ? msg2[5] : _("No reason given."));
+				gchar *dialog_msg = g_strdup_printf(
+													_("The user %u wants to add %s to their buddy list for the following reason:\n%s"), 
+													args->uin, gaim_account_get_username(gc->account),
+													(msg2[5] ? msg2[5] : _("No reason given.")));
 				gaim_debug_info("oscar",
 						   "Received an authorization request from UIN %u\n",
 						   args->uin);
@@ -6373,7 +6376,11 @@
 	else
 		nombre = g_strdup(sn);
 
-	dialog_msg = g_strdup_printf(_("The user %s wants to add you to their buddy list for the following reason:\n%s"), nombre, msg ? msg : _("No reason given."));
+	dialog_msg = g_strdup_printf(
+								 _("The user %s wants to add %s to their buddy list for the following reason:\n%s"), 
+								 nombre, gaim_account_get_username(gc->account),
+								 (msg ? msg : _("No reason given.")));
+
 	data = g_new(struct name_data, 1);
 	data->gc = gc;
 	data->name = g_strdup(sn);

mercurial