Add NLS support.
This commit is contained in:
parent
42ce74bf17
commit
e2d9066527
|
@ -43,7 +43,7 @@
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
* Portions taken from FreeBSD.
|
* Portions taken from FreeBSD.
|
||||||
*
|
*
|
||||||
* $Header: /cvsroot/pgsql/src/bin/initdb/initdb.c,v 1.11 2003/11/17 20:35:28 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/bin/initdb/initdb.c,v 1.12 2003/11/23 21:41:30 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -66,6 +66,8 @@ int optreset;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#define _(x) gettext((x))
|
||||||
|
|
||||||
/* version string we expect back from postgres */
|
/* version string we expect back from postgres */
|
||||||
#define PG_VERSIONSTR "postgres (PostgreSQL) " PG_VERSION "\n"
|
#define PG_VERSIONSTR "postgres (PostgreSQL) " PG_VERSION "\n"
|
||||||
|
|
||||||
|
@ -195,11 +197,12 @@ static void set_info_version(void);
|
||||||
static void setup_schema(void);
|
static void setup_schema(void);
|
||||||
static void vacuum_db(void);
|
static void vacuum_db(void);
|
||||||
static void make_template0(void);
|
static void make_template0(void);
|
||||||
static void usage(void);
|
static void usage(const char *);
|
||||||
static void trapsig(int);
|
static void trapsig(int);
|
||||||
static void check_ok(void);
|
static void check_ok(void);
|
||||||
static char *xstrdup(const char *);
|
static char *xstrdup(const char *);
|
||||||
static void *xmalloc(size_t);
|
static void *xmalloc(size_t);
|
||||||
|
static void init_nls(void);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* macros for running pipes to postgres
|
* macros for running pipes to postgres
|
||||||
|
@ -247,7 +250,7 @@ xmalloc(size_t size)
|
||||||
result = malloc(size);
|
result = malloc(size);
|
||||||
if (!result)
|
if (!result)
|
||||||
{
|
{
|
||||||
fputs("malloc failure - bailing out\n", stderr);
|
fputs(_("malloc failure - bailing out\n"), stderr);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
@ -261,7 +264,7 @@ xstrdup(const char *s)
|
||||||
result = strdup(s);
|
result = strdup(s);
|
||||||
if (!result)
|
if (!result)
|
||||||
{
|
{
|
||||||
fputs("strdup failure - bailing out\n", stderr);
|
fputs(_("strdup failure - bailing out\n"), stderr);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
@ -392,7 +395,7 @@ readfile(char *path)
|
||||||
|
|
||||||
if ((infile = fopen(path, "r")) == NULL)
|
if ((infile = fopen(path, "r")) == NULL)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "could not read %s\n", path);
|
fprintf(stderr, _("could not read %s\n"), path);
|
||||||
exit_nicely();
|
exit_nicely();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -450,7 +453,7 @@ writefile(char *path, char **lines)
|
||||||
;
|
;
|
||||||
if ((out_file = fopen(path, PG_BINARY_W)) == NULL)
|
if ((out_file = fopen(path, PG_BINARY_W)) == NULL)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "could not write %s\n", path);
|
fprintf(stderr, _("could not write %s\n"), path);
|
||||||
exit_nicely();
|
exit_nicely();
|
||||||
}
|
}
|
||||||
for (line = lines; *line != NULL; line++)
|
for (line = lines; *line != NULL; line++)
|
||||||
|
@ -481,17 +484,17 @@ pclose_check(FILE *stream)
|
||||||
}
|
}
|
||||||
else if (WIFEXITED(exitstatus))
|
else if (WIFEXITED(exitstatus))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "child process exited with exit code %d\n",
|
fprintf(stderr, _("child process exited with exit code %d\n"),
|
||||||
WEXITSTATUS(exitstatus));
|
WEXITSTATUS(exitstatus));
|
||||||
}
|
}
|
||||||
else if (WIFSIGNALED(exitstatus))
|
else if (WIFSIGNALED(exitstatus))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "child process was terminated by signal %d\n",
|
fprintf(stderr, _("child process was terminated by signal %d\n"),
|
||||||
WTERMSIG(exitstatus));
|
WTERMSIG(exitstatus));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf(stderr, "child process exited with unexpected status %d\n",
|
fprintf(stderr, _("child process exited with unexpected status %d\n"),
|
||||||
exitstatus);
|
exitstatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -612,24 +615,24 @@ mkdir_p(char *path, mode_t omode)
|
||||||
static void
|
static void
|
||||||
exit_nicely(void)
|
exit_nicely(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s: failed\n", progname);
|
fprintf(stderr, _("%s: failed\n"), progname);
|
||||||
|
|
||||||
if (!noclean)
|
if (!noclean)
|
||||||
{
|
{
|
||||||
if (made_new_pgdata)
|
if (made_new_pgdata)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s: removing data directory \"%s\"\n",
|
fprintf(stderr, _("%s: removing data directory \"%s\"\n"),
|
||||||
progname, pg_data);
|
progname, pg_data);
|
||||||
if (!rmtree(pg_data, true))
|
if (!rmtree(pg_data, true))
|
||||||
fprintf(stderr, "%s: failed\n", progname);
|
fprintf(stderr, _("%s: failed\n"), progname);
|
||||||
}
|
}
|
||||||
else if (found_existing_pgdata)
|
else if (found_existing_pgdata)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"%s: removing contents of data directory \"%s\"\n",
|
_("%s: removing contents of data directory \"%s\"\n"),
|
||||||
progname, pg_data);
|
progname, pg_data);
|
||||||
if (!rmtree(pg_data, false))
|
if (!rmtree(pg_data, false))
|
||||||
fprintf(stderr, "%s: failed\n", progname);
|
fprintf(stderr, _("%s: failed\n"), progname);
|
||||||
}
|
}
|
||||||
/* otherwise died during startup, do nothing! */
|
/* otherwise died during startup, do nothing! */
|
||||||
}
|
}
|
||||||
|
@ -637,7 +640,7 @@ exit_nicely(void)
|
||||||
{
|
{
|
||||||
if (made_new_pgdata || found_existing_pgdata)
|
if (made_new_pgdata || found_existing_pgdata)
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"%s: data directory \"%s\" not removed at user's request\n",
|
_("%s: data directory \"%s\" not removed at user's request\n"),
|
||||||
progname, pg_data);
|
progname, pg_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -663,10 +666,10 @@ get_id(void)
|
||||||
if (!geteuid()) /* 0 is root's uid */
|
if (!geteuid()) /* 0 is root's uid */
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"%s: cannot be run as root\n"
|
_("%s: cannot be run as root\n"
|
||||||
"Please log in (using, e.g., \"su\") as the "
|
"Please log in (using, e.g., \"su\") as the "
|
||||||
"(unprivileged) user that will\n"
|
"(unprivileged) user that will\n"
|
||||||
"own the server process.\n",
|
"own the server process.\n"),
|
||||||
progname);
|
progname);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@ -707,7 +710,7 @@ get_encoding_id(char *encoding_name)
|
||||||
return xstrdup(result);
|
return xstrdup(result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fprintf(stderr, "%s: \"%s\" is not a valid server encoding name\n",
|
fprintf(stderr, _("%s: \"%s\" is not a valid server encoding name\n"),
|
||||||
progname, encoding_name ? encoding_name : "(null)");
|
progname, encoding_name ? encoding_name : "(null)");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@ -838,9 +841,9 @@ check_input(char *path)
|
||||||
if (stat(path, &statbuf) != 0 || !S_ISREG(statbuf.st_mode))
|
if (stat(path, &statbuf) != 0 || !S_ISREG(statbuf.st_mode))
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"%s: file \"%s\" not found\n"
|
_("%s: file \"%s\" not found\n"
|
||||||
"This means you have a corrupted installation or identified\n"
|
"This means you have a corrupted installation or identified\n"
|
||||||
"the wrong directory with the invocation option -L.\n",
|
"the wrong directory with the invocation option -L.\n"),
|
||||||
progname, path);
|
progname, path);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@ -1086,7 +1089,7 @@ test_connections(void)
|
||||||
int i,
|
int i,
|
||||||
status;
|
status;
|
||||||
|
|
||||||
printf("selecting default max_connections ... ");
|
printf(_("selecting default max_connections ... "));
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
for (i = 0; i < len; i++)
|
for (i = 0; i < len; i++)
|
||||||
|
@ -1122,7 +1125,7 @@ test_buffers(void)
|
||||||
int i,
|
int i,
|
||||||
status;
|
status;
|
||||||
|
|
||||||
printf("selecting default shared_buffers ... ");
|
printf(_("selecting default shared_buffers ... "));
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
for (i = 0; i < len; i++)
|
for (i = 0; i < len; i++)
|
||||||
|
@ -1155,7 +1158,7 @@ setup_config(void)
|
||||||
char repltok[100];
|
char repltok[100];
|
||||||
char path[MAXPGPATH];
|
char path[MAXPGPATH];
|
||||||
|
|
||||||
fputs("creating configuration files ... ", stdout);
|
fputs(_("creating configuration files ... "), stdout);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
/* postgresql.conf */
|
/* postgresql.conf */
|
||||||
|
@ -1233,7 +1236,7 @@ bootstrap_template1(char *short_version)
|
||||||
|
|
||||||
PG_CMD_DECL;
|
PG_CMD_DECL;
|
||||||
|
|
||||||
printf("creating template1 database in %s/base/1 ... ", pg_data);
|
printf(_("creating template1 database in %s/base/1 ... "), pg_data);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
|
@ -1249,9 +1252,9 @@ bootstrap_template1(char *short_version)
|
||||||
if (strcmp(headerline, *bki_lines) != 0)
|
if (strcmp(headerline, *bki_lines) != 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"%s: input file \"%s\" does not belong to PostgreSQL %s\n"
|
_("%s: input file \"%s\" does not belong to PostgreSQL %s\n"
|
||||||
"Check your installation or specify the correct path "
|
"Check your installation or specify the correct path "
|
||||||
"using the option -L.\n",
|
"using the option -L.\n"),
|
||||||
progname, bki_file, PG_VERSION);
|
progname, bki_file, PG_VERSION);
|
||||||
exit_nicely();
|
exit_nicely();
|
||||||
|
|
||||||
|
@ -1322,7 +1325,7 @@ setup_shadow(void)
|
||||||
|
|
||||||
PG_CMD_DECL;
|
PG_CMD_DECL;
|
||||||
|
|
||||||
fputs("initializing pg_shadow ... ", stdout);
|
fputs(_("initializing pg_shadow ... "), stdout);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
snprintf(cmd, sizeof(cmd),
|
snprintf(cmd, sizeof(cmd),
|
||||||
|
@ -1357,12 +1360,12 @@ get_set_pwd(void)
|
||||||
pwd2 = simple_prompt("Enter it again: ", 100, false);
|
pwd2 = simple_prompt("Enter it again: ", 100, false);
|
||||||
if (strcmp(pwd1, pwd2) != 0)
|
if (strcmp(pwd1, pwd2) != 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Passwords didn't match.\n");
|
fprintf(stderr, _("Passwords didn't match.\n"));
|
||||||
exit_nicely();
|
exit_nicely();
|
||||||
}
|
}
|
||||||
free(pwd2);
|
free(pwd2);
|
||||||
|
|
||||||
printf("setting password ... ");
|
printf(_("setting password ... "));
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
snprintf(cmd, sizeof(cmd),
|
snprintf(cmd, sizeof(cmd),
|
||||||
|
@ -1386,8 +1389,8 @@ get_set_pwd(void)
|
||||||
if (stat(pwdpath, &statbuf) != 0 || !S_ISREG(statbuf.st_mode))
|
if (stat(pwdpath, &statbuf) != 0 || !S_ISREG(statbuf.st_mode))
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"%s: The password file was not generated. "
|
_("%s: The password file was not generated. "
|
||||||
"Please report this problem.\n",
|
"Please report this problem.\n"),
|
||||||
progname);
|
progname);
|
||||||
exit_nicely();
|
exit_nicely();
|
||||||
}
|
}
|
||||||
|
@ -1416,7 +1419,7 @@ unlimit_systables(void)
|
||||||
|
|
||||||
PG_CMD_DECL;
|
PG_CMD_DECL;
|
||||||
|
|
||||||
fputs("enabling unlimited row size for system tables ... ", stdout);
|
fputs(_("enabling unlimited row size for system tables ... "), stdout);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
snprintf(cmd, sizeof(cmd),
|
snprintf(cmd, sizeof(cmd),
|
||||||
|
@ -1489,7 +1492,7 @@ setup_depend(void)
|
||||||
|
|
||||||
PG_CMD_DECL;
|
PG_CMD_DECL;
|
||||||
|
|
||||||
fputs("initializing pg_depend ... ", stdout);
|
fputs(_("initializing pg_depend ... "), stdout);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
snprintf(cmd, sizeof(cmd),
|
snprintf(cmd, sizeof(cmd),
|
||||||
|
@ -1517,7 +1520,7 @@ setup_sysviews(void)
|
||||||
|
|
||||||
char **sysviews_setup;
|
char **sysviews_setup;
|
||||||
|
|
||||||
fputs("creating system views ... ", stdout);
|
fputs(_("creating system views ... "), stdout);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
sysviews_setup = readfile(system_views_file);
|
sysviews_setup = readfile(system_views_file);
|
||||||
|
@ -1554,7 +1557,7 @@ setup_description(void)
|
||||||
PG_CMD_DECL_NOLINE;
|
PG_CMD_DECL_NOLINE;
|
||||||
int fres;
|
int fres;
|
||||||
|
|
||||||
fputs("loading pg_description ... ", stdout);
|
fputs(_("loading pg_description ... "), stdout);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
snprintf(cmd, sizeof(cmd),
|
snprintf(cmd, sizeof(cmd),
|
||||||
|
@ -1602,7 +1605,7 @@ setup_conversion(void)
|
||||||
|
|
||||||
char **conv_lines;
|
char **conv_lines;
|
||||||
|
|
||||||
fputs("creating conversions ... ", stdout);
|
fputs(_("creating conversions ... "), stdout);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
snprintf(cmd, sizeof(cmd),
|
snprintf(cmd, sizeof(cmd),
|
||||||
|
@ -1658,7 +1661,7 @@ setup_privileges(void)
|
||||||
|
|
||||||
char **priv_lines;
|
char **priv_lines;
|
||||||
|
|
||||||
fputs("setting privileges on built-in objects ... ", stdout);
|
fputs(_("setting privileges on built-in objects ... "), stdout);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
snprintf(cmd, sizeof(cmd),
|
snprintf(cmd, sizeof(cmd),
|
||||||
|
@ -1716,7 +1719,7 @@ setup_schema(void)
|
||||||
char **lines;
|
char **lines;
|
||||||
int fres;
|
int fres;
|
||||||
|
|
||||||
fputs("creating information schema ... ", stdout);
|
fputs(_("creating information schema ... "), stdout);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
lines = readfile(info_schema_file);
|
lines = readfile(info_schema_file);
|
||||||
|
@ -1778,7 +1781,7 @@ vacuum_db(void)
|
||||||
{
|
{
|
||||||
PG_CMD_DECL_NOLINE;
|
PG_CMD_DECL_NOLINE;
|
||||||
|
|
||||||
fputs("vacuuming database template1 ... ", stdout);
|
fputs(_("vacuuming database template1 ... "), stdout);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
snprintf(cmd, sizeof(cmd),
|
snprintf(cmd, sizeof(cmd),
|
||||||
|
@ -1834,7 +1837,7 @@ make_template0(void)
|
||||||
|
|
||||||
PG_CMD_DECL;
|
PG_CMD_DECL;
|
||||||
|
|
||||||
fputs("copying template1 to template0 ... ", stdout);
|
fputs(_("copying template1 to template0 ... "), stdout);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
snprintf(cmd, sizeof(cmd),
|
snprintf(cmd, sizeof(cmd),
|
||||||
|
@ -1891,18 +1894,18 @@ check_ok()
|
||||||
{
|
{
|
||||||
if (caught_signal)
|
if (caught_signal)
|
||||||
{
|
{
|
||||||
printf("caught signal\n");
|
printf(_("caught signal\n"));
|
||||||
exit_nicely();
|
exit_nicely();
|
||||||
}
|
}
|
||||||
else if (output_failed)
|
else if (output_failed)
|
||||||
{
|
{
|
||||||
printf("failed to write to child process\n");
|
printf(_("failed to write to child process\n"));
|
||||||
exit_nicely();
|
exit_nicely();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* all seems well */
|
/* all seems well */
|
||||||
printf("ok\n");
|
printf(_("ok\n"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1932,7 +1935,7 @@ chklocale(const char *locale)
|
||||||
|
|
||||||
/* should we exit here? */
|
/* should we exit here? */
|
||||||
if (!ret)
|
if (!ret)
|
||||||
fprintf(stderr, "%s: invalid locale name \"%s\"\n", progname, locale);
|
fprintf(stderr, _("%s: invalid locale name \"%s\"\n"), progname, locale);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -1993,59 +1996,50 @@ setlocales(void)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* help text data
|
|
||||||
*
|
|
||||||
* Note: $CMDNAME is replaced by the right thing in usage()
|
|
||||||
*/
|
|
||||||
char *usage_text[] = {
|
|
||||||
"$CMDNAME initializes a PostgreSQL database cluster.\n",
|
|
||||||
"\n",
|
|
||||||
"Usage:\n",
|
|
||||||
" $CMDNAME [OPTION]... [DATADIR]\n",
|
|
||||||
"\n",
|
|
||||||
"Options:\n",
|
|
||||||
" [-D, --pgdata=]DATADIR location for this database cluster\n",
|
|
||||||
" -E, --encoding=ENCODING set default encoding for new databases\n",
|
|
||||||
" --locale=LOCALE initialize database cluster with given locale\n",
|
|
||||||
" --lc-collate, --lc-ctype, --lc-messages=LOCALE\n",
|
|
||||||
" --lc-monetary, --lc-numeric, --lc-time=LOCALE\n",
|
|
||||||
" initialize database cluster with given locale\n",
|
|
||||||
" in the respective category (default taken from\n",
|
|
||||||
" environment)\n",
|
|
||||||
" --no-locale equivalent to --locale=C\n",
|
|
||||||
" -U, --username=NAME database superuser name\n",
|
|
||||||
" -W, --pwprompt prompt for a password for the new superuser\n",
|
|
||||||
" -?, --help show this help, then exit\n",
|
|
||||||
" -V, --version output version information, then exit\n",
|
|
||||||
"\n",
|
|
||||||
"Less commonly used options: \n",
|
|
||||||
" -d, --debug generate lots of debugging output\n",
|
|
||||||
" -s, --show show internal settings\n",
|
|
||||||
" -L DIRECTORY where to find the input files\n",
|
|
||||||
" -n, --noclean do not clean up after errors\n",
|
|
||||||
"\n",
|
|
||||||
"If the data directory is not specified, the environment variable PGDATA\n",
|
|
||||||
"is used.\n",
|
|
||||||
"\n",
|
|
||||||
"Report bugs to <pgsql-bugs@postgresql.org>.\n",
|
|
||||||
NULL
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* print help text
|
* print help text
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
usage(void)
|
usage(const char *progname)
|
||||||
{
|
{
|
||||||
int i;
|
printf(_("%s initializes a PostgreSQL database cluster.\n\n"), progname);
|
||||||
char **newtext;
|
printf(_("Usage:\n"));
|
||||||
|
printf(_(" %s [OPTION]... [DATADIR]\n"), progname);
|
||||||
|
printf(_("\nOptions:\n"));
|
||||||
|
printf(_(" [-D, --pgdata=]DATADIR location for this database cluster\n"));
|
||||||
|
printf(_(" -E, --encoding=ENCODING set default encoding for new databases\n"));
|
||||||
|
printf(_(" --locale=LOCALE initialize database cluster with given locale\n"));
|
||||||
|
printf(_(" --lc-collate, --lc-ctype, --lc-messages=LOCALE\n"));
|
||||||
|
printf(_(" --lc-monetary, --lc-numeric, --lc-time=LOCALE\n"));
|
||||||
|
printf(_(" initialize database cluster with given locale\n"));
|
||||||
|
printf(_(" in the respective category (default taken from\n"));
|
||||||
|
printf(_(" environment)\n"));
|
||||||
|
printf(_(" --no-locale equivalent to --locale=C\n"));
|
||||||
|
printf(_(" -U, --username=NAME database superuser name\n"));
|
||||||
|
printf(_(" -W, --pwprompt prompt for a password for the new superuser\n"));
|
||||||
|
printf(_(" -?, --help show this help, then exit\n"));
|
||||||
|
printf(_(" -V, --version output version information, then exit\n"));
|
||||||
|
printf(_("\nLess commonly used options: \n"));
|
||||||
|
printf(_(" -d, --debug generate lots of debugging output\n"));
|
||||||
|
printf(_(" -s, --show show internal settings\n"));
|
||||||
|
printf(_(" -L DIRECTORY where to find the input files\n"));
|
||||||
|
printf(_(" -n, --noclean do not clean up after errors\n"));
|
||||||
|
printf(_("\nIf the data directory is not specified, the environment variable PGDATA\n"));
|
||||||
|
printf(_("is used.\n"));
|
||||||
|
printf(_("\nReport bugs to <pgsql-bugs@postgresql.org>.\n"));
|
||||||
|
}
|
||||||
|
|
||||||
newtext = replace_token(usage_text, "$CMDNAME", progname);
|
/*
|
||||||
|
* Initialized NLS if enabled.
|
||||||
for (i = 0; newtext[i]; i++)
|
*/
|
||||||
fputs(newtext[i], stdout); /* faster than printf */
|
void
|
||||||
|
init_nls(void)
|
||||||
|
{
|
||||||
|
#ifdef ENABLE_NLS
|
||||||
|
setlocale(LC_ALL, "");
|
||||||
|
bindtextdomain("initdb", LOCALEDIR);
|
||||||
|
textdomain("initdb");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2091,7 +2085,7 @@ main(int argc, char *argv[])
|
||||||
char *exe; /* location of exe suffix in progname */
|
char *exe; /* location of exe suffix in progname */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
setlocale(LC_ALL, "");
|
init_nls();
|
||||||
|
|
||||||
/* parse argv[0] - detect explicit path if there was one */
|
/* parse argv[0] - detect explicit path if there was one */
|
||||||
carg0 = xstrdup(argv[0]);
|
carg0 = xstrdup(argv[0]);
|
||||||
|
@ -2151,11 +2145,11 @@ main(int argc, char *argv[])
|
||||||
break;
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
debug = true;
|
debug = true;
|
||||||
printf("Running in debug mode.\n");
|
printf(_("Running in debug mode.\n"));
|
||||||
break;
|
break;
|
||||||
case 'n':
|
case 'n':
|
||||||
noclean = true;
|
noclean = true;
|
||||||
printf("Running in noclean mode. Mistakes will not be cleaned up.\n");
|
printf(_("Running in noclean mode. Mistakes will not be cleaned up.\n"));
|
||||||
break;
|
break;
|
||||||
case 'L':
|
case 'L':
|
||||||
datadir = xstrdup(optarg);
|
datadir = xstrdup(optarg);
|
||||||
|
@ -2195,7 +2189,7 @@ main(int argc, char *argv[])
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
show_help = true;
|
show_help = true;
|
||||||
printf("Unrecognized option: %c\n", c);
|
printf(_("Unrecognized option: %c\n"), c);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2219,7 +2213,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
if (show_help)
|
if (show_help)
|
||||||
{
|
{
|
||||||
usage();
|
usage(progname);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2234,12 +2228,12 @@ main(int argc, char *argv[])
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"%s: no data directory specified\n"
|
_("%s: no data directory specified\n"
|
||||||
"You must identify the directory where the data "
|
"You must identify the directory where the data "
|
||||||
"for this database system\n"
|
"for this database system\n"
|
||||||
"will reside. Do this with either the invocation "
|
"will reside. Do this with either the invocation "
|
||||||
"option -D or the\n"
|
"option -D or the\n"
|
||||||
"environment variable PGDATA.\n",
|
"environment variable PGDATA.\n"),
|
||||||
progname);
|
progname);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@ -2260,16 +2254,16 @@ main(int argc, char *argv[])
|
||||||
if (set_paths() != 0)
|
if (set_paths() != 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"The program \"postgres\" is needed by %s "
|
_("The program \"postgres\" is needed by %s "
|
||||||
"but was not found in \n"
|
"but was not found in \n"
|
||||||
"the directory \"%s\". Check your installation.\n",
|
"the directory \"%s\". Check your installation.\n"),
|
||||||
progname, bindir);
|
progname, bindir);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((short_version = get_short_version()) == NULL)
|
if ((short_version = get_short_version()) == NULL)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s: could not get valid short version\n", progname);
|
fprintf(stderr, _("%s: could not get valid short version\n"), progname);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2321,9 +2315,9 @@ main(int argc, char *argv[])
|
||||||
check_input(features_file);
|
check_input(features_file);
|
||||||
check_input(system_views_file);
|
check_input(system_views_file);
|
||||||
|
|
||||||
printf("The files belonging to this database system will be owned "
|
printf(_("The files belonging to this database system will be owned "
|
||||||
"by user \"%s\".\n"
|
"by user \"%s\".\n"
|
||||||
"This user must also own the server process.\n\n",
|
"This user must also own the server process.\n\n"),
|
||||||
effective_user);
|
effective_user);
|
||||||
|
|
||||||
setlocales();
|
setlocales();
|
||||||
|
@ -2334,18 +2328,18 @@ main(int argc, char *argv[])
|
||||||
strcmp(lc_ctype, lc_monetary) == 0 &&
|
strcmp(lc_ctype, lc_monetary) == 0 &&
|
||||||
strcmp(lc_ctype, lc_messages) == 0)
|
strcmp(lc_ctype, lc_messages) == 0)
|
||||||
{
|
{
|
||||||
printf("The database cluster will be initialized with locale %s.\n\n",
|
printf(_("The database cluster will be initialized with locale %s.\n\n"),
|
||||||
lc_ctype);
|
lc_ctype);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("The database cluster will be initialized with locales\n"
|
printf(_("The database cluster will be initialized with locales\n"
|
||||||
" COLLATE: %s\n"
|
" COLLATE: %s\n"
|
||||||
" CTYPE: %s\n"
|
" CTYPE: %s\n"
|
||||||
" MESSAGES: %s\n"
|
" MESSAGES: %s\n"
|
||||||
" MONETARY: %s\n"
|
" MONETARY: %s\n"
|
||||||
" NUMERIC: %s\n"
|
" NUMERIC: %s\n"
|
||||||
" TIME: %s\n\n",
|
" TIME: %s\n\n"),
|
||||||
lc_collate,
|
lc_collate,
|
||||||
lc_ctype,
|
lc_ctype,
|
||||||
lc_messages,
|
lc_messages,
|
||||||
|
@ -2384,7 +2378,7 @@ main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
/* PGDATA not there, must create it */
|
/* PGDATA not there, must create it */
|
||||||
printf("creating directory %s ... ",
|
printf(_("creating directory %s ... "),
|
||||||
pg_data);
|
pg_data);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
|
@ -2398,7 +2392,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
/* Present but empty, fix permissions and use it */
|
/* Present but empty, fix permissions and use it */
|
||||||
printf("fixing permissions on existing directory %s ... ",
|
printf(_("fixing permissions on existing directory %s ... "),
|
||||||
pg_data);
|
pg_data);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
|
@ -2416,10 +2410,10 @@ main(int argc, char *argv[])
|
||||||
case 2:
|
case 2:
|
||||||
/* Present and not empty */
|
/* Present and not empty */
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"%s: directory \"%s\" exists but is not empty\n"
|
_("%s: directory \"%s\" exists but is not empty\n"
|
||||||
"If you want to create a new database system, either remove or empty\n"
|
"If you want to create a new database system, either remove or empty\n"
|
||||||
"the directory \"%s\" or run %s\n"
|
"the directory \"%s\" or run %s\n"
|
||||||
"with an argument other than \"%s\".\n",
|
"with an argument other than \"%s\".\n"),
|
||||||
progname, pg_data, pg_data, progname, pg_data);
|
progname, pg_data, pg_data, progname, pg_data);
|
||||||
exit(1); /* no further message needed */
|
exit(1); /* no further message needed */
|
||||||
|
|
||||||
|
@ -2433,7 +2427,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
for (i = 0; i < (sizeof(subdirs) / sizeof(char *)); i++)
|
for (i = 0; i < (sizeof(subdirs) / sizeof(char *)); i++)
|
||||||
{
|
{
|
||||||
printf("creating directory %s/%s ... ", pg_data, subdirs[i]);
|
printf(_("creating directory %s/%s ... "), pg_data, subdirs[i]);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
if (!mkdatadir(subdirs[i]))
|
if (!mkdatadir(subdirs[i]))
|
||||||
|
@ -2491,10 +2485,10 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
make_template0();
|
make_template0();
|
||||||
|
|
||||||
printf("\nSuccess. You can now start the database server using:\n\n"
|
printf(_("\nSuccess. You can now start the database server using:\n\n"
|
||||||
" %s%s%s/postmaster -D %s%s%s\n"
|
" %s%s%s/postmaster -D %s%s%s\n"
|
||||||
"or\n"
|
"or\n"
|
||||||
" %s%s%s/pg_ctl -D %s%s%s -l logfile start\n\n",
|
" %s%s%s/pg_ctl -D %s%s%s -l logfile start\n\n"),
|
||||||
QUOTE_PATH, pgpath, QUOTE_PATH, QUOTE_PATH, pg_data, QUOTE_PATH,
|
QUOTE_PATH, pgpath, QUOTE_PATH, QUOTE_PATH, pg_data, QUOTE_PATH,
|
||||||
QUOTE_PATH, pgpath, QUOTE_PATH, QUOTE_PATH, pg_data, QUOTE_PATH);
|
QUOTE_PATH, pgpath, QUOTE_PATH, QUOTE_PATH, pg_data, QUOTE_PATH);
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
# $Header: /cvsroot/pgsql/src/bin/initdb/nls.mk,v 1.1 2003/11/23 21:41:30 petere Exp $
|
||||||
|
CATALOG_NAME := initdb
|
||||||
|
AVAIL_LANGUAGES := pt_BR
|
||||||
|
GETTEXT_FILES := initdb.c
|
||||||
|
GETTEXT_TRIGGERS:= _ simple_prompt
|
|
@ -0,0 +1,489 @@
|
||||||
|
# "initdb" tranlation to Brazilian Portuguese Language.
|
||||||
|
# Euler Taveira de Oliveira <euler@ufgnet.ufg.br>, 2003.
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PostgreSQL 7.5\n"
|
||||||
|
"POT-Creation-Date: 2003-11-19 03:25-0200\n"
|
||||||
|
"PO-Revision-Date: 2003-11-19 12:10-0200\n"
|
||||||
|
"Last-Translator: Euler Taveira de Oliveira <euler@ufgnet.ufg.br>\n"
|
||||||
|
"Language-Team: Brazilian Portuguese <euler@ufgnet.ufg.br>\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=ISO-8859-1\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
|
#: initdb.c:253
|
||||||
|
msgid "malloc failure - bailing out\n"
|
||||||
|
msgstr "malloc falhou - saindo\n"
|
||||||
|
|
||||||
|
#: initdb.c:267
|
||||||
|
msgid "strdup failure - bailing out\n"
|
||||||
|
msgstr "strdup falhou - saindo\n"
|
||||||
|
|
||||||
|
#: initdb.c:398
|
||||||
|
#, c-format
|
||||||
|
msgid "could not read %s\n"
|
||||||
|
msgstr "não pôde ler %s\n"
|
||||||
|
|
||||||
|
#: initdb.c:456
|
||||||
|
#, c-format
|
||||||
|
msgid "could not write %s\n"
|
||||||
|
msgstr "não pôde escrever %s\n"
|
||||||
|
|
||||||
|
#: initdb.c:487
|
||||||
|
#, c-format
|
||||||
|
msgid "child process exited with exit code %d\n"
|
||||||
|
msgstr "processo filho terminou com código de saída %d\n"
|
||||||
|
|
||||||
|
#: initdb.c:492
|
||||||
|
#, c-format
|
||||||
|
msgid "child process was terminated by signal %d\n"
|
||||||
|
msgstr "processo filho foi terminado com sinal %d\n"
|
||||||
|
|
||||||
|
#: initdb.c:497
|
||||||
|
#, c-format
|
||||||
|
msgid "child process exited with unexpected status %d\n"
|
||||||
|
msgstr "processo filho terminou com status inesperado %d\n"
|
||||||
|
|
||||||
|
#: initdb.c:618 initdb.c:627 initdb.c:635
|
||||||
|
#, c-format
|
||||||
|
msgid "%s: failed\n"
|
||||||
|
msgstr "%s: falhou\n"
|
||||||
|
|
||||||
|
#: initdb.c:624
|
||||||
|
#, c-format
|
||||||
|
msgid "%s: removing data directory \"%s\"\n"
|
||||||
|
msgstr "%s: removendo diretório de dados \"%s\"\n"
|
||||||
|
|
||||||
|
#: initdb.c:632
|
||||||
|
#, c-format
|
||||||
|
msgid "%s: removing contents of data directory \"%s\"\n"
|
||||||
|
msgstr "%s: removendo conteúdo do diretório de dados \"%s\"\n"
|
||||||
|
|
||||||
|
#: initdb.c:643
|
||||||
|
#, c-format
|
||||||
|
msgid "%s: data directory \"%s\" not removed at user's request\n"
|
||||||
|
msgstr "%s: diretório de dados \"%s\" não foi removido a pedido do usuário\n"
|
||||||
|
|
||||||
|
#: initdb.c:669
|
||||||
|
#, c-format
|
||||||
|
msgid ""
|
||||||
|
"%s: cannot be run as root\n"
|
||||||
|
"Please log in (using, e.g., \"su\") as the (unprivileged) user that will\n"
|
||||||
|
"own the server process.\n"
|
||||||
|
msgstr ""
|
||||||
|
"%s: não pode ser executado como root\n"
|
||||||
|
"Por favor entre (utilizando, i.e., \"su\") como usuário (sem privilégio) que será\n"
|
||||||
|
"o dono do processo do servidor.\n"
|
||||||
|
|
||||||
|
#: initdb.c:713
|
||||||
|
#, c-format
|
||||||
|
msgid "%s: \"%s\" is not a valid server encoding name\n"
|
||||||
|
msgstr "%s: \"%s\" não é um nome de codificação do servidor válido\n"
|
||||||
|
|
||||||
|
#: initdb.c:844
|
||||||
|
#, c-format
|
||||||
|
msgid ""
|
||||||
|
"%s: file \"%s\" not found\n"
|
||||||
|
"This means you have a corrupted installation or identified\n"
|
||||||
|
"the wrong directory with the invocation option -L.\n"
|
||||||
|
msgstr ""
|
||||||
|
"%s: arquivo \"%s\" não encontrado\n"
|
||||||
|
"Isso significa que você tem uma instalação corrompida ou identificou\n"
|
||||||
|
"o diretório errado com a invocação da opção -L.\n"
|
||||||
|
|
||||||
|
#: initdb.c:1092
|
||||||
|
msgid "selecting default max_connections ... "
|
||||||
|
msgstr "selecionando max_connections padrão ... "
|
||||||
|
|
||||||
|
#: initdb.c:1128
|
||||||
|
msgid "selecting default shared_buffers ... "
|
||||||
|
msgstr "selecionando shared_buffers padrão ... "
|
||||||
|
|
||||||
|
#: initdb.c:1161
|
||||||
|
msgid "creating configuration files ... "
|
||||||
|
msgstr "criando arquivos de configuração ... "
|
||||||
|
|
||||||
|
#: initdb.c:1239
|
||||||
|
#, c-format
|
||||||
|
msgid "creating template1 database in %s/base/1 ... "
|
||||||
|
msgstr "criando banco de dados template1 em %s/base/1 ... "
|
||||||
|
|
||||||
|
#: initdb.c:1255
|
||||||
|
#, c-format
|
||||||
|
msgid ""
|
||||||
|
"%s: input file \"%s\" does not belong to PostgreSQL %s\n"
|
||||||
|
"Check your installation or specify the correct path using the option -L.\n"
|
||||||
|
msgstr ""
|
||||||
|
"%s: arquivo de entrada \"%s\" não pertence ao PostgreSQL %s\n"
|
||||||
|
"Verifique sua instalação ou especifique o caminho correto utilizando a opção -L.\n"
|
||||||
|
|
||||||
|
#: initdb.c:1328
|
||||||
|
msgid "initializing pg_shadow ... "
|
||||||
|
msgstr "inicializando pg_shadow ... "
|
||||||
|
|
||||||
|
#: initdb.c:1359
|
||||||
|
msgid "Enter new superuser password: "
|
||||||
|
msgstr "Digite nova senha de super-usuário: "
|
||||||
|
|
||||||
|
#: initdb.c:1360
|
||||||
|
msgid "Enter it again: "
|
||||||
|
msgstr "Digite-a novamente: "
|
||||||
|
|
||||||
|
#: initdb.c:1363
|
||||||
|
msgid "Passwords didn't match.\n"
|
||||||
|
msgstr "Senhas não combinam.\n"
|
||||||
|
|
||||||
|
#: initdb.c:1368
|
||||||
|
msgid "setting password ... "
|
||||||
|
msgstr "ajustando senha ... "
|
||||||
|
|
||||||
|
#: initdb.c:1392
|
||||||
|
#, c-format
|
||||||
|
msgid "%s: The password file was not generated. Please report this problem.\n"
|
||||||
|
msgstr "%s: O arquivo de senhas não foi gerado. Por favor reporte esse problema.\n"
|
||||||
|
|
||||||
|
#: initdb.c:1422
|
||||||
|
msgid "enabling unlimited row size for system tables ... "
|
||||||
|
msgstr "habilitando tamanho de registro ilimitado para tabelas do sistema ... "
|
||||||
|
|
||||||
|
#: initdb.c:1495
|
||||||
|
msgid "initializing pg_depend ... "
|
||||||
|
msgstr "inicializando pg_depend ... "
|
||||||
|
|
||||||
|
#: initdb.c:1523
|
||||||
|
msgid "creating system views ... "
|
||||||
|
msgstr "criando visões do sistema ... "
|
||||||
|
|
||||||
|
#: initdb.c:1560
|
||||||
|
msgid "loading pg_description ... "
|
||||||
|
msgstr "carregando pg_description ... "
|
||||||
|
|
||||||
|
#: initdb.c:1608
|
||||||
|
msgid "creating conversions ... "
|
||||||
|
msgstr "criando conversões ... "
|
||||||
|
|
||||||
|
#: initdb.c:1664
|
||||||
|
msgid "setting privileges on built-in objects ... "
|
||||||
|
msgstr "ajustando privilégios dos objetos embutidos ... "
|
||||||
|
|
||||||
|
#: initdb.c:1722
|
||||||
|
msgid "creating information schema ... "
|
||||||
|
msgstr "criando informações sobre esquema ... "
|
||||||
|
|
||||||
|
#: initdb.c:1784
|
||||||
|
msgid "vacuuming database template1 ... "
|
||||||
|
msgstr "faxinando banco de dados template1 ... "
|
||||||
|
|
||||||
|
#: initdb.c:1840
|
||||||
|
msgid "copying template1 to template0 ... "
|
||||||
|
msgstr "copiando template1 para template0 ... "
|
||||||
|
|
||||||
|
#: initdb.c:1897
|
||||||
|
msgid "caught signal\n"
|
||||||
|
msgstr "sinal foi recebido\n"
|
||||||
|
|
||||||
|
#: initdb.c:1902
|
||||||
|
msgid "failed to write to child process\n"
|
||||||
|
msgstr "falhou ao escrever em processo filho\n"
|
||||||
|
|
||||||
|
#: initdb.c:1908
|
||||||
|
msgid "ok\n"
|
||||||
|
msgstr "ok\n"
|
||||||
|
|
||||||
|
#: initdb.c:1938
|
||||||
|
#, c-format
|
||||||
|
msgid "%s: invalid locale name \"%s\"\n"
|
||||||
|
msgstr "%s: nome de localidade inválido \"%s\"\n"
|
||||||
|
|
||||||
|
#: initdb.c:2005
|
||||||
|
#, c-format
|
||||||
|
msgid ""
|
||||||
|
"%s initializes a PostgreSQL database cluster.\n"
|
||||||
|
"\n"
|
||||||
|
msgstr ""
|
||||||
|
"%s inicializa um agrupamento de banco de dados PostgreSQL.\n"
|
||||||
|
"\n"
|
||||||
|
|
||||||
|
#: initdb.c:2006
|
||||||
|
msgid "Usage:\n"
|
||||||
|
msgstr "Uso:\n"
|
||||||
|
|
||||||
|
#: initdb.c:2007
|
||||||
|
#, c-format
|
||||||
|
msgid " %s [OPTION]... [DATADIR]\n"
|
||||||
|
msgstr " %s [OPÇÃO]... [DIRDADOS]\n"
|
||||||
|
|
||||||
|
#: initdb.c:2008
|
||||||
|
msgid ""
|
||||||
|
"\n"
|
||||||
|
"Options:\n"
|
||||||
|
msgstr ""
|
||||||
|
"\n"
|
||||||
|
"Opções:\n"
|
||||||
|
|
||||||
|
#: initdb.c:2009
|
||||||
|
msgid " [-D, --pgdata=]DATADIR location for this database cluster\n"
|
||||||
|
msgstr " [-D, --pgdata=]DIRDADOS local do agrupamento de banco de dados\n"
|
||||||
|
|
||||||
|
#: initdb.c:2010
|
||||||
|
msgid " -E, --encoding=ENCODING set default encoding for new databases\n"
|
||||||
|
msgstr " -E, --enconding=CODIFICAÇÃO ajusta a codificação padrão para novos bancos de dados\n"
|
||||||
|
|
||||||
|
#: initdb.c:2011
|
||||||
|
msgid ""
|
||||||
|
" --locale=LOCALE initialize database cluster with given locale\n"
|
||||||
|
msgstr ""
|
||||||
|
" --locale=LOCALIDADE inicializa o agrupamente do banco de dados com a localidade informada\n"
|
||||||
|
|
||||||
|
#: initdb.c:2012
|
||||||
|
msgid " --lc-collate, --lc-ctype, --lc-messages=LOCALE\n"
|
||||||
|
msgstr " --lc-collate, --lc-ctype, --lc-messages=LOCALIDADE\n"
|
||||||
|
|
||||||
|
#: initdb.c:2013
|
||||||
|
msgid " --lc-monetary, --lc-numeric, --lc-time=LOCALE\n"
|
||||||
|
msgstr " --lc-monetary, --lc-numeric, --lc-time=LOCALIDADE\n"
|
||||||
|
|
||||||
|
#: initdb.c:2014
|
||||||
|
msgid ""
|
||||||
|
" initialize database cluster with given locale\n"
|
||||||
|
msgstr ""
|
||||||
|
" inicializa o agrupamento de banco de dados com a localidade especificada\n"
|
||||||
|
|
||||||
|
#: initdb.c:2015
|
||||||
|
msgid ""
|
||||||
|
" in the respective category (default taken from\n"
|
||||||
|
msgstr ""
|
||||||
|
" na categoria respectiva (padrão vem do\n"
|
||||||
|
|
||||||
|
#: initdb.c:2016
|
||||||
|
msgid " environment)\n"
|
||||||
|
msgstr " ambiente)\n"
|
||||||
|
|
||||||
|
#: initdb.c:2017
|
||||||
|
msgid " --no-locale equivalent to --locale=C\n"
|
||||||
|
msgstr " --no-locale equivalente a --locale=C\n"
|
||||||
|
|
||||||
|
#: initdb.c:2018
|
||||||
|
msgid " -U, --username=NAME database superuser name\n"
|
||||||
|
msgstr " -U, --username=NOME nome do super-usuário do banco de dados\n"
|
||||||
|
|
||||||
|
#: initdb.c:2019
|
||||||
|
msgid ""
|
||||||
|
" -W, --pwprompt prompt for a password for the new superuser\n"
|
||||||
|
msgstr ""
|
||||||
|
" -W, --pwprompt pergunta senha do novo super-usuário\n"
|
||||||
|
|
||||||
|
#: initdb.c:2020
|
||||||
|
msgid " -?, --help show this help, then exit\n"
|
||||||
|
msgstr " -?, --help mostra essa ajuda e sai\n"
|
||||||
|
|
||||||
|
#: initdb.c:2021
|
||||||
|
msgid " -V, --version output version information, then exit\n"
|
||||||
|
msgstr " -V, --version mostra informação sobre a versão e sai\n"
|
||||||
|
|
||||||
|
#: initdb.c:2022
|
||||||
|
msgid ""
|
||||||
|
"\n"
|
||||||
|
"Less commonly used options: \n"
|
||||||
|
msgstr ""
|
||||||
|
"\n"
|
||||||
|
"Opções utilizadas com menos frequência: \n"
|
||||||
|
|
||||||
|
#: initdb.c:2023
|
||||||
|
msgid " -d, --debug generate lots of debugging output\n"
|
||||||
|
msgstr " -d, --debug mostra saída de depuração\n"
|
||||||
|
|
||||||
|
#: initdb.c:2024
|
||||||
|
msgid " -s, --show show internal settings\n"
|
||||||
|
msgstr " -s, --show mostra ajustes internos\n"
|
||||||
|
|
||||||
|
#: initdb.c:2025
|
||||||
|
msgid " -L DIRECTORY where to find the input files\n"
|
||||||
|
msgstr " -L DIRETÓRIO onde encontrar os arquivos de entrada\n"
|
||||||
|
|
||||||
|
#: initdb.c:2026
|
||||||
|
msgid " -n, --noclean do not clean up after errors\n"
|
||||||
|
msgstr " -n, --noclean não remove após erros\n"
|
||||||
|
|
||||||
|
#: initdb.c:2027
|
||||||
|
msgid ""
|
||||||
|
"\n"
|
||||||
|
"If the data directory is not specified, the environment variable PGDATA\n"
|
||||||
|
msgstr ""
|
||||||
|
"\n"
|
||||||
|
"Se o diretório de dados não for especificado, a variável de ambiente PGDATA\n"
|
||||||
|
|
||||||
|
#: initdb.c:2028
|
||||||
|
msgid "is used.\n"
|
||||||
|
msgstr "é utilizada.\n"
|
||||||
|
|
||||||
|
#: initdb.c:2029
|
||||||
|
msgid ""
|
||||||
|
"\n"
|
||||||
|
"Report bugs to <pgsql-bugs@postgresql.org>.\n"
|
||||||
|
msgstr ""
|
||||||
|
"\n"
|
||||||
|
"Reporte bugs para <pgsql-bugs@postgresql.org>.\n"
|
||||||
|
|
||||||
|
#: initdb.c:2148
|
||||||
|
msgid "Running in debug mode.\n"
|
||||||
|
msgstr "Executando no modo de depuração.\n"
|
||||||
|
|
||||||
|
#: initdb.c:2152
|
||||||
|
msgid "Running in noclean mode. Mistakes will not be cleaned up.\n"
|
||||||
|
msgstr "Executando no modo sem limpeza. Erros não serão removidos.\n"
|
||||||
|
|
||||||
|
#: initdb.c:2192
|
||||||
|
#, c-format
|
||||||
|
msgid "Unrecognized option: %c\n"
|
||||||
|
msgstr "Opção desconhecida: %c\n"
|
||||||
|
|
||||||
|
#: initdb.c:2210
|
||||||
|
#, c-format
|
||||||
|
msgid "initdb (PostgreSQL) %s\n"
|
||||||
|
msgstr "initdb (PostgreSQL) %s\n"
|
||||||
|
|
||||||
|
#: initdb.c:2231
|
||||||
|
#, c-format
|
||||||
|
msgid ""
|
||||||
|
"%s: no data directory specified\n"
|
||||||
|
"You must identify the directory where the data for this database system\n"
|
||||||
|
"will reside. Do this with either the invocation option -D or the\n"
|
||||||
|
"environment variable PGDATA.\n"
|
||||||
|
msgstr ""
|
||||||
|
"%s: nenhum diretório de dados foi especificado\n"
|
||||||
|
"Você deve identificar o diretório onde os dados para esse sistema de banco de dados\n"
|
||||||
|
"irá residir. Faça isso com o invocação da opção -D ou a\n"
|
||||||
|
"variável de ambiente PGDATA.\n"
|
||||||
|
|
||||||
|
#: initdb.c:2257
|
||||||
|
#, c-format
|
||||||
|
msgid ""
|
||||||
|
"The program \"postgres\" is needed by %s but was not found in \n"
|
||||||
|
"the directory \"%s\". Check your installation.\n"
|
||||||
|
msgstr ""
|
||||||
|
"O programa \"postgres\" é requerido pelo %s mas não foi encontrado no \n"
|
||||||
|
"diretório \"%s\". Verifique sua instalação.\n"
|
||||||
|
|
||||||
|
#: initdb.c:2266
|
||||||
|
#, c-format
|
||||||
|
msgid "%s: could not get valid short version\n"
|
||||||
|
msgstr "%s: não pôde obter versão curta válida\n"
|
||||||
|
|
||||||
|
#: initdb.c:2292
|
||||||
|
#, c-format
|
||||||
|
msgid ""
|
||||||
|
"VERSION=%s\n"
|
||||||
|
"PGDATA=%s\n"
|
||||||
|
"datadir=%s\n"
|
||||||
|
"PGPATH=%s\n"
|
||||||
|
"ENCODING=%s\n"
|
||||||
|
"ENCODINGID=%s\n"
|
||||||
|
"POSTGRES_SUPERUSERNAME=%s\n"
|
||||||
|
"POSTGRES_BKI=%s\n"
|
||||||
|
"POSTGRES_DESCR=%s\n"
|
||||||
|
"POSTGRESQL_CONF_SAMPLE=%s\n"
|
||||||
|
"PG_HBA_SAMPLE=%s\n"
|
||||||
|
"PG_IDENT_SAMPLE=%s\n"
|
||||||
|
msgstr ""
|
||||||
|
"VERSION=%s\n"
|
||||||
|
"PGDATA=%s\n"
|
||||||
|
"datadir=%s\n"
|
||||||
|
"PGPATH=%s\n"
|
||||||
|
"ENCODING=%s\n"
|
||||||
|
"ENCODINGID=%s\n"
|
||||||
|
"POSTGRES_SUPERUSERNAME=%s\n"
|
||||||
|
"POSTGRES_BKI=%s\n"
|
||||||
|
"POSTGRES_DESCR=%s\n"
|
||||||
|
"POSTGRESQL_CONF_SAMPLE=%s\n"
|
||||||
|
"PG_HBA_SAMPLE=%s\n"
|
||||||
|
"PG_IDENT_SAMPLE=%s\n"
|
||||||
|
|
||||||
|
#: initdb.c:2318
|
||||||
|
#, c-format
|
||||||
|
msgid ""
|
||||||
|
"The files belonging to this database system will be owned by user \"%s\".\n"
|
||||||
|
"This user must also own the server process.\n"
|
||||||
|
"\n"
|
||||||
|
msgstr ""
|
||||||
|
"Os arquivos deste sistema de banco de dados pertencerão ao usuário \"%s\".\n"
|
||||||
|
"Esse usuário deve ser o dono do processo do servidor também.\n"
|
||||||
|
"\n"
|
||||||
|
|
||||||
|
#: initdb.c:2331
|
||||||
|
#, c-format
|
||||||
|
msgid ""
|
||||||
|
"The database cluster will be initialized with locale %s.\n"
|
||||||
|
"\n"
|
||||||
|
msgstr ""
|
||||||
|
"O agrupamento de banco de dados será inicializado com localidade %s.\n"
|
||||||
|
"\n"
|
||||||
|
|
||||||
|
#: initdb.c:2336
|
||||||
|
#, c-format
|
||||||
|
msgid ""
|
||||||
|
"The database cluster will be initialized with locales\n"
|
||||||
|
" COLLATE: %s\n"
|
||||||
|
" CTYPE: %s\n"
|
||||||
|
" MESSAGES: %s\n"
|
||||||
|
" MONETARY: %s\n"
|
||||||
|
" NUMERIC: %s\n"
|
||||||
|
" TIME: %s\n"
|
||||||
|
"\n"
|
||||||
|
msgstr ""
|
||||||
|
"O agrupamento de banco de dados será inicializado com localidades\n"
|
||||||
|
" COLLATE: %s\n"
|
||||||
|
" CTYPE: %s\n"
|
||||||
|
" MESSAGES: %s\n"
|
||||||
|
" MONETARY: %s\n"
|
||||||
|
" NUMERIC: %s\n"
|
||||||
|
" TIME: %s\n"
|
||||||
|
"\n"
|
||||||
|
|
||||||
|
#: initdb.c:2381
|
||||||
|
#, c-format
|
||||||
|
msgid "creating directory %s ... "
|
||||||
|
msgstr "criando diretório %s ... "
|
||||||
|
|
||||||
|
#: initdb.c:2395
|
||||||
|
#, c-format
|
||||||
|
msgid "fixing permissions on existing directory %s ... "
|
||||||
|
msgstr "consertando permissões no diretório existente %s ... "
|
||||||
|
|
||||||
|
#: initdb.c:2413
|
||||||
|
#, c-format
|
||||||
|
msgid ""
|
||||||
|
"%s: directory \"%s\" exists but is not empty\n"
|
||||||
|
"If you want to create a new database system, either remove or empty\n"
|
||||||
|
"the directory \"%s\" or run %s\n"
|
||||||
|
"with an argument other than \"%s\".\n"
|
||||||
|
msgstr ""
|
||||||
|
"%s: diretório \"%s\" existe mas não está vazio\n"
|
||||||
|
"Se você quer criar um novo sistema de banco de dados, remova ou esvazie\n"
|
||||||
|
"o diretório \"%s\" ou execute %s\n"
|
||||||
|
"com um argumento ao invés de \"%s\".\n"
|
||||||
|
|
||||||
|
#: initdb.c:2430
|
||||||
|
#, c-format
|
||||||
|
msgid "creating directory %s/%s ... "
|
||||||
|
msgstr "criando diretório %s/%s ... "
|
||||||
|
|
||||||
|
#: initdb.c:2488
|
||||||
|
#, c-format
|
||||||
|
msgid ""
|
||||||
|
"\n"
|
||||||
|
"Success. You can now start the database server using:\n"
|
||||||
|
"\n"
|
||||||
|
" %s%s%s/postmaster -D %s%s%s\n"
|
||||||
|
"or\n"
|
||||||
|
" %s%s%s/pg_ctl -D %s%s%s -l logfile start\n"
|
||||||
|
"\n"
|
||||||
|
msgstr ""
|
||||||
|
"\n"
|
||||||
|
"Sucesso. Você pode iniciar o servidor de banco de dados utilizando:\n"
|
||||||
|
"\n"
|
||||||
|
" %s%s%s/postmaster -D %s%s%s\n"
|
||||||
|
"ou\n"
|
||||||
|
" %s%s%s/pg_ctl -D %s%s%s -l logfile start\n"
|
||||||
|
"\n"
|
Loading…
Reference in New Issue