Skip to content

Commit 982e998

Browse files
committed
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.
1 parent ce6e2fa commit 982e998

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/port/exec.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* 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 $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -42,6 +42,7 @@
4242

4343
#ifndef FRONTEND
4444
/* We use only 3-parameter elog calls in this file, for simplicity */
45+
/* NOTE: caller must provide gettext call around str! */
4546
#define log_error(str, param) elog(LOG, str, param)
4647
#else
4748
#define log_error(str, param) (fprintf(stderr, str, param), fputc('\n', stderr))
@@ -209,7 +210,7 @@ find_my_exec(const char *argv0, char *retpath)
209210
if (validate_exec(retpath) == 0)
210211
return resolve_symlinks(retpath);
211212

212-
log_error("invalid binary \"%s\"", retpath);
213+
log_error(gettext("invalid binary \"%s\""), retpath);
213214
return -1;
214215
}
215216

@@ -258,13 +259,14 @@ find_my_exec(const char *argv0, char *retpath)
258259
case -1: /* wasn't even a candidate, keep looking */
259260
break;
260261
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);
262264
break;
263265
}
264266
} while (*endp);
265267
}
266268

267-
log_error("could not find a \"%s\" to execute", argv0);
269+
log_error(gettext("could not find a \"%s\" to execute"), argv0);
268270
return -1;
269271
}
270272

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy