]>
Commit | Line | Data |
---|---|---|
55bce071 JB |
1 | diff -Nur kbd-1.09.orig/openvt/openvt.c kbd-1.09/openvt/openvt.c |
2 | --- kbd-1.09.orig/openvt/openvt.c 2004-01-02 04:42:27.000000000 +0100 | |
3 | +++ kbd-1.09/openvt/openvt.c 2004-01-03 16:07:57.933400296 +0100 | |
fcbae818 JB |
4 | @@ -53,6 +53,10 @@ |
5 | char vtname[sizeof VTNAME + 2]; /* allow 999 possible VTs */ | |
6 | char *cmd = NULL, *def_cmd = NULL, *username = NULL; | |
7 | ||
8 | + setlocale(LC_ALL, ""); | |
9 | + bindtextdomain(PACKAGE, LOCALEDIR); | |
10 | + textdomain(PACKAGE); | |
11 | + | |
12 | /* | |
13 | * I don't like using getopt for this, but otherwise this gets messy. | |
14 | * POSIX/Gnu getopt forces the use of -- to separate child/program | |
55bce071 JB |
15 | @@ -240,7 +244,7 @@ |
16 | ||
17 | if (ioctl(fd, VT_WAITACTIVE, vtno)){ | |
18 | int errsv = errno; | |
19 | - fprintf(stderr, "\nopenvt: activation interrupted? (%s)\n", | |
20 | + fprintf(stderr, _("\nopenvt: activation interrupted? (%s)\n"), | |
21 | strerror(errsv)); | |
22 | fflush(stderr); | |
23 | _exit (1); | |
24 | @@ -264,7 +268,7 @@ | |
fcbae818 JB |
25 | } |
26 | ||
27 | if ( pid < 0 ) { | |
28 | - perror("openvt: fork() error"); | |
55bce071 | 29 | + perror(_("openvt: fork() error")); |
fcbae818 JB |
30 | return(6); |
31 | } | |
32 | ||
55bce071 | 33 | @@ -295,7 +299,7 @@ |
fcbae818 JB |
34 | void usage(int stat) |
35 | { | |
36 | fprintf(stderr, | |
37 | - "Usage: openvt [-c vtnumber] [-l] [-u] [-s] [-v] [-w] -- command_line\n"); | |
38 | + _("Usage: openvt [-c vtnumber] [-l] [-u] [-s] [-v] [-w] -- command_line\n")); | |
39 | exit (stat); | |
40 | } | |
41 | ||
55bce071 JB |
42 | @@ -360,7 +364,7 @@ |
43 | ||
44 | /* get the owner of current tty */ | |
45 | if (!(pwnam = getpwuid(console_uid))) { | |
46 | - perror("can't getpwuid"); | |
47 | + perror(_("can't getpwuid")); | |
48 | exit(1); | |
49 | } | |
50 | ||
51 | @@ -375,7 +379,7 @@ | |
fcbae818 JB |
52 | goto got_a_process; |
53 | } | |
54 | ||
55 | - fprintf(stderr,"couldn't find owner of current tty!\n"); | |
56 | + fprintf(stderr,_("couldn't find owner of current tty!\n")); | |
57 | exit(1); | |
58 | ||
59 | got_a_process: | |
55bce071 JB |
60 | diff -Nur kbd-1.09.orig/po/POTFILES.in kbd-1.09/po/POTFILES.in |
61 | --- kbd-1.09.orig/po/POTFILES.in 2002-12-06 16:49:48.000000000 +0100 | |
62 | +++ kbd-1.09/po/POTFILES.in 2004-01-03 16:08:34.474845152 +0100 | |
63 | @@ -5,6 +5,7 @@ | |
64 | openvt/getfd.c | |
65 | openvt/openvt.c | |
66 | po/cat-id-tbl.c | |
67 | +src/analyze.c | |
68 | src/chvt.c | |
69 | src/clrunimap.c | |
70 | src/deallocvt.c | |
71 | @@ -18,6 +19,7 @@ | |
72 | src/kbdrate.c | |
73 | src/kdfontop.c | |
74 | src/ksyms.c | |
75 | +src/loadkeys.c | |
76 | src/loadunimap.c | |
77 | src/mapscrn.c | |
78 | src/outpsfheader.c | |
79 | diff -Nur kbd-1.09.orig/src/analyze.l kbd-1.09/src/analyze.l | |
80 | --- kbd-1.09.orig/src/analyze.l 1999-10-06 04:52:48.000000000 +0200 | |
81 | +++ kbd-1.09/src/analyze.l 2004-01-03 16:09:07.820775800 +0100 | |
82 | @@ -67,7 +67,7 @@ | |
83 | BEGIN(0); | |
84 | } | |
85 | <INCLSTR>[^"]|\"\"|\"[^"\n]*{Eol} { | |
86 | - yyerror("expected filename between quotes"); | |
87 | + yyerror(_("expected filename between quotes")); | |
88 | BEGIN(0); } | |
89 | {Continuation} {line_nr++;} | |
90 | {Eol} {line_nr++;BEGIN(0);return(EOL);} | |
91 | @@ -121,5 +121,5 @@ | |
92 | ||
93 | void | |
94 | stringovfl(void) { | |
95 | - lkfatal("string too long"); | |
96 | + lkfatal(_("string too long")); | |
97 | } | |
98 | diff -Nur kbd-1.09.orig/src/loadkeys.y kbd-1.09/src/loadkeys.y | |
99 | --- kbd-1.09.orig/src/loadkeys.y 2004-01-02 02:59:58.000000000 +0100 | |
100 | +++ kbd-1.09/src/loadkeys.y 2004-01-03 16:11:21.032524536 +0100 | |
101 | @@ -250,12 +250,12 @@ | |
102 | "valid options are:\n" | |
103 | "\n" | |
104 | " -c --clearcompose clear kernel compose table\n" | |
105 | -" -d --default load \"" DEFMAP "\"\n" | |
106 | +" -d --default load \"%s\"\n" | |
107 | " -h --help display this help text\n" | |
108 | " -m --mktable output a \"defkeymap.c\" to stdout\n" | |
109 | " -s --clearstrings clear kernel string table\n" | |
110 | " -u --unicode implicit conversion to Unicode\n" | |
111 | -" -v --verbose report the changes\n"), VERSION); | |
112 | +" -v --verbose report the changes\n"), VERSION, DEFMAP); | |
113 | exit(1); | |
114 | } | |
115 | ||
116 | @@ -286,6 +286,10 @@ | |
117 | ||
118 | set_progname(argv[0]); | |
119 | ||
120 | + setlocale(LC_ALL, ""); | |
121 | + bindtextdomain(PACKAGE, LOCALEDIR); | |
122 | + textdomain(PACKAGE); | |
123 | + | |
124 | while ((c = getopt_long(argc, argv, | |
125 | short_opts, long_opts, NULL)) != -1) { | |
126 | switch (c) { | |
503e8da2 JB |
127 | --- kbd-1.10/po/pl.po.orig 2004-01-03 16:03:41.000000000 +0100 |
128 | +++ kbd-1.10/po/pl.po 2004-01-03 16:31:06.730271080 +0100 | |
55bce071 JB |
129 | @@ -78,11 +79,46 @@ |
130 | "\n" | |
131 |