-# $PostgreSQL: pgsql/src/backend/nls.mk,v 1.15 2004/08/11 09:00:27 petere Exp $
+# $PostgreSQL: pgsql/src/backend/nls.mk,v 1.16 2004/11/27 22:44:10 petere Exp $
CATALOG_NAME := postgres
AVAIL_LANGUAGES := af cs de es fr hr hu it nb pt_BR ru sk sv tr zh_CN zh_TW
GETTEXT_FILES := + gettext-files
GETTEXT_TRIGGERS:= errmsg errdetail errhint errcontext write_stderr yyerror
gettext-files: distprep
- find $(srcdir)/ -name '*.c' -print >$@
+ find $(srcdir)/ $(srcdir)/../port/ -name '*.c' -print >$@
my-maintainer-clean:
rm -f gettext-files
-# $PostgreSQL: pgsql/src/bin/initdb/nls.mk,v 1.15 2004/11/16 22:43:48 petere Exp $
+# $PostgreSQL: pgsql/src/bin/initdb/nls.mk,v 1.16 2004/11/27 22:44:11 petere Exp $
CATALOG_NAME := initdb
AVAIL_LANGUAGES := cs de es fr it pt_BR ro ru sk sl sv tr zh_CN zh_TW
-GETTEXT_FILES := initdb.c
+GETTEXT_FILES := initdb.c ../../port/dirmod.c ../../port/exec.c
GETTEXT_TRIGGERS:= _ simple_prompt
-# $PostgreSQL: pgsql/src/bin/pg_config/nls.mk,v 1.11 2004/11/23 23:13:07 petere Exp $
+# $PostgreSQL: pgsql/src/bin/pg_config/nls.mk,v 1.12 2004/11/27 22:44:12 petere Exp $
CATALOG_NAME := pg_config
AVAIL_LANGUAGES := cs de es fr pt_BR ro ru sl sv tr zh_TW
-GETTEXT_FILES := pg_config.c
+GETTEXT_FILES := pg_config.c ../../port/exec.c
GETTEXT_TRIGGERS:= _
-# $PostgreSQL: pgsql/src/bin/pg_ctl/nls.mk,v 1.13 2004/11/23 23:13:18 petere Exp $
+# $PostgreSQL: pgsql/src/bin/pg_ctl/nls.mk,v 1.14 2004/11/27 22:44:13 petere Exp $
CATALOG_NAME := pg_ctl
AVAIL_LANGUAGES := cs de es fr pt_BR ro ru sk sl sv tr zh_CN zh_TW
-GETTEXT_FILES := pg_ctl.c
+GETTEXT_FILES := pg_ctl.c ../../port/exec.c
GETTEXT_TRIGGERS:= _ simple_prompt
-# $PostgreSQL: pgsql/src/bin/pg_dump/nls.mk,v 1.17 2004/11/18 10:09:58 petere Exp $
+# $PostgreSQL: pgsql/src/bin/pg_dump/nls.mk,v 1.18 2004/11/27 22:44:13 petere Exp $
CATALOG_NAME := pg_dump
AVAIL_LANGUAGES := cs de es fr it nb pt_BR ro ru sk sl sv tr zh_CN zh_TW
GETTEXT_FILES := pg_dump.c common.c pg_backup_archiver.c pg_backup_custom.c \
pg_backup_db.c pg_backup_files.c pg_backup_null.c \
- pg_backup_tar.c pg_restore.c pg_dumpall.c
+ pg_backup_tar.c pg_restore.c pg_dumpall.c \
+ ../../port/exec.c
GETTEXT_TRIGGERS:= write_msg:2 die_horribly:3 exit_horribly:3 simple_prompt \
ExecuteSqlCommand:3 ahlog:3 _
-# $PostgreSQL: pgsql/src/bin/psql/nls.mk,v 1.19 2004/11/07 23:38:15 petere Exp $
+# $PostgreSQL: pgsql/src/bin/psql/nls.mk,v 1.20 2004/11/27 22:44:14 petere Exp $
CATALOG_NAME := psql
AVAIL_LANGUAGES := cs de es fa fr hu it nb pt_BR ro ru sk sl sv tr zh_CN zh_TW
GETTEXT_FILES := command.c common.c copy.c help.c input.c large_obj.c \
- mainloop.c print.c startup.c describe.c sql_help.h
+ mainloop.c print.c startup.c describe.c sql_help.h \
+ ../../port/exec.c
GETTEXT_TRIGGERS:= _ N_ psql_error simple_prompt
* Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.32 2004/10/28 22:09:31 tgl Exp $
+ * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.33 2004/11/27 22:44:15 petere Exp $
*
*-------------------------------------------------------------------------
*/
#endif
#endif
-#define _(x) gettext((x))
-
#ifndef FRONTEND
/*
if ((res = malloc(size)) == NULL)
{
- fprintf(stderr, _("out of memory\n"));
+ fprintf(stderr, gettext("out of memory\n"));
exit(1);
}
return res;
if ((res = strdup(string)) == NULL)
{
- fprintf(stderr, _("out of memory\n"));
+ fprintf(stderr, gettext("out of memory\n"));
exit(1);
}
return res;
if ((res = realloc(pointer, size)) == NULL)
{
- fprintf(stderr, _("out of memory\n"));
+ fprintf(stderr, gettext("out of memory\n"));
exit(1);
}
return res;
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/exec.c,v 1.32 2004/11/06 23:06:29 tgl Exp $
+ * $PostgreSQL: pgsql/src/port/exec.c,v 1.33 2004/11/27 22:44:15 petere Exp $
*
*-------------------------------------------------------------------------
*/
#include <unistd.h>
#endif
-#define _(x) gettext(x)
-
#ifndef S_IRUSR /* XXX [TRH] should be in a header */
#define S_IRUSR S_IREAD
#define S_IWUSR S_IWRITE
if (!getcwd(cwd, MAXPGPATH))
{
- log_error(_("could not identify current directory: %s"),
+ log_error(gettext("could not identify current directory: %s"),
strerror(errno));
return -1;
}
*/
if (!getcwd(orig_wd, MAXPGPATH))
{
- log_error(_("could not identify current directory: %s"),
+ log_error(gettext("could not identify current directory: %s"),
strerror(errno));
return -1;
}
*lsep = '\0';
if (chdir(path) == -1)
{
- log_error(_("could not change directory to \"%s\""), path);
+ log_error(gettext("could not change directory to \"%s\""), path);
return -1;
}
fname = lsep + 1;
rllen = readlink(fname, link_buf, sizeof(link_buf));
if (rllen < 0 || rllen >= sizeof(link_buf))
{
- log_error(_("could not read symbolic link \"%s\""), fname);
+ log_error(gettext("could not read symbolic link \"%s\""), fname);
return -1;
}
link_buf[rllen] = '\0';
if (!getcwd(path, MAXPGPATH))
{
- log_error(_("could not identify current directory: %s"),
+ log_error(gettext("could not identify current directory: %s"),
strerror(errno));
return -1;
}
if (chdir(orig_wd) == -1)
{
- log_error(_("could not change directory to \"%s\""), orig_wd);
+ log_error(gettext("could not change directory to \"%s\""), orig_wd);
return -1;
}
perror("pclose failed");
}
else if (WIFEXITED(exitstatus))
- log_error(_("child process exited with exit code %d"),
+ log_error(gettext("child process exited with exit code %d"),
WEXITSTATUS(exitstatus));
else if (WIFSIGNALED(exitstatus))
- log_error(_("child process was terminated by signal %d"),
+ log_error(gettext("child process was terminated by signal %d"),
WTERMSIG(exitstatus));
else
- log_error(_("child process exited with unrecognized status %d"),
+ log_error(gettext("child process exited with unrecognized status %d"),
exitstatus);
return -1;