Mercurial > pidgin.yaz
comparison pidgin/gtkmain.c @ 16010:eae8e127e4fb
make things cleaner for translators
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 07 Apr 2007 22:46:39 +0000 |
parents | 5db7909331fa |
children | 07554cc5d090 |
comparison
equal
deleted
inserted
replaced
16009:1bde57348057 | 16010:eae8e127e4fb |
---|---|
359 show_usage(const char *name, gboolean terse) | 359 show_usage(const char *name, gboolean terse) |
360 { | 360 { |
361 char *text; | 361 char *text; |
362 | 362 |
363 if (terse) { | 363 if (terse) { |
364 text = g_strdup_printf(_(PIDGIN_NAME " %s. Try `%s -h' for more information.\n"), VERSION, name); | 364 text = g_strdup_printf(_("%s %s. Try `%s -h' for more information.\n"), PIDGIN_NAME, VERSION, name); |
365 } else { | 365 } else { |
366 text = g_strdup_printf(_(PIDGIN_NAME " %s\n" | 366 text = g_strdup_printf(_("%s %s\n" |
367 "Usage: %s [OPTION]...\n\n" | 367 "Usage: %s [OPTION]...\n\n" |
368 " -c, --config=DIR use DIR for config files\n" | 368 " -c, --config=DIR use DIR for config files\n" |
369 " -d, --debug print debugging messages to stdout\n" | 369 " -d, --debug print debugging messages to stdout\n" |
370 " -h, --help display this help and exit\n" | 370 " -h, --help display this help and exit\n" |
371 " -n, --nologin don't automatically login\n" | 371 " -n, --nologin don't automatically login\n" |
372 " -l, --login[=NAME] automatically login (optional argument NAME specifies\n" | 372 " -l, --login[=NAME] automatically login (optional argument NAME specifies\n" |
373 " account(s) to use, separated by commas)\n" | 373 " account(s) to use, separated by commas)\n" |
374 " -v, --version display the current version and exit\n"), VERSION, name); | 374 " -v, --version display the current version and exit\n"), PIDGIN_NAME, VERSION, name); |
375 } | 375 } |
376 | 376 |
377 purple_print_utf8_to_console(stdout, text); | 377 purple_print_utf8_to_console(stdout, text); |
378 g_free(text); | 378 g_free(text); |
379 } | 379 } |
545 #ifdef HAVE_SIGNAL_H | 545 #ifdef HAVE_SIGNAL_H |
546 | 546 |
547 #ifndef DEBUG | 547 #ifndef DEBUG |
548 /* We translate this here in case the crash breaks gettext. */ | 548 /* We translate this here in case the crash breaks gettext. */ |
549 segfault_message_tmp = g_strdup_printf(_( | 549 segfault_message_tmp = g_strdup_printf(_( |
550 PIDGIN_NAME " has segfaulted and attempted to dump a core file.\n" | 550 "%s has segfaulted and attempted to dump a core file.\n" |
551 "This is a bug in the software and has happened through\n" | 551 "This is a bug in the software and has happened through\n" |
552 "no fault of your own.\n\n" | 552 "no fault of your own.\n\n" |
553 "If you can reproduce the crash, please notify the Pidgin\n" | 553 "If you can reproduce the crash, please notify the Pidgin\n" |
554 "developers by reporting a bug at\n" | 554 "developers by reporting a bug at\n" |
555 "%sbug.php\n\n" | 555 "%sbug.php\n\n" |
559 "%sgdb.php\n\n" | 559 "%sgdb.php\n\n" |
560 "If you need further assistance, please IM either SeanEgn or \n" | 560 "If you need further assistance, please IM either SeanEgn or \n" |
561 "LSchiere (via AIM). Contact information for Sean and Luke \n" | 561 "LSchiere (via AIM). Contact information for Sean and Luke \n" |
562 "on other protocols is at\n" | 562 "on other protocols is at\n" |
563 "%scontactinfo.php\n"), | 563 "%scontactinfo.php\n"), |
564 PURPLE_WEBSITE, PURPLE_WEBSITE, PURPLE_WEBSITE | 564 PIDGIN_NAME, PURPLE_WEBSITE, PURPLE_WEBSITE, PURPLE_WEBSITE |
565 ); | 565 ); |
566 | 566 |
567 /* we have to convert the message (UTF-8 to console | 567 /* we have to convert the message (UTF-8 to console |
568 charset) early because after a segmentation fault | 568 charset) early because after a segmentation fault |
569 it's not a good practice to allocate memory */ | 569 it's not a good practice to allocate memory */ |