aboutsummaryrefslogtreecommitdiff
path: root/src/port/exec.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-02-22 04:43:23 +0000
committerBruce Momjian <bruce@momjian.us>2005-02-22 04:43:23 +0000
commit0542b1e2fee5fe7c7fa1a83fa9fe81618b2bc69e (patch)
treeeb42bea6234c92d377cb52257855b4b882120e78 /src/port/exec.c
parent64011b4dce7db05bd7bb1911fe81fcc8f2da75e1 (diff)
downloadpostgresql-0542b1e2fee5fe7c7fa1a83fa9fe81618b2bc69e.tar.gz
postgresql-0542b1e2fee5fe7c7fa1a83fa9fe81618b2bc69e.zip
Use _() macro consistently rather than gettext(). Add translation
macros around strings that were missing them.
Diffstat (limited to 'src/port/exec.c')
-rw-r--r--src/port/exec.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/port/exec.c b/src/port/exec.c
index 355be22574e..8220536c038 100644
--- a/src/port/exec.c
+++ b/src/port/exec.c
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/exec.c,v 1.37 2005/01/14 17:47:49 tgl Exp $
+ * $PostgreSQL: pgsql/src/port/exec.c,v 1.38 2005/02/22 04:43:16 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -191,7 +191,7 @@ find_my_exec(const char *argv0, char *retpath)
if (!getcwd(cwd, MAXPGPATH))
{
- log_error(gettext("could not identify current directory: %s"),
+ log_error(_("could not identify current directory: %s"),
strerror(errno));
return -1;
}
@@ -210,7 +210,7 @@ find_my_exec(const char *argv0, char *retpath)
if (validate_exec(retpath) == 0)
return resolve_symlinks(retpath);
- log_error(gettext("invalid binary \"%s\""), retpath);
+ log_error(_("invalid binary \"%s\""), retpath);
return -1;
}
@@ -259,14 +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(gettext("could not read binary \"%s\""),
+ log_error(_("could not read binary \"%s\""),
retpath);
break;
}
} while (*endp);
}
- log_error(gettext("could not find a \"%s\" to execute"), argv0);
+ log_error(_("could not find a \"%s\" to execute"), argv0);
return -1;
}
@@ -305,7 +305,7 @@ resolve_symlinks(char *path)
*/
if (!getcwd(orig_wd, MAXPGPATH))
{
- log_error(gettext("could not identify current directory: %s"),
+ log_error(_("could not identify current directory: %s"),
strerror(errno));
return -1;
}
@@ -321,7 +321,7 @@ resolve_symlinks(char *path)
*lsep = '\0';
if (chdir(path) == -1)
{
- log_error(gettext("could not change directory to \"%s\""), path);
+ log_error(_("could not change directory to \"%s\""), path);
return -1;
}
fname = lsep + 1;
@@ -336,7 +336,7 @@ resolve_symlinks(char *path)
rllen = readlink(fname, link_buf, sizeof(link_buf));
if (rllen < 0 || rllen >= sizeof(link_buf))
{
- log_error(gettext("could not read symbolic link \"%s\""), fname);
+ log_error(_("could not read symbolic link \"%s\""), fname);
return -1;
}
link_buf[rllen] = '\0';
@@ -348,7 +348,7 @@ resolve_symlinks(char *path)
if (!getcwd(path, MAXPGPATH))
{
- log_error(gettext("could not identify current directory: %s"),
+ log_error(_("could not identify current directory: %s"),
strerror(errno));
return -1;
}
@@ -357,7 +357,7 @@ resolve_symlinks(char *path)
if (chdir(orig_wd) == -1)
{
- log_error(gettext("could not change directory to \"%s\""), orig_wd);
+ log_error(_("could not change directory to \"%s\""), orig_wd);
return -1;
}
@@ -584,13 +584,13 @@ pclose_check(FILE *stream)
perror("pclose failed");
}
else if (WIFEXITED(exitstatus))
- log_error(gettext("child process exited with exit code %d"),
+ log_error(_("child process exited with exit code %d"),
WEXITSTATUS(exitstatus));
else if (WIFSIGNALED(exitstatus))
- log_error(gettext("child process was terminated by signal %d"),
+ log_error(_("child process was terminated by signal %d"),
WTERMSIG(exitstatus));
else
- log_error(gettext("child process exited with unrecognized status %d"),
+ log_error(_("child process exited with unrecognized status %d"),
exitstatus);
return -1;