From 4b5bfbb8d6e27d249079b852a70db5419ca0515b Mon Sep 17 00:00:00 2001 From: "David M. Syzdek" Date: Mon, 11 Oct 2021 12:00:33 -0800 Subject: endian: removing i18l support --- src/endian.c | 62 ++++++++++++++---------------------------------------------- 1 file changed, 14 insertions(+), 48 deletions(-) diff --git a/src/endian.c b/src/endian.c index 5dfcf6e..178df7f 100644 --- a/src/endian.c +++ b/src/endian.c @@ -68,26 +68,6 @@ #include -/////////////////// -// // -// i18l Support // -// // -/////////////////// - -#ifdef HAVE_GETTEXT -# include -# include -# define _(String) gettext (String) -# define gettext_noop(String) String -# define N_(String) gettext_noop (String) -#else -# define _(String) (String) -# define N_(String) String -# define textdomain(Domain) -# define bindtextdomain(Package, Directory) -#endif - - /////////////////// // // // Definitions // @@ -179,13 +159,11 @@ int main(int argc, char * argv[]) my_version(); return(0); case '?': - fprintf(stderr, _("Try `%s --help' for more information.\n"), PROGRAM_NAME); + fprintf(stderr, "Try `%s --help' for more information.\n", PROGRAM_NAME); return(1); default: - fprintf(stderr, _("%s: unrecognized option `--%c'\n" - "Try `%s --help' for more information.\n" - ), PROGRAM_NAME, c, PROGRAM_NAME - ); + fprintf(stderr, "%s: unrecognized option `--%c'\n", PROGRAM_NAME, c); + fprintf(stderr, "Try `%s --help' for more information.\n", PROGRAM_NAME); return(1); }; }; @@ -193,8 +171,8 @@ int main(int argc, char * argv[]) // checks for extra arguments if (optind != argc) { - fprintf(stderr, _("%s: unknown option `%s'\n"), PROGRAM_NAME, argv[optind]); - fprintf(stderr, _("Try `%s --help' for more information.\n"), PROGRAM_NAME); + fprintf(stderr, "%s: unknown option `%s'\n", PROGRAM_NAME, argv[optind]); + fprintf(stderr, "Try `%s --help' for more information.\n", PROGRAM_NAME); return(1); }; @@ -211,15 +189,9 @@ int main(int argc, char * argv[]) /// displays usage information void my_usage() { - // TRANSLATORS: The following strings provide usage for command. These - // strings are displayed if the program is passed `--help' on the command - // line. The two strings referenced are: PROGRAM_NAME, and - // PACKAGE_BUGREPORT - printf(_("Usage: %s\n" - "\n" - "Report bugs to <%s>.\n" - ), PROGRAM_NAME, PACKAGE_BUGREPORT - ); + printf("Usage: %s\n", PROGRAM_NAME); + printf("\n"); + printf("Report bugs to <%s>.\n", PACKAGE_BUGREPORT); return; } @@ -227,18 +199,12 @@ void my_usage() /// displays version information void my_version(void) { - // TRANSLATORS: The following strings provide version and copyright - // information if the program is passed --version on the command line. - // The three strings referenced are: PROGRAM_NAME, PACKAGE_NAME, - // PACKAGE_VERSION. - printf(_("%s (%s) %s\n" - "Written by David M. Syzdek.\n" - "\n" - "%s\n" - "This is free software; see the source for copying conditions. There is NO\n" - "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" - ), PROGRAM_NAME, PACKAGE_NAME, PACKAGE_VERSION, PACKAGE_COPYRIGHT - ); + printf("%s (%s) %s\n", PROGRAM_NAME, PACKAGE_NAME, PACKAGE_VERSION); + printf("Written by David M. Syzdek.\n"); + printf("\n"); + printf("%s\n", PACKAGE_COPYRIGHT); + printf("This is free software; see the source for copying conditions. There is NO\n"); + printf("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"); return; } -- cgit v1.2.3