aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2021-10-11 11:27:20 -0800
committerDavid M. Syzdek <david@syzdek.net>2021-10-11 11:27:20 -0800
commit2288936fd7f11fa17e142ebeaf2fcf6da34f6844 (patch)
tree1439c19a572ccd844c16f9ec1c97a4188edc7ebd
parent3ed27b228a7905c55f858cd41b4547dbcc001cb6 (diff)
downloaddmstools-2288936fd7f11fa17e142ebeaf2fcf6da34f6844.tar.gz
dmstools-2288936fd7f11fa17e142ebeaf2fcf6da34f6844.tar.bz2
dmstools-2288936fd7f11fa17e142ebeaf2fcf6da34f6844.tar.xz
dmstools-2288936fd7f11fa17e142ebeaf2fcf6da34f6844.zip
typedef-info: removing i18l support
-rw-r--r--src/typedef-info.c72
1 files changed, 19 insertions, 53 deletions
diff --git a/src/typedef-info.c b/src/typedef-info.c
index 5ebfd4d..9892b23 100644
--- a/src/typedef-info.c
+++ b/src/typedef-info.c
@@ -104,26 +104,6 @@
104 104
105/////////////////// 105///////////////////
106// // 106// //
107// i18l Support //
108// //
109///////////////////
110
111#ifdef HAVE_GETTEXT
112# include <gettext.h>
113# include <libintl.h>
114# define _(String) gettext (String)
115# define gettext_noop(String) String
116# define N_(String) gettext_noop (String)
117#else
118# define _(String) (String)
119# define N_(String) String
120# define textdomain(Domain)
121# define bindtextdomain(Package, Directory)
122#endif
123
124
125///////////////////
126// //
127// Definitions // 107// Definitions //
128// // 108// //
129/////////////////// 109///////////////////
@@ -448,13 +428,11 @@ int main(int argc, char * argv[])
448 sort_order = MY_SORT_WIDTH; 428 sort_order = MY_SORT_WIDTH;
449 break; 429 break;
450 case '?': 430 case '?':
451 fprintf(stderr, _("Try `%s --help' for more information.\n"), PROGRAM_NAME); 431 fprintf(stderr, "Try `%s --help' for more information.\n", PROGRAM_NAME);
452 return(1); 432 return(1);
453 default: 433 default:
454 fprintf(stderr, _("%s: unrecognized option `--%c'\n" 434 fprintf(stderr, "%s: unrecognized option `--%c'\n", PROGRAM_NAME, c);
455 "Try `%s --help' for more information.\n" 435 fprintf(stderr, "Try `%s --help' for more information.\n", PROGRAM_NAME);
456 ), PROGRAM_NAME, c, PROGRAM_NAME
457 );
458 return(1); 436 return(1);
459 }; 437 };
460 }; 438 };
@@ -721,22 +699,16 @@ void my_print_data(struct my_data * data)
721/// displays usage information 699/// displays usage information
722void my_usage() 700void my_usage()
723{ 701{
724 // TRANSLATORS: The following strings provide usage for command. These 702 printf("Usage: %s [options] [typedef]\n", PROGRAM_NAME);
725 // strings are displayed if the program is passed `--help' on the command 703 printf(" -d sort by object definition\n");
726 // line. The two strings referenced are: PROGRAM_NAME, and 704 printf(" -h, --help print this help and exit\n");
727 // PACKAGE_BUGREPORT 705 printf(" -n sort by object name\n");
728 printf(_("Usage: %s [options] [typedef]\n" 706 printf(" -r reverse sort order\n");
729 " -d sort by object definition\n" 707 printf(" -t type data type to display\n");
730 " -h, --help print this help and exit\n" 708 printf(" -V, --version print verbose messages\n");
731 " -n sort by object name\n" 709 printf(" -w sort by width of object\n");
732 " -r reverse sort order\n" 710 printf("\n");
733 " -t type data type to display\n" 711 printf("Report bugs to <%s>.\n", PACKAGE_BUGREPORT);
734 " -V, --version print verbose messages\n"
735 " -w sort by width of object\n"
736 "\n"
737 "Report bugs to <%s>.\n"
738 ), PROGRAM_NAME, PACKAGE_BUGREPORT
739 );
740 return; 712 return;
741} 713}
742 714
@@ -744,18 +716,12 @@ void my_usage()
744/// displays version information 716/// displays version information
745void my_version(void) 717void my_version(void)
746{ 718{
747 // TRANSLATORS: The following strings provide version and copyright 719 printf("%s (%s) %s\n", PROGRAM_NAME, PACKAGE_NAME, PACKAGE_VERSION);
748 // information if the program is passed --version on the command line. 720 printf("Written by David M. Syzdek.\n");
749 // The three strings referenced are: PROGRAM_NAME, PACKAGE_NAME, 721 printf("\n");
750 // PACKAGE_VERSION. 722 printf("%s\n", PACKAGE_COPYRIGHT);
751 printf(_("%s (%s) %s\n" 723 printf("This is free software; see the source for copying conditions. There is NO\n");
752 "Written by David M. Syzdek.\n" 724 printf("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n");
753 "\n"
754 "%s\n"
755 "This is free software; see the source for copying conditions. There is NO\n"
756 "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
757 ), PROGRAM_NAME, PACKAGE_NAME, PACKAGE_VERSION, PACKAGE_COPYRIGHT
758 );
759 return; 725 return;
760} 726}
761 727