* Modified Fri Mar 10 20:27:19 1995, faith@cs.unc.edu, for Linux
* Modified Mon Jul 1 18:14:10 1996, janl@ifi.uio.no, writing to stdout
* as suggested by Michael Meskes <meskes@Informatik.RWTH-Aachen.DE>
+ *
+ * 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL>
+ * - added Native Language Support
+ *
*
*/
#include <sys/types.h>
#include <sys/stat.h>
-#include <err.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include "errs.h"
+#include "nls.h"
int
main(argc, argv)
char *tty;
int ch;
- while ((ch = getopt(argc, argv, "")) != EOF)
+ setlocale(LC_ALL, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
+
+
+ while ((ch = getopt(argc, argv, "")) != -1)
switch (ch) {
case '?':
default:
if (*argv == NULL) {
if (sb.st_mode & (S_IWGRP | S_IWOTH)) {
- (void)fprintf(stdout, "is y\n");
+ (void)fprintf(stdout, _("is y\n"));
exit(0);
}
- (void)fprintf(stdout, "is n\n");
+ (void)fprintf(stdout, _("is n\n"));
exit(1);
}
exit(1);
}
-usage: (void)fprintf(stderr, "usage: mesg [y | n]\n");
+usage: (void)fprintf(stderr, _("usage: mesg [y | n]\n"));
exit(2);
}