comparison src/protocols/silc/chat.c @ 9275:b6b85f955276

[gaim-migrate @ 10078] Bjoern says these should be translatable, and I agree. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Sun, 13 Jun 2004 19:39:10 +0000
parents ac4480944fc3
children 3313eab5033d
comparison
equal deleted inserted replaced
9274:f5c08be60098 9275:b6b85f955276
99 components); 99 components);
100 return; 100 return;
101 } 101 }
102 102
103 s = g_string_new(""); 103 s = g_string_new("");
104 g_string_append_printf(s, "Channel Name:\t\t%s\n", channel->channel_name); 104 g_string_append_printf(s, _("Channel Name:\t\t%s\n"), channel->channel_name);
105 if (channel->user_list && silc_hash_table_count(channel->user_list)) 105 if (channel->user_list && silc_hash_table_count(channel->user_list))
106 g_string_append_printf(s, "User Count:\t\t%d\n", 106 g_string_append_printf(s, _("User Count:\t\t%d\n"),
107 (int)silc_hash_table_count(channel->user_list)); 107 (int)silc_hash_table_count(channel->user_list));
108 108
109 silc_hash_table_list(channel->user_list, &htl); 109 silc_hash_table_list(channel->user_list, &htl);
110 while (silc_hash_table_get(&htl, NULL, (void *)&chu)) { 110 while (silc_hash_table_get(&htl, NULL, (void *)&chu)) {
111 if (chu->mode & SILC_CHANNEL_UMODE_CHANFO) { 111 if (chu->mode & SILC_CHANNEL_UMODE_CHANFO) {
112 g_string_append_printf(s, "Channel Founder:\t%s\n", 112 g_string_append_printf(s, _("Channel Founder:\t%s\n"),
113 chu->client->nickname); 113 chu->client->nickname);
114 break; 114 break;
115 } 115 }
116 } 116 }
117 silc_hash_table_list_reset(&htl); 117 silc_hash_table_list_reset(&htl);
118 118
119 if (channel->channel_key) 119 if (channel->channel_key)
120 g_string_append_printf(s, "Channel Cipher:\t\t%s\n", 120 g_string_append_printf(s, _("Channel Cipher:\t\t%s\n"),
121 silc_cipher_get_name(channel->channel_key)); 121 silc_cipher_get_name(channel->channel_key));
122 if (channel->hmac) 122 if (channel->hmac)
123 g_string_append_printf(s, "Channel HMAC:\t\t%s\n", 123 g_string_append_printf(s, _("Channel HMAC:\t\t%s\n"),
124 silc_hmac_get_name(channel->hmac)); 124 silc_hmac_get_name(channel->hmac));
125 125
126 if (channel->topic) 126 if (channel->topic)
127 g_string_append_printf(s, "\nChannel Topic:\n\%s\n", channel->topic); 127 g_string_append_printf(s, _("\nChannel Topic:\n\t%s\n"), channel->topic);
128 128
129 if (channel->mode) { 129 if (channel->mode) {
130 g_string_append_printf(s, "\nChannel Modes:\n"); 130 g_string_append_printf(s, _("\nChannel Modes:\n"));
131 silcgaim_get_chmode_string(channel->mode, tmp, sizeof(tmp)); 131 silcgaim_get_chmode_string(channel->mode, tmp, sizeof(tmp));
132 g_string_append_printf(s, tmp); 132 g_string_append_printf(s, tmp);
133 g_string_append_printf(s, "\n"); 133 g_string_append_printf(s, "\n");
134 } 134 }
135 135
139 SilcUInt32 pk_len; 139 SilcUInt32 pk_len;
140 pk = silc_pkcs_public_key_encode(channel->founder_key, &pk_len); 140 pk = silc_pkcs_public_key_encode(channel->founder_key, &pk_len);
141 fingerprint = silc_hash_fingerprint(NULL, pk, pk_len); 141 fingerprint = silc_hash_fingerprint(NULL, pk, pk_len);
142 babbleprint = silc_hash_babbleprint(NULL, pk, pk_len); 142 babbleprint = silc_hash_babbleprint(NULL, pk, pk_len);
143 143
144 g_string_append_printf(s, "\nFounder Key Fingerprint:\n%s\n\n", fingerprint); 144 g_string_append_printf(s, _("\nFounder Key Fingerprint:\n%s\n\n"), fingerprint);
145 g_string_append_printf(s, "Founder Key Babbleprint:\n%s", babbleprint); 145 g_string_append_printf(s, _("Founder Key Babbleprint:\n%s"), babbleprint);
146 146
147 silc_free(fingerprint); 147 silc_free(fingerprint);
148 silc_free(babbleprint); 148 silc_free(babbleprint);
149 silc_free(pk); 149 silc_free(pk);
150 } 150 }
402 if (!channel_pubkeys) { 402 if (!channel_pubkeys) {
403 f = gaim_request_field_list_new("list", NULL); 403 f = gaim_request_field_list_new("list", NULL);
404 gaim_request_field_group_add_field(g, f); 404 gaim_request_field_group_add_field(g, f);
405 gaim_request_fields(NULL, _("Channel Authentication"), 405 gaim_request_fields(NULL, _("Channel Authentication"),
406 _("Channel Authentication"), t, fields, 406 _("Channel Authentication"), t, fields,
407 "Add / Remove", G_CALLBACK(silcgaim_chat_chpk_cb), 407 _("Add / Remove"), G_CALLBACK(silcgaim_chat_chpk_cb),
408 "OK", G_CALLBACK(silcgaim_chat_chauth_ok), sgc); 408 _("OK"), G_CALLBACK(silcgaim_chat_chauth_ok), sgc);
409 return; 409 return;
410 } 410 }
411 sgc->pubkeys = silc_buffer_copy(channel_pubkeys); 411 sgc->pubkeys = silc_buffer_copy(channel_pubkeys);
412 412
413 g = gaim_request_field_group_new(NULL); 413 g = gaim_request_field_group_new(NULL);
440 } 440 }
441 441
442 gaim_request_field_list_set_multi_select(f, FALSE); 442 gaim_request_field_list_set_multi_select(f, FALSE);
443 gaim_request_fields(NULL, _("Channel Authentication"), 443 gaim_request_fields(NULL, _("Channel Authentication"),
444 _("Channel Authentication"), t, fields, 444 _("Channel Authentication"), t, fields,
445 "Add / Remove", G_CALLBACK(silcgaim_chat_chpk_cb), 445 _("Add / Remove"), G_CALLBACK(silcgaim_chat_chpk_cb),
446 "OK", G_CALLBACK(silcgaim_chat_chauth_ok), sgc); 446 _("OK"), G_CALLBACK(silcgaim_chat_chauth_ok), sgc);
447 447
448 silc_argument_payload_free(chpks); 448 silc_argument_payload_free(chpks);
449 } 449 }
450 450
451 static void 451 static void
576 576
577 g_snprintf(tmp, sizeof(tmp), 577 g_snprintf(tmp, sizeof(tmp),
578 _("Please enter the %s channel private group name and passphrase."), 578 _("Please enter the %s channel private group name and passphrase."),
579 p->channel); 579 p->channel);
580 gaim_request_fields(NULL, _("Add Channel Private Group"), NULL, tmp, fields, 580 gaim_request_fields(NULL, _("Add Channel Private Group"), NULL, tmp, fields,
581 "Add", G_CALLBACK(silcgaim_chat_prv_add), 581 _("Add"), G_CALLBACK(silcgaim_chat_prv_add),
582 "Cancel", G_CALLBACK(silcgaim_chat_prv_cancel), p); 582 _("Cancel"), G_CALLBACK(silcgaim_chat_prv_cancel), p);
583 } 583 }
584 584
585 585
586 /****************************** Channel Modes ********************************/ 586 /****************************** Channel Modes ********************************/
587 587