diff options
| author | David M. Syzdek <david@syzdek.net> | 2021-10-11 11:45:33 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2021-10-11 11:45:33 -0800 |
| commit | 2371794e53068d2559b61f6a10e10c83900f5e0e (patch) | |
| tree | e11a201b9ec59968e068f2a2c1b455e4bf76f082 | |
| parent | 00f0424d5ca083a4223f0e33bead69b2beecab70 (diff) | |
| download | dmstools-2371794e53068d2559b61f6a10e10c83900f5e0e.tar.gz dmstools-2371794e53068d2559b61f6a10e10c83900f5e0e.tar.bz2 dmstools-2371794e53068d2559b61f6a10e10c83900f5e0e.tar.xz dmstools-2371794e53068d2559b61f6a10e10c83900f5e0e.zip | |
dmsversion: removing i18l support
| -rw-r--r-- | src/dmsversion.c | 36 |
1 files changed, 7 insertions, 29 deletions
diff --git a/src/dmsversion.c b/src/dmsversion.c index 7f3ddb0..ec00e50 100644 --- a/src/dmsversion.c +++ b/src/dmsversion.c | |||
| @@ -67,26 +67,6 @@ | |||
| 67 | 67 | ||
| 68 | /////////////////// | 68 | /////////////////// |
| 69 | // // | 69 | // // |
| 70 | // i18l Support // | ||
| 71 | // // | ||
| 72 | /////////////////// | ||
| 73 | |||
| 74 | #ifdef HAVE_GETTEXT | ||
| 75 | # include <gettext.h> | ||
| 76 | # include <libintl.h> | ||
| 77 | # define _(String) gettext (String) | ||
| 78 | # define gettext_noop(String) String | ||
| 79 | # define N_(String) gettext_noop (String) | ||
| 80 | #else | ||
| 81 | # define _(String) (String) | ||
| 82 | # define N_(String) String | ||
| 83 | # define textdomain(Domain) | ||
| 84 | # define bindtextdomain(Package, Directory) | ||
| 85 | #endif | ||
| 86 | |||
| 87 | |||
| 88 | /////////////////// | ||
| 89 | // // | ||
| 90 | // Definitions // | 70 | // Definitions // |
| 91 | // // | 71 | // // |
| 92 | /////////////////// | 72 | /////////////////// |
| @@ -135,15 +115,13 @@ int main(int argc, char * argv[]) | |||
| 135 | { | 115 | { |
| 136 | if (argc == -1) | 116 | if (argc == -1) |
| 137 | printf("%s\n", argv[0]); | 117 | printf("%s\n", argv[0]); |
| 138 | printf(_("%s (%s) %s\n" | 118 | printf("%s (%s) %s\n", PROGRAM_NAME, PACKAGE_NAME, PACKAGE_VERSION); |
| 139 | "%s\n" | 119 | printf("%s\n", dms_version()); |
| 140 | "Written by David M. Syzdek\n" | 120 | printf("Written by David M. Syzdek\n"); |
| 141 | "\n" | 121 | printf("\n"); |
| 142 | "Copyright (C) 2010 David M. Syzdek\n" | 122 | printf("Copyright (C) 2010 David M. Syzdek\n"); |
| 143 | "This is free software; see the source for copying conditions. There is NO\n" | 123 | printf("This is free software; see the source for copying conditions. There is NO\n"); |
| 144 | "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" | 124 | printf("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"); |
| 145 | ), PROGRAM_NAME, PACKAGE_NAME, PACKAGE_VERSION, dms_version() | ||
| 146 | ); | ||
| 147 | return(0); | 125 | return(0); |
| 148 | } | 126 | } |
| 149 | 127 | ||
