Mercurial > pidgin.yaz
comparison libpurple/protocols/qq/group_opt.c @ 18807:b9a0b1bd321b
Improve a bunch of strings in QQ
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 06 Aug 2007 00:14:47 +0000 |
parents | b8572b937c09 |
children | 44b4e8bd759b 83ed57f6873e |
comparison
equal
deleted
inserted
replaced
18803:abb9aac69507 | 18807:b9a0b1bd321b |
---|---|
118 | 118 |
119 void qq_group_search_application_with_struct(group_member_opt *g) | 119 void qq_group_search_application_with_struct(group_member_opt *g) |
120 { | 120 { |
121 g_return_if_fail(g != NULL && g->gc != NULL && g->member > 0); | 121 g_return_if_fail(g != NULL && g->gc != NULL && g->member > 0); |
122 | 122 |
123 qq_send_packet_get_info(g->gc, g->member, TRUE); /* we wanna see window */ | 123 qq_send_packet_get_info(g->gc, g->member, TRUE); /* we want to see window */ |
124 purple_request_action(g->gc, NULL, _("Do you wanna approve the request?"), "", 2, | 124 purple_request_action(g->gc, NULL, _("Do you want to approve the request?"), "", 2, |
125 purple_connection_get_account(g->gc), NULL, NULL, | 125 purple_connection_get_account(g->gc), NULL, NULL, |
126 g, 2, | 126 g, 2, |
127 _("Reject"), G_CALLBACK(qq_group_reject_application_with_struct), | 127 _("Reject"), G_CALLBACK(qq_group_reject_application_with_struct), |
128 _("Approve"), G_CALLBACK(qq_group_approve_application_with_struct)); | 128 _("Approve"), G_CALLBACK(qq_group_approve_application_with_struct)); |
129 } | 129 } |
132 { | 132 { |
133 gchar *msg1, *msg2, *nombre; | 133 gchar *msg1, *msg2, *nombre; |
134 g_return_if_fail(g != NULL && g->gc != NULL && g->member > 0); | 134 g_return_if_fail(g != NULL && g->gc != NULL && g->member > 0); |
135 | 135 |
136 msg1 = g_strdup_printf(_("You rejected %d's request"), g->member); | 136 msg1 = g_strdup_printf(_("You rejected %d's request"), g->member); |
137 msg2 = g_strdup(_("Input your reason:")); | 137 msg2 = g_strdup(_("Enter your reason:")); |
138 | 138 |
139 nombre = uid_to_purple_name(g->member); | 139 nombre = uid_to_purple_name(g->member); |
140 purple_request_input(g->gc, /* title */ NULL, msg1, msg2, | 140 purple_request_input(g->gc, /* title */ NULL, msg1, msg2, |
141 _("Sorry, you are not my type..."), /* multiline */ TRUE, /* masked */ FALSE, | 141 _("Sorry, you are not my type..."), /* multiline */ TRUE, /* masked */ FALSE, |
142 /* hint */ NULL, | 142 /* hint */ NULL, |
230 group = qq_group_find_by_id(gc, internal_group_id, QQ_INTERNAL_ID); | 230 group = qq_group_find_by_id(gc, internal_group_id, QQ_INTERNAL_ID); |
231 g_return_if_fail(group != NULL); | 231 g_return_if_fail(group != NULL); |
232 | 232 |
233 purple_debug(PURPLE_DEBUG_INFO, "QQ", "Succeed in modify members for Qun %d\n", group->external_group_id); | 233 purple_debug(PURPLE_DEBUG_INFO, "QQ", "Succeed in modify members for Qun %d\n", group->external_group_id); |
234 | 234 |
235 purple_notify_info(gc, _("QQ Qun Operation"), _("You have successfully modify Qun member"), NULL); | 235 purple_notify_info(gc, _("QQ Qun Operation"), _("You have successfully modified Qun member"), NULL); |
236 } | 236 } |
237 | 237 |
238 void qq_group_modify_info(PurpleConnection *gc, qq_group *group) | 238 void qq_group_modify_info(PurpleConnection *gc, qq_group *group) |
239 { | 239 { |
240 gint data_len, data_written; | 240 gint data_len, data_written; |
300 g_return_if_fail(group != NULL); | 300 g_return_if_fail(group != NULL); |
301 | 301 |
302 purple_debug(PURPLE_DEBUG_INFO, "QQ", "Succeed in modify info for Qun %d\n", group->external_group_id); | 302 purple_debug(PURPLE_DEBUG_INFO, "QQ", "Succeed in modify info for Qun %d\n", group->external_group_id); |
303 qq_group_refresh(gc, group); | 303 qq_group_refresh(gc, group); |
304 | 304 |
305 purple_notify_info(gc, _("QQ Qun Operation"), _("You have successfully modify Qun information"), NULL); | 305 purple_notify_info(gc, _("QQ Qun Operation"), _("You have successfully modified Qun information"), NULL); |
306 } | 306 } |
307 | 307 |
308 /* we create a very simple group first, and then let the user to modify */ | 308 /* we create a very simple group first, and then let the user to modify */ |
309 void qq_group_create_with_name(PurpleConnection *gc, const gchar *name) | 309 void qq_group_create_with_name(PurpleConnection *gc, const gchar *name) |
310 { | 310 { |