Mercurial > pidgin
comparison src/protocols/gg/gg.c @ 4059:c3968c878c68
[gaim-migrate @ 4269]
spelling and such:
" <Smigs> what's the 'proper' terminology? 'Buddies List'
or 'Buddy List'? It's inconsistant, though I'm seeing
more of 'Buddy List' than 'Buddies List' (I'm willing
to go through and correct them :P)
<LSchiere> i'd say "Buddy List"
<Paco-Paco> buddy list
The "Buddies List" -> "Buddy List" corrections are
mostly in gg.c (plus all the .po's). Other typos have
been corrected that I saw as I went through:
"buddylist" -> "buddy list" (I also corrected the .po's
in another instance of this that had already been fixed
in the actual file)
"sucessfully" -> "successfully"
"communicating to" -> "communicating with"
"Pleae tryagain" -> "Please try again"
"this users profile" -> "this user's profile"
"passord" -> "password"
All adds up to a pretty big patch.. hopefully it's all
correct :)"
--Matthew Smith (smigs)
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 11 Dec 2002 02:09:43 +0000 |
parents | a5c49e9c6a53 |
children | ee884f1d7ae3 |
comparison
equal
deleted
inserted
replaced
4058:7d65c06c7957 | 4059:c3968c878c68 |
---|---|
1 /* | 1 /* |
2 * gaim - Gadu-Gadu Protocol Plugin | 2 * gaim - Gadu-Gadu Protocol Plugin |
3 * $Id: gg.c 4261 2002-12-08 23:29:45Z lschiere $ | 3 * $Id: gg.c 4269 2002-12-11 02:09:43Z lschiere $ |
4 * | 4 * |
5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> | 5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> |
6 * | 6 * |
7 * This program is free software; you can redistribute it and/or modify | 7 * This program is free software; you can redistribute it and/or modify |
8 * it under the terms of the GNU General Public License as published by | 8 * it under the terms of the GNU General Public License as published by |
769 return; | 769 return; |
770 } | 770 } |
771 | 771 |
772 if ((ptr = strstr(webdata, "get_results:")) == NULL || (ptr = strchr(ptr, ':')) == NULL) { | 772 if ((ptr = strstr(webdata, "get_results:")) == NULL || (ptr = strchr(ptr, ':')) == NULL) { |
773 debug_printf("import_buddies_server_results: import buddies result [%s]\n", webdata); | 773 debug_printf("import_buddies_server_results: import buddies result [%s]\n", webdata); |
774 do_error_dialog(_("Couldn't Import Buddies List from Server"), NULL, GAIM_ERROR); | 774 do_error_dialog(_("Couldn't Import Buddy List from Server"), NULL, GAIM_ERROR); |
775 return; | 775 return; |
776 } | 776 } |
777 ptr++; | 777 ptr++; |
778 | 778 |
779 users_tbl = g_strsplit(ptr, "\n", AGG_PUBDIR_MAX_ENTRIES); | 779 users_tbl = g_strsplit(ptr, "\n", AGG_PUBDIR_MAX_ENTRIES); |
827 } | 827 } |
828 | 828 |
829 static void delete_buddies_server_results(struct gaim_connection *gc, gchar *webdata) | 829 static void delete_buddies_server_results(struct gaim_connection *gc, gchar *webdata) |
830 { | 830 { |
831 if (strstr(webdata, "put_success:")) { | 831 if (strstr(webdata, "put_success:")) { |
832 do_error_dialog(_("Buddy List sucessfully deleted from Gadu-Gadu server"), NULL, GAIM_INFO); | 832 do_error_dialog(_("Buddy List successfully deleted from Gadu-Gadu server"), NULL, GAIM_INFO); |
833 return; | 833 return; |
834 } | 834 } |
835 | 835 |
836 debug_printf("delete_buddies_server_results: webdata [%s]\n", webdata); | 836 debug_printf("delete_buddies_server_results: webdata [%s]\n", webdata); |
837 do_error_dialog(_("Couldn't delete Buddy List from Gadu-Gadu server"), NULL, GAIM_ERROR); | 837 do_error_dialog(_("Couldn't delete Buddy List from Gadu-Gadu server"), NULL, GAIM_ERROR); |
956 g_free(buf); | 956 g_free(buf); |
957 g_free(hdata); | 957 g_free(hdata); |
958 close(source); | 958 close(source); |
959 do_error_dialog(_("Error communicating with Gadu-Gadu server"), | 959 do_error_dialog(_("Error communicating with Gadu-Gadu server"), |
960 _("Gaim was unable to complete your request due to a problem " | 960 _("Gaim was unable to complete your request due to a problem " |
961 "communicating to the Gadu-Gadu HTTP server. Please try again " | 961 "communicating with the Gadu-Gadu HTTP server. Please try again " |
962 "later."), GAIM_ERROR); | 962 "later."), GAIM_ERROR); |
963 return; | 963 return; |
964 } | 964 } |
965 | 965 |
966 g_free(buf); | 966 g_free(buf); |
1112 } | 1112 } |
1113 | 1113 |
1114 if (proxy_connect(GG_PUBDIR_HOST, GG_PUBDIR_PORT, http_req_callback, srch) < 0) { | 1114 if (proxy_connect(GG_PUBDIR_HOST, GG_PUBDIR_PORT, http_req_callback, srch) < 0) { |
1115 do_error_dialog(_("Unable to access directory"), | 1115 do_error_dialog(_("Unable to access directory"), |
1116 _("Gaim was unable to search the Directory because it " | 1116 _("Gaim was unable to search the Directory because it " |
1117 "was unable to connect to the directory server. Please try" | 1117 "was unable to connect to the directory server. Please try " |
1118 "again later."), GAIM_ERROR); | 1118 "again later."), GAIM_ERROR); |
1119 g_free(srch->request); | 1119 g_free(srch->request); |
1120 g_free(srch); | 1120 g_free(srch); |
1121 return; | 1121 return; |
1122 } | 1122 } |
1158 { | 1158 { |
1159 if (!strcmp(action, _("Directory Search"))) { | 1159 if (!strcmp(action, _("Directory Search"))) { |
1160 show_find_info(gc); | 1160 show_find_info(gc); |
1161 } else if (!strcmp(action, _("Change Password"))) { | 1161 } else if (!strcmp(action, _("Change Password"))) { |
1162 show_change_passwd(gc); | 1162 show_change_passwd(gc); |
1163 } else if (!strcmp(action, _("Import Buddies List from Server"))) { | 1163 } else if (!strcmp(action, _("Import Buddy List from Server"))) { |
1164 import_buddies_server(gc); | 1164 import_buddies_server(gc); |
1165 } else if (!strcmp(action, _("Export Buddies List to Server"))) { | 1165 } else if (!strcmp(action, _("Export Buddy List to Server"))) { |
1166 export_buddies_server(gc); | 1166 export_buddies_server(gc); |
1167 } else if (!strcmp(action, _("Delete Buddies List from Server"))) { | 1167 } else if (!strcmp(action, _("Delete Buddy List from Server"))) { |
1168 delete_buddies_server(gc); | 1168 delete_buddies_server(gc); |
1169 } | 1169 } |
1170 } | 1170 } |
1171 | 1171 |
1172 static GList *agg_actions() | 1172 static GList *agg_actions() |
1175 | 1175 |
1176 m = g_list_append(m, _("Directory Search")); | 1176 m = g_list_append(m, _("Directory Search")); |
1177 m = g_list_append(m, NULL); | 1177 m = g_list_append(m, NULL); |
1178 m = g_list_append(m, _("Change Password")); | 1178 m = g_list_append(m, _("Change Password")); |
1179 m = g_list_append(m, NULL); | 1179 m = g_list_append(m, NULL); |
1180 m = g_list_append(m, _("Import Buddies List from Server")); | 1180 m = g_list_append(m, _("Import Buddy List from Server")); |
1181 m = g_list_append(m, _("Export Buddies List to Server")); | 1181 m = g_list_append(m, _("Export Buddy List to Server")); |
1182 m = g_list_append(m, _("Delete Buddies List from Server")); | 1182 m = g_list_append(m, _("Delete Buddy List from Server")); |
1183 | 1183 |
1184 return m; | 1184 return m; |
1185 } | 1185 } |
1186 | 1186 |
1187 static void agg_get_info(struct gaim_connection *gc, char *who) | 1187 static void agg_get_info(struct gaim_connection *gc, char *who) |
1207 } else | 1207 } else |
1208 srch->request = g_strdup_printf("Mode=3&UserId=%s", who); | 1208 srch->request = g_strdup_printf("Mode=3&UserId=%s", who); |
1209 | 1209 |
1210 if (proxy_connect(GG_PUBDIR_HOST, GG_PUBDIR_PORT, http_req_callback, srch) < 0) { | 1210 if (proxy_connect(GG_PUBDIR_HOST, GG_PUBDIR_PORT, http_req_callback, srch) < 0) { |
1211 do_error_dialog(_("Unable to access user profile."), | 1211 do_error_dialog(_("Unable to access user profile."), |
1212 _("Gaim was unable to access this users profile due to an error " | 1212 _("Gaim was unable to access this user's profile due to an error " |
1213 "connecting to the directory server. Please try again later."), GAIM_ERROR); | 1213 "connecting to the directory server. Please try again later."), GAIM_ERROR); |
1214 g_free(srch->request); | 1214 g_free(srch->request); |
1215 g_free(srch); | 1215 g_free(srch); |
1216 return; | 1216 return; |
1217 } | 1217 } |