Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit982e998

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 betranslatable as not.
1 parentce6e2fa commit982e998

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
#ifndefFRONTEND
4444
/* We use only 3-parameter elog calls in this file, for simplicity */
45+
/* NOTE: caller must provide gettext call around str! */
4546
#definelog_error(str,param)elog(LOG, str, param)
4647
#else
4748
#definelog_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
returnresolve_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)

[8]ページ先頭

©2009-2025 Movatter.jp