Mercurial > pidgin
comparison libpurple/protocols/qq/buddy_opt.c @ 24682:8f757b2139d2
String changes (a few of which I had already made, grumble grumble).
I tried to re-use strings that exist in other protocols as much as
possible. When calling purple_connection_update_progress() the strings
should not have ellipsis. When calling purple_connection_error_reason()
due to a keep alive timeout, do not include the number of seconds,
because there shouldn't be a reason for users to care
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 11 Dec 2008 07:17:32 +0000 |
parents | 1aca68fe730c |
children | 370fd1834371 |
comparison
equal
deleted
inserted
replaced
24681:662fdd4836aa | 24682:8f757b2139d2 |
---|---|
315 add_req->uid = uid; | 315 add_req->uid = uid; |
316 add_req->auth = NULL; | 316 add_req->auth = NULL; |
317 add_req->auth_len = 0; | 317 add_req->auth_len = 0; |
318 | 318 |
319 who = uid_to_purple_name(uid); | 319 who = uid_to_purple_name(uid); |
320 msg = g_strdup_printf(_("%u needs Q&A"), uid); | 320 msg = g_strdup_printf(_("%u requires verification"), uid); |
321 purple_request_input(gc, _("Add buddy Q&A"), msg, | 321 purple_request_input(gc, _("Add buddy question"), msg, |
322 _("Input answer here"), | 322 _("Enter answer here"), |
323 NULL, | 323 NULL, |
324 TRUE, FALSE, NULL, | 324 TRUE, FALSE, NULL, |
325 _("Send"), G_CALLBACK(add_buddy_question_cb), | 325 _("Send"), G_CALLBACK(add_buddy_question_cb), |
326 _("Cancel"), G_CALLBACK(buddy_req_cancel_cb), | 326 _("Cancel"), G_CALLBACK(buddy_req_cancel_cb), |
327 purple_connection_get_account(gc), who, NULL, | 327 purple_connection_get_account(gc), who, NULL, |
614 static void buddy_add_deny_cb(gpointer data) | 614 static void buddy_add_deny_cb(gpointer data) |
615 { | 615 { |
616 qq_buddy_req *add_req = (qq_buddy_req *)data; | 616 qq_buddy_req *add_req = (qq_buddy_req *)data; |
617 gchar *who = uid_to_purple_name(add_req->uid); | 617 gchar *who = uid_to_purple_name(add_req->uid); |
618 purple_request_input(add_req->gc, NULL, _("Authorization denied message:"), | 618 purple_request_input(add_req->gc, NULL, _("Authorization denied message:"), |
619 NULL, _("Sorry, You are not my style."), TRUE, FALSE, NULL, | 619 NULL, _("Sorry, you're not my style."), TRUE, FALSE, NULL, |
620 _("OK"), G_CALLBACK(buddy_add_deny_reason_cb), | 620 _("OK"), G_CALLBACK(buddy_add_deny_reason_cb), |
621 _("Cancel"), G_CALLBACK(buddy_add_deny_noreason_cb), | 621 _("Cancel"), G_CALLBACK(buddy_add_deny_noreason_cb), |
622 purple_connection_get_account(add_req->gc), who, NULL, | 622 purple_connection_get_account(add_req->gc), who, NULL, |
623 add_req); | 623 add_req); |
624 g_free(who); | 624 g_free(who); |
659 g_memmove(add_req->auth, auth, auth_len); | 659 g_memmove(add_req->auth, auth, auth_len); |
660 add_req->auth_len = auth_len; | 660 add_req->auth_len = auth_len; |
661 } | 661 } |
662 | 662 |
663 who = uid_to_purple_name(uid); | 663 who = uid_to_purple_name(uid); |
664 msg = g_strdup_printf(_("%u needs authentication"), uid); | 664 msg = g_strdup_printf(_("%u needs authorization"), uid); |
665 purple_request_input(gc, _("Add buddy authorize"), msg, | 665 purple_request_input(gc, _("Add buddy authorize"), msg, |
666 _("Input request here"), | 666 _("Enter request here"), |
667 _("Would you be my friend?"), | 667 _("Would you be my friend?"), |
668 TRUE, FALSE, NULL, | 668 TRUE, FALSE, NULL, |
669 _("Send"), G_CALLBACK(add_buddy_auth_cb), | 669 _("Send"), G_CALLBACK(add_buddy_auth_cb), |
670 _("Cancel"), G_CALLBACK(buddy_req_cancel_cb), | 670 _("Cancel"), G_CALLBACK(buddy_req_cancel_cb), |
671 purple_connection_get_account(gc), who, NULL, | 671 purple_connection_get_account(gc), who, NULL, |