comparison libpurple/protocols/jabber/jabber.c @ 16719:1ac4039a2634

disapproval of revision 'c0c4c168411c9fbc5ccb9790a43e21a62f6dcd55'
author Luke Schierer <lschiere@pidgin.im>
date Tue, 01 May 2007 14:11:35 +0000
parents 3bd360f26a9e
children a77901ef0ebb
comparison
equal deleted inserted replaced
16718:3bd360f26a9e 16719:1ac4039a2634
560 js->user = jabber_id_new(purple_account_get_username(account)); 560 js->user = jabber_id_new(purple_account_get_username(account));
561 js->next_id = g_random_int(); 561 js->next_id = g_random_int();
562 js->write_buffer = purple_circ_buffer_new(512); 562 js->write_buffer = purple_circ_buffer_new(512);
563 563
564 if(!js->user) { 564 if(!js->user) {
565 purple_connection_error(gc, _("Invalid XMPP ID")); 565 purple_connection_error(gc, _("Invalid Jabber ID"));
566 return; 566 return;
567 } 567 }
568 568
569 if(!js->user->resource) { 569 if(!js->user->resource) {
570 char *me; 570 char *me;
866 instructions = xmlnode_get_data(y); 866 instructions = xmlnode_get_data(y);
867 else 867 else
868 instructions = g_strdup(_("Please fill out the information below " 868 instructions = g_strdup(_("Please fill out the information below "
869 "to register your new account.")); 869 "to register your new account."));
870 870
871 purple_request_fields(js->gc, _("Register New XMPP Account"), 871 purple_request_fields(js->gc, _("Register New Jabber Account"),
872 _("Register New XMPP Account"), instructions, fields, 872 _("Register New Jabber Account"), instructions, fields,
873 _("Register"), G_CALLBACK(jabber_register_cb), 873 _("Register"), G_CALLBACK(jabber_register_cb),
874 _("Cancel"), G_CALLBACK(jabber_register_cancel_cb), 874 _("Cancel"), G_CALLBACK(jabber_register_cancel_cb),
875 purple_connection_get_account(js->gc), NULL, NULL, 875 purple_connection_get_account(js->gc), NULL, NULL,
876 js); 876 js);
877 877
905 g_free, g_free); 905 g_free, g_free);
906 js->user = jabber_id_new(purple_account_get_username(account)); 906 js->user = jabber_id_new(purple_account_get_username(account));
907 js->next_id = g_random_int(); 907 js->next_id = g_random_int();
908 908
909 if(!js->user) { 909 if(!js->user) {
910 purple_connection_error(gc, _("Invalid XMPP ID")); 910 purple_connection_error(gc, _("Invalid Jabber ID"));
911 return; 911 return;
912 } 912 }
913 913
914 js->write_buffer = purple_circ_buffer_new(512); 914 js->write_buffer = purple_circ_buffer_new(512);
915 915
1363 field = purple_request_field_string_new("password2", _("Password (again)"), 1363 field = purple_request_field_string_new("password2", _("Password (again)"),
1364 "", FALSE); 1364 "", FALSE);
1365 purple_request_field_string_set_masked(field, TRUE); 1365 purple_request_field_string_set_masked(field, TRUE);
1366 purple_request_field_group_add_field(group, field); 1366 purple_request_field_group_add_field(group, field);
1367 1367
1368 purple_request_fields(js->gc, _("Change XMPP Password"), 1368 purple_request_fields(js->gc, _("Change Jabber Password"),
1369 _("Change XMPP Password"), _("Please enter your new password"), 1369 _("Change Jabber Password"), _("Please enter your new password"),
1370 fields, _("OK"), G_CALLBACK(jabber_password_change_cb), 1370 fields, _("OK"), G_CALLBACK(jabber_password_change_cb),
1371 _("Cancel"), NULL, 1371 _("Cancel"), NULL,
1372 purple_connection_get_account(gc), NULL, NULL, 1372 purple_connection_get_account(gc), NULL, NULL,
1373 js); 1373 js);
1374 } 1374 }
1478 } else if(xmlnode_get_child(error, "internal-server-error")) { 1478 } else if(xmlnode_get_child(error, "internal-server-error")) {
1479 text = _("Internal Server Error"); 1479 text = _("Internal Server Error");
1480 } else if(xmlnode_get_child(error, "item-not-found")) { 1480 } else if(xmlnode_get_child(error, "item-not-found")) {
1481 text = _("Item Not Found"); 1481 text = _("Item Not Found");
1482 } else if(xmlnode_get_child(error, "jid-malformed")) { 1482 } else if(xmlnode_get_child(error, "jid-malformed")) {
1483 text = _("Malformed XMPP ID"); 1483 text = _("Malformed Jabber ID");
1484 } else if(xmlnode_get_child(error, "not-acceptable")) { 1484 } else if(xmlnode_get_child(error, "not-acceptable")) {
1485 text = _("Not Acceptable"); 1485 text = _("Not Acceptable");
1486 } else if(xmlnode_get_child(error, "not-allowed")) { 1486 } else if(xmlnode_get_child(error, "not-allowed")) {
1487 text = _("Not Allowed"); 1487 text = _("Not Allowed");
1488 } else if(xmlnode_get_child(error, "not-authorized")) { 1488 } else if(xmlnode_get_child(error, "not-authorized")) {