# HG changeset patch # User Mark Doliner # Date 1117580673 0 # Node ID 1adca5a37fb8d0b107b85fa8ad6dec11bc70dd00 # Parent 747ef488c600f26879c71ec5da9b333243985561 [gaim-migrate @ 12749] sf patch #1209197, from Evan Schoenberg "Consistency in text of authorization request dialogs" committer: Tailor Script diff -r 747ef488c600 -r 1adca5a37fb8 src/protocols/jabber/presence.c --- 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); diff -r 747ef488c600 -r 1adca5a37fb8 src/protocols/oscar/oscar.c --- 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);