Mercurial > pidgin.yaz
comparison libpurple/protocols/sametime/sametime.c @ 20598:285bb637a2b7
Updated hinting to be less invasive
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Sat, 22 Sep 2007 16:19:34 +0000 |
parents | 6a0d9fa477d4 |
children | 7821fa7b22db 8c9aad9479c0 |
comparison
equal
deleted
inserted
replaced
20597:591267f6f1d5 | 20598:285bb637a2b7 |
---|---|
3380 msgA = _("Create conference with user"); | 3380 msgA = _("Create conference with user"); |
3381 msgB = _("Please enter a topic for the new conference, and an invitation" | 3381 msgB = _("Please enter a topic for the new conference, and an invitation" |
3382 " message to be sent to %s"); | 3382 " message to be sent to %s"); |
3383 msg1 = g_strdup_printf(msgB, buddy->name); | 3383 msg1 = g_strdup_printf(msgB, buddy->name); |
3384 | 3384 |
3385 purple_request_fields(gc, _("New Conference"), | 3385 purple_request_fields_with_hint(gc, _("New Conference"), |
3386 msgA, msg1, fields, | 3386 msgA, msg1, fields, |
3387 _("Create"), G_CALLBACK(conf_create_prompt_join), | 3387 _("Create"), G_CALLBACK(conf_create_prompt_join), |
3388 _("Cancel"), G_CALLBACK(conf_create_prompt_cancel), | 3388 _("Cancel"), G_CALLBACK(conf_create_prompt_cancel), |
3389 acct, purple_buddy_get_name(buddy), NULL, | 3389 acct, purple_buddy_get_name(buddy), NULL, |
3390 "chat", buddy); | 3390 "chat", buddy); |
3466 msgB = _("Select a conference from the list below to send an invite to" | 3466 msgB = _("Select a conference from the list below to send an invite to" |
3467 " user %s. Select \"Create New Conference\" if you'd like to" | 3467 " user %s. Select \"Create New Conference\" if you'd like to" |
3468 " create a new conference to invite this user to."); | 3468 " create a new conference to invite this user to."); |
3469 msg = g_strdup_printf(msgB, buddy->name); | 3469 msg = g_strdup_printf(msgB, buddy->name); |
3470 | 3470 |
3471 purple_request_fields(gc, _("Invite to Conference"), | 3471 purple_request_fields_with_hint(gc, _("Invite to Conference"), |
3472 msgA, msg, fields, | 3472 msgA, msg, fields, |
3473 _("Invite"), G_CALLBACK(conf_select_prompt_invite), | 3473 _("Invite"), G_CALLBACK(conf_select_prompt_invite), |
3474 _("Cancel"), G_CALLBACK(conf_select_prompt_cancel), | 3474 _("Cancel"), G_CALLBACK(conf_select_prompt_cancel), |
3475 acct, purple_buddy_get_name(buddy), NULL, | 3475 acct, purple_buddy_get_name(buddy), NULL, |
3476 "chat", buddy); | 3476 "chat", buddy); |
3636 msgA = _("No host or IP address has been configured for the" | 3636 msgA = _("No host or IP address has been configured for the" |
3637 " Meanwhile account %s. Please enter one below to" | 3637 " Meanwhile account %s. Please enter one below to" |
3638 " continue logging in."); | 3638 " continue logging in."); |
3639 msg = g_strdup_printf(msgA, NSTR(purple_account_get_username(acct))); | 3639 msg = g_strdup_printf(msgA, NSTR(purple_account_get_username(acct))); |
3640 | 3640 |
3641 purple_request_input(gc, _("Meanwhile Connection Setup"), | 3641 purple_request_input_with_hint(gc, _("Meanwhile Connection Setup"), |
3642 _("No Sametime Community Server Specified"), msg, | 3642 _("No Sametime Community Server Specified"), msg, |
3643 MW_PLUGIN_DEFAULT_HOST, FALSE, FALSE, NULL, | 3643 MW_PLUGIN_DEFAULT_HOST, FALSE, FALSE, NULL, |
3644 _("Connect"), G_CALLBACK(prompt_host_ok_cb), | 3644 _("Connect"), G_CALLBACK(prompt_host_ok_cb), |
3645 _("Cancel"), G_CALLBACK(prompt_host_cancel_cb), | 3645 _("Cancel"), G_CALLBACK(prompt_host_cancel_cb), |
3646 acct, NULL, NULL, | 3646 acct, NULL, NULL, |
5213 gc = act->context; | 5213 gc = act->context; |
5214 account = purple_connection_get_account(gc); | 5214 account = purple_connection_get_account(gc); |
5215 title = g_strdup_printf(_("Import Sametime List for Account %s"), | 5215 title = g_strdup_printf(_("Import Sametime List for Account %s"), |
5216 purple_account_get_username(account)); | 5216 purple_account_get_username(account)); |
5217 | 5217 |
5218 purple_request_file(gc, title, NULL, FALSE, | 5218 purple_request_file_with_hint(gc, title, NULL, FALSE, |
5219 G_CALLBACK(st_import_action_cb), NULL, | 5219 G_CALLBACK(st_import_action_cb), NULL, |
5220 account, NULL, NULL, | 5220 account, NULL, NULL, |
5221 "blist", gc); | 5221 "blist", gc); |
5222 | 5222 |
5223 g_free(title); | 5223 g_free(title); |
5253 gc = act->context; | 5253 gc = act->context; |
5254 account = purple_connection_get_account(gc); | 5254 account = purple_connection_get_account(gc); |
5255 title = g_strdup_printf(_("Export Sametime List for Account %s"), | 5255 title = g_strdup_printf(_("Export Sametime List for Account %s"), |
5256 purple_account_get_username(account)); | 5256 purple_account_get_username(account)); |
5257 | 5257 |
5258 purple_request_file(gc, title, NULL, TRUE, | 5258 purple_request_file_with_hint(gc, title, NULL, TRUE, |
5259 G_CALLBACK(st_export_action_cb), NULL, | 5259 G_CALLBACK(st_export_action_cb), NULL, |
5260 account, NULL, NULL, | 5260 account, NULL, NULL, |
5261 "blist", gc); | 5261 "blist", gc); |
5262 | 5262 |
5263 g_free(title); | 5263 g_free(title); |
5389 msgB = _("The identifier '%s' may possibly refer to any of the following" | 5389 msgB = _("The identifier '%s' may possibly refer to any of the following" |
5390 " Notes Address Book groups. Please select the correct group from" | 5390 " Notes Address Book groups. Please select the correct group from" |
5391 " the list below to add it to your buddy list."); | 5391 " the list below to add it to your buddy list."); |
5392 msg = g_strdup_printf(msgB, result->name); | 5392 msg = g_strdup_printf(msgB, result->name); |
5393 | 5393 |
5394 purple_request_fields(gc, _("Select Notes Address Book"), | 5394 purple_request_fields_with_hint(gc, _("Select Notes Address Book"), |
5395 msgA, msg, fields, | 5395 msgA, msg, fields, |
5396 _("Add Group"), G_CALLBACK(remote_group_multi_cb), | 5396 _("Add Group"), G_CALLBACK(remote_group_multi_cb), |
5397 _("Cancel"), G_CALLBACK(remote_group_multi_cleanup), | 5397 _("Cancel"), G_CALLBACK(remote_group_multi_cleanup), |
5398 purple_connection_get_account(gc), result->name, NULL, | 5398 purple_connection_get_account(gc), result->name, NULL, |
5399 "blist", pd); | 5399 "blist", pd); |
5479 | 5479 |
5480 msgA = _("Notes Address Book Group"); | 5480 msgA = _("Notes Address Book Group"); |
5481 msgB = _("Enter the name of a Notes Address Book group in the field below" | 5481 msgB = _("Enter the name of a Notes Address Book group in the field below" |
5482 " to add the group and its members to your buddy list."); | 5482 " to add the group and its members to your buddy list."); |
5483 | 5483 |
5484 purple_request_input(gc, _("Add Group"), msgA, msgB, NULL, | 5484 purple_request_input_with_hint(gc, _("Add Group"), msgA, msgB, NULL, |
5485 FALSE, FALSE, NULL, | 5485 FALSE, FALSE, NULL, |
5486 _("Add"), G_CALLBACK(remote_group_action_cb), | 5486 _("Add"), G_CALLBACK(remote_group_action_cb), |
5487 _("Cancel"), NULL, | 5487 _("Cancel"), NULL, |
5488 purple_connection_get_account(gc), NULL, NULL, | 5488 purple_connection_get_account(gc), NULL, NULL, |
5489 "blist", gc); | 5489 "blist", gc); |
5604 | 5604 |
5605 msgA = _("Search for a user"); | 5605 msgA = _("Search for a user"); |
5606 msgB = _("Enter a name or partial ID in the field below to search" | 5606 msgB = _("Enter a name or partial ID in the field below to search" |
5607 " for matching users in your Sametime community."); | 5607 " for matching users in your Sametime community."); |
5608 | 5608 |
5609 purple_request_input(gc, _("User Search"), msgA, msgB, NULL, | 5609 purple_request_input_with_hint(gc, _("User Search"), msgA, msgB, NULL, |
5610 FALSE, FALSE, NULL, | 5610 FALSE, FALSE, NULL, |
5611 _("Search"), G_CALLBACK(search_action_cb), | 5611 _("Search"), G_CALLBACK(search_action_cb), |
5612 _("Cancel"), NULL, | 5612 _("Cancel"), NULL, |
5613 purple_connection_get_account(gc), NULL, NULL, | 5613 purple_connection_get_account(gc), NULL, NULL, |
5614 "blist", gc); | 5614 "blist", gc); |