|
9 | 9 | * |
10 | 10 | * |
11 | 11 | * IDENTIFICATION |
12 | | - * $PostgreSQL: pgsql/src/port/exec.c,v 1.36 2004/12/31 22:03:53 pgsql Exp $ |
| 12 | + * $PostgreSQL: pgsql/src/port/exec.c,v 1.37 2005/01/14 17:47:49 tgl Exp $ |
13 | 13 | * |
14 | 14 | *------------------------------------------------------------------------- |
15 | 15 | */ |
|
42 | 42 |
|
43 | 43 | #ifndefFRONTEND |
44 | 44 | /* We use only 3-parameter elog calls in this file, for simplicity */ |
| 45 | +/* NOTE: caller must provide gettext call around str! */ |
45 | 46 | #definelog_error(str,param)elog(LOG, str, param) |
46 | 47 | #else |
47 | 48 | #definelog_error(str,param)(fprintf(stderr, str, param), fputc('\n', stderr)) |
@@ -209,7 +210,7 @@ find_my_exec(const char *argv0, char *retpath) |
209 | 210 | if (validate_exec(retpath)==0) |
210 | 211 | returnresolve_symlinks(retpath); |
211 | 212 |
|
212 | | -log_error("invalid binary \"%s\"",retpath); |
| 213 | +log_error(gettext("invalid binary \"%s\""),retpath); |
213 | 214 | return-1; |
214 | 215 | } |
215 | 216 |
|
@@ -258,13 +259,14 @@ find_my_exec(const char *argv0, char *retpath) |
258 | 259 | case-1:/* wasn't even a candidate, keep looking */ |
259 | 260 | break; |
260 | 261 | case-2:/* found but disqualified */ |
261 | | -log_error("could not read binary \"%s\"",retpath); |
| 262 | +log_error(gettext("could not read binary \"%s\""), |
| 263 | +retpath); |
262 | 264 | break; |
263 | 265 | } |
264 | 266 | }while (*endp); |
265 | 267 | } |
266 | 268 |
|
267 | | -log_error("could not find a \"%s\" to execute",argv0); |
| 269 | +log_error(gettext("could not find a \"%s\" to execute"),argv0); |
268 | 270 | return-1; |
269 | 271 | } |
270 | 272 |
|
|