Mercurial > pidgin
comparison src/dialogs.c @ 2334:b53cd5b63a99
[gaim-migrate @ 2347]
i feel like everyone's watching me
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Fri, 21 Sep 2001 00:14:12 +0000 |
| parents | a2da18405b64 |
| children | 19ea44f74a88 |
comparison
equal
deleted
inserted
replaced
| 2333:de907b3cf529 | 2334:b53cd5b63a99 |
|---|---|
| 451 gtk_widget_grab_focus(close); | 451 gtk_widget_grab_focus(close); |
| 452 return d; | 452 return d; |
| 453 } | 453 } |
| 454 | 454 |
| 455 | 455 |
| 456 | |
| 457 void show_error_dialog(char *d) | |
| 458 { | |
| 459 | |
| 460 int no = atoi(d); | |
| 461 char *w; | |
| 462 char buf[256]; | |
| 463 char buf2[32]; | |
| 464 | |
| 465 plugin_event(event_error, (void *)no, 0, 0, 0); | |
| 466 | |
| 467 w = strtok(NULL, ":"); | |
| 468 | |
| 469 | |
| 470 switch(no) { | |
| 471 case 69: | |
| 472 g_snprintf(buf, sizeof(buf), _("Unable to write file %s."), w); | |
| 473 break; | |
| 474 case 169: | |
| 475 g_snprintf(buf, sizeof(buf), _("Unable to read file %s."), w); | |
| 476 break; | |
| 477 case 269: | |
| 478 g_snprintf(buf, sizeof(buf), _("Message too long, last %s bytes truncated."), w); | |
| 479 break; | |
| 480 case 901: | |
| 481 g_snprintf(buf, sizeof(buf), _("%s not currently logged in."), w); | |
| 482 break; | |
| 483 case 902: | |
| 484 g_snprintf(buf, sizeof(buf), _("Warning of %s not allowed."), w); | |
| 485 break; | |
| 486 case 903: | |
| 487 g_snprintf(buf, sizeof(buf), _("A message has been dropped, you are exceeding the server speed limit.")); | |
| 488 break; | |
| 489 case 950: | |
| 490 g_snprintf(buf, sizeof(buf), _("Chat in %s is not available."), w); | |
| 491 break; | |
| 492 case 960: | |
| 493 g_snprintf(buf, sizeof(buf), _("You are sending messages too fast to %s."), w); | |
| 494 break; | |
| 495 case 961: | |
| 496 g_snprintf(buf, sizeof(buf), _("You missed an IM from %s because it was too big."), w); | |
| 497 break; | |
| 498 case 962: | |
| 499 g_snprintf(buf, sizeof(buf), _("You missed an IM from %s because it was sent too fast."), w); | |
| 500 break; | |
| 501 case 970: | |
| 502 g_snprintf(buf, sizeof(buf), _("Failure.")); | |
| 503 break; | |
| 504 case 971: | |
| 505 g_snprintf(buf, sizeof(buf), _("Too many matches.")); | |
| 506 break; | |
| 507 case 972: | |
| 508 g_snprintf(buf, sizeof(buf), _("Need more qualifiers.")); | |
| 509 break; | |
| 510 case 973: | |
| 511 g_snprintf(buf, sizeof(buf), _("Dir service temporarily unavailable.")); | |
| 512 break; | |
| 513 case 974: | |
| 514 g_snprintf(buf, sizeof(buf), _("Email lookup restricted.")); | |
| 515 break; | |
| 516 case 975: | |
| 517 g_snprintf(buf, sizeof(buf), _("Keyword ignored.")); | |
| 518 break; | |
| 519 case 976: | |
| 520 g_snprintf(buf, sizeof(buf), _("No keywords.")); | |
| 521 break; | |
| 522 case 977: | |
| 523 g_snprintf(buf, sizeof(buf), _("User has no directory information.")); | |
| 524 /* g_snprintf(buf, sizeof(buf), "Language not supported."); */ | |
| 525 break; | |
| 526 case 978: | |
| 527 g_snprintf(buf, sizeof(buf), _("Country not supported.")); | |
| 528 break; | |
| 529 case 979: | |
| 530 g_snprintf(buf, sizeof(buf), _("Failure unknown: %s."), w); | |
| 531 break; | |
| 532 case 980: | |
| 533 g_snprintf(buf, sizeof(buf), _("Incorrect nickname or password.")); | |
| 534 break; | |
| 535 case 981: | |
| 536 g_snprintf(buf, sizeof(buf), _("The service is temporarily unavailable.")); | |
| 537 break; | |
| 538 case 982: | |
| 539 g_snprintf(buf, sizeof(buf), _("Your warning level is currently too high to log in.")); | |
| 540 break; | |
| 541 case 983: | |
| 542 g_snprintf(buf, sizeof(buf), _("You have been connecting and disconnecting too frequently. Wait ten minutes and try again. If you continue to try, you will need to wait even longer.")); | |
| 543 break; | |
| 544 case 989: | |
| 545 g_snprintf(buf, sizeof(buf), _("An unknown signon error has occurred: %s."), w); | |
| 546 break; | |
| 547 default: | |
| 548 g_snprintf(buf, sizeof(buf), _("An unknown error, %d, has occured. Info: %s"), no, w); | |
| 549 } | |
| 550 | |
| 551 g_snprintf(buf2, sizeof(buf2), _("Gaim - Error %d"), no); | |
| 552 | |
| 553 | |
| 554 do_error_dialog(buf, buf2); | |
| 555 return; | |
| 556 } | |
| 557 | 456 |
| 558 static void do_im(GtkWidget *widget, GtkWidget *imentry) | 457 static void do_im(GtkWidget *widget, GtkWidget *imentry) |
| 559 { | 458 { |
| 560 char *who; | 459 char *who; |
| 561 struct conversation *c; | 460 struct conversation *c; |
