From f9b37e10f2f441f8e46777107c1a6abbfe74cf6e Mon Sep 17 00:00:00 2001 From: "David M. Syzdek" Date: Mon, 11 Oct 2021 12:10:05 -0800 Subject: colors: removing i18l support --- src/colors.c | 64 ++++++++++++++---------------------------------------------- 1 file changed, 15 insertions(+), 49 deletions(-) diff --git a/src/colors.c b/src/colors.c index 06cbacb..1e3b7f7 100644 --- a/src/colors.c +++ b/src/colors.c @@ -65,26 +65,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 // @@ -137,18 +117,12 @@ int main PARAMS((int argc, char * argv[])); /// displays usage void colors_usage(void) { - // 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 [OPTIONS]\n" - " -c, --colors-only only display escape codes for colors\n" - " -h, --help print this help and exit\n" - " -V, --version print version number and exit\n" - "\n" - "Report bugs to <%s>.\n" - ), PROGRAM_NAME, PACKAGE_BUGREPORT - ); + printf("Usage: %s [OPTIONS]\n", PROGRAM_NAME); + printf(" -c, --colors-only only display escape codes for colors\n"); + printf(" -h, --help print this help and exit\n"); + printf(" -V, --version print version number and exit\n"); + printf("\n"); + printf("Report bugs to <%s>.\n", PACKAGE_BUGREPORT); return; } @@ -156,18 +130,12 @@ void colors_usage(void) /// displays version information void colors_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; } @@ -217,13 +185,11 @@ int main(int argc, char * argv[]) colors_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); }; }; -- cgit v1.2.3