comparison pidgin/gtkmain.c @ 16932:b668951121d8

Change the PIDGIN_NAME stuff to allow translators to transliterate the name. The only advantage of PIDGIN_NAME is that it reduces the number of strings in the .po file where they'd need to transliterate Pidgin. I'm not sure if that's useful or not.
author Richard Laager <rlaager@wiktel.com>
date Sun, 06 May 2007 00:44:41 +0000
parents a00cf76108c6
children 46985e1ae76a 50a9c82d32a1
comparison
equal deleted inserted replaced
16931:09f0bb67a87f 16932:b668951121d8
496 /* We translate this here in case the crash breaks gettext. */ 496 /* We translate this here in case the crash breaks gettext. */
497 segfault_message_tmp = g_strdup_printf(_( 497 segfault_message_tmp = g_strdup_printf(_(
498 "%s has segfaulted and attempted to dump a core file.\n" 498 "%s has segfaulted and attempted to dump a core file.\n"
499 "This is a bug in the software and has happened through\n" 499 "This is a bug in the software and has happened through\n"
500 "no fault of your own.\n\n" 500 "no fault of your own.\n\n"
501 "If you can reproduce the crash, please notify the Pidgin\n" 501 "If you can reproduce the crash, please notify the developers\n"
502 "developers by reporting a bug at\n" 502 "by reporting a bug at:\n"
503 "%snewticket/\n\n" 503 "%snewticket/\n\n"
504 "Please make sure to specify what you were doing at the time\n" 504 "Please make sure to specify what you were doing at the time\n"
505 "and post the backtrace from the core file. If you do not know\n" 505 "and post the backtrace from the core file. If you do not know\n"
506 "how to get the backtrace, please read the instructions at\n" 506 "how to get the backtrace, please read the instructions at\n"
507 "%swiki/GetABacktrace\n\n" 507 "%swiki/GetABacktrace\n\n"
628 #endif 628 #endif
629 return 0; 629 return 0;
630 } 630 }
631 /* show version message */ 631 /* show version message */
632 if (opt_version) { 632 if (opt_version) {
633 printf(PIDGIN_NAME " %s\n", VERSION); 633 printf("%s %s\n", PIDGIN_NAME, VERSION);
634 #ifdef HAVE_SIGNAL_H 634 #ifdef HAVE_SIGNAL_H
635 g_free(segfault_message); 635 g_free(segfault_message);
636 #endif 636 #endif
637 return 0; 637 return 0;
638 } 638 }
665 665
666 gui_check = gtk_init_check(&argc, &argv); 666 gui_check = gtk_init_check(&argc, &argv);
667 if (!gui_check) { 667 if (!gui_check) {
668 char *display = gdk_get_display(); 668 char *display = gdk_get_display();
669 669
670 printf(PIDGIN_NAME " %s\n", VERSION); 670 printf("%s %s\n", PIDGIN_NAME, VERSION);
671 671
672 g_warning("cannot open display: %s", display ? display : "unset"); 672 g_warning("cannot open display: %s", display ? display : "unset");
673 g_free(display); 673 g_free(display);
674 #ifdef HAVE_SIGNAL_H 674 #ifdef HAVE_SIGNAL_H
675 g_free(segfault_message); 675 g_free(segfault_message);
725 g_free(search_path); 725 g_free(search_path);
726 purple_plugins_add_search_path(LIBDIR); 726 purple_plugins_add_search_path(LIBDIR);
727 727
728 if (!purple_core_init(PIDGIN_UI)) { 728 if (!purple_core_init(PIDGIN_UI)) {
729 fprintf(stderr, 729 fprintf(stderr,
730 "Initialization of the " PIDGIN_NAME " core failed. Dumping core.\n" 730 "Initialization of the libpurple core failed. Dumping core.\n"
731 "Please report this!\n"); 731 "Please report this!\n");
732 #ifdef HAVE_SIGNAL_H 732 #ifdef HAVE_SIGNAL_H
733 g_free(segfault_message); 733 g_free(segfault_message);
734 #endif 734 #endif
735 abort(); 735 abort();