diff options
author | Tom Lane | 2005-01-14 17:47:49 +0000 |
---|---|---|
committer | Tom Lane | 2005-01-14 17:47:49 +0000 |
commit | 982e99806495238bcfdb461a7047b7f020d7f1e5 (patch) | |
tree | 3732e2d467ea3abb1379ea3e4f3ca30998c4998f /src/port/exec.c | |
parent | ce6e2fada0243f925e191a62eedf90f5919525f3 (diff) |
Add missing gettext() calls in find_my_exec(). It's probably too late
to get these strings translated, but we may as well have them be
translatable as not.
Diffstat (limited to 'src/port/exec.c')
-rw-r--r-- | src/port/exec.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/port/exec.c b/src/port/exec.c index 8c7d1d3807d..355be22574e 100644 --- a/src/port/exec.c +++ b/src/port/exec.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/port/exec.c,v 1.36 2004/12/31 22:03:53 pgsql Exp $ + * $PostgreSQL: pgsql/src/port/exec.c,v 1.37 2005/01/14 17:47:49 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -42,6 +42,7 @@ #ifndef FRONTEND /* We use only 3-parameter elog calls in this file, for simplicity */ +/* NOTE: caller must provide gettext call around str! */ #define log_error(str, param) elog(LOG, str, param) #else #define log_error(str, param) (fprintf(stderr, str, param), fputc('\n', stderr)) @@ -209,7 +210,7 @@ find_my_exec(const char *argv0, char *retpath) if (validate_exec(retpath) == 0) return resolve_symlinks(retpath); - log_error("invalid binary \"%s\"", retpath); + log_error(gettext("invalid binary \"%s\""), retpath); return -1; } @@ -258,13 +259,14 @@ find_my_exec(const char *argv0, char *retpath) case -1: /* wasn't even a candidate, keep looking */ break; case -2: /* found but disqualified */ - log_error("could not read binary \"%s\"", retpath); + log_error(gettext("could not read binary \"%s\""), + retpath); break; } } while (*endp); } - log_error("could not find a \"%s\" to execute", argv0); + log_error(gettext("could not find a \"%s\" to execute"), argv0); return -1; } |