* Portions Copyright (c) 1994, Regents of the University of California
* 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 $
*
*-------------------------------------------------------------------------
*/
#endif
+#define _(x) gettext((x))
+
/* version string we expect back from postgres */
#define PG_VERSIONSTR "postgres (PostgreSQL) " PG_VERSION "\n"
static void setup_schema(void);
static void vacuum_db(void);
static void make_template0(void);
-static void usage(void);
+static void usage(const char *);
static void trapsig(int);
static void check_ok(void);
static char *xstrdup(const char *);
static void *xmalloc(size_t);
+static void init_nls(void);
/*
* macros for running pipes to postgres
result = malloc(size);
if (!result)
{
- fputs("malloc failure - bailing out\n", stderr);
+ fputs(_("malloc failure - bailing out\n"), stderr);
exit(1);
}
return result;
result = strdup(s);
if (!result)
{
- fputs("strdup failure - bailing out\n", stderr);
+ fputs(_("strdup failure - bailing out\n"), stderr);
exit(1);
}
return result;
if ((infile = fopen(path, "r")) == NULL)
{
- fprintf(stderr, "could not read %s\n", path);
+ fprintf(stderr, _("could not read %s\n"), path);
exit_nicely();
}
;
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();
}
for (line = lines; *line != NULL; line++)
}
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));
}
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));
}
else
{
- fprintf(stderr, "child process exited with unexpected status %d\n",
+ fprintf(stderr, _("child process exited with unexpected status %d\n"),
exitstatus);
}
static void
exit_nicely(void)
{
- fprintf(stderr, "%s: failed\n", progname);
+ fprintf(stderr, _("%s: failed\n"), progname);
if (!noclean)
{
if (made_new_pgdata)
{
- fprintf(stderr, "%s: removing data directory \"%s\"\n",
+ fprintf(stderr, _("%s: removing data directory \"%s\"\n"),
progname, pg_data);
if (!rmtree(pg_data, true))
- fprintf(stderr, "%s: failed\n", progname);
+ fprintf(stderr, _("%s: failed\n"), progname);
}
else if (found_existing_pgdata)
{
fprintf(stderr,
- "%s: removing contents of data directory \"%s\"\n",
+ _("%s: removing contents of data directory \"%s\"\n"),
progname, pg_data);
if (!rmtree(pg_data, false))
- fprintf(stderr, "%s: failed\n", progname);
+ fprintf(stderr, _("%s: failed\n"), progname);
}
/* otherwise died during startup, do nothing! */
}
{
if (made_new_pgdata || found_existing_pgdata)
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);
}
if (!geteuid()) /* 0 is root's uid */
{
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 "
"(unprivileged) user that will\n"
- "own the server process.\n",
+ "own the server process.\n"),
progname);
exit(1);
}
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)");
exit(1);
}
if (stat(path, &statbuf) != 0 || !S_ISREG(statbuf.st_mode))
{
fprintf(stderr,
- "%s: file \"%s\" not found\n"
+ _("%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",
+ "the wrong directory with the invocation option -L.\n"),
progname, path);
exit(1);
}
int i,
status;
- printf("selecting default max_connections ... ");
+ printf(_("selecting default max_connections ... "));
fflush(stdout);
for (i = 0; i < len; i++)
int i,
status;
- printf("selecting default shared_buffers ... ");
+ printf(_("selecting default shared_buffers ... "));
fflush(stdout);
for (i = 0; i < len; i++)
char repltok[100];
char path[MAXPGPATH];
- fputs("creating configuration files ... ", stdout);
+ fputs(_("creating configuration files ... "), stdout);
fflush(stdout);
/* postgresql.conf */
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);
if (debug)
if (strcmp(headerline, *bki_lines) != 0)
{
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 "
- "using the option -L.\n",
+ "using the option -L.\n"),
progname, bki_file, PG_VERSION);
exit_nicely();
PG_CMD_DECL;
- fputs("initializing pg_shadow ... ", stdout);
+ fputs(_("initializing pg_shadow ... "), stdout);
fflush(stdout);
snprintf(cmd, sizeof(cmd),
pwd2 = simple_prompt("Enter it again: ", 100, false);
if (strcmp(pwd1, pwd2) != 0)
{
- fprintf(stderr, "Passwords didn't match.\n");
+ fprintf(stderr, _("Passwords didn't match.\n"));
exit_nicely();
}
free(pwd2);
- printf("setting password ... ");
+ printf(_("setting password ... "));
fflush(stdout);
snprintf(cmd, sizeof(cmd),
if (stat(pwdpath, &statbuf) != 0 || !S_ISREG(statbuf.st_mode))
{
fprintf(stderr,
- "%s: The password file was not generated. "
- "Please report this problem.\n",
+ _("%s: The password file was not generated. "
+ "Please report this problem.\n"),
progname);
exit_nicely();
}
PG_CMD_DECL;
- fputs("enabling unlimited row size for system tables ... ", stdout);
+ fputs(_("enabling unlimited row size for system tables ... "), stdout);
fflush(stdout);
snprintf(cmd, sizeof(cmd),
PG_CMD_DECL;
- fputs("initializing pg_depend ... ", stdout);
+ fputs(_("initializing pg_depend ... "), stdout);
fflush(stdout);
snprintf(cmd, sizeof(cmd),
char **sysviews_setup;
- fputs("creating system views ... ", stdout);
+ fputs(_("creating system views ... "), stdout);
fflush(stdout);
sysviews_setup = readfile(system_views_file);
PG_CMD_DECL_NOLINE;
int fres;
- fputs("loading pg_description ... ", stdout);
+ fputs(_("loading pg_description ... "), stdout);
fflush(stdout);
snprintf(cmd, sizeof(cmd),
char **conv_lines;
- fputs("creating conversions ... ", stdout);
+ fputs(_("creating conversions ... "), stdout);
fflush(stdout);
snprintf(cmd, sizeof(cmd),
char **priv_lines;
- fputs("setting privileges on built-in objects ... ", stdout);
+ fputs(_("setting privileges on built-in objects ... "), stdout);
fflush(stdout);
snprintf(cmd, sizeof(cmd),
char **lines;
int fres;
- fputs("creating information schema ... ", stdout);
+ fputs(_("creating information schema ... "), stdout);
fflush(stdout);
lines = readfile(info_schema_file);
{
PG_CMD_DECL_NOLINE;
- fputs("vacuuming database template1 ... ", stdout);
+ fputs(_("vacuuming database template1 ... "), stdout);
fflush(stdout);
snprintf(cmd, sizeof(cmd),
PG_CMD_DECL;
- fputs("copying template1 to template0 ... ", stdout);
+ fputs(_("copying template1 to template0 ... "), stdout);
fflush(stdout);
snprintf(cmd, sizeof(cmd),
{
if (caught_signal)
{
- printf("caught signal\n");
+ printf(_("caught signal\n"));
exit_nicely();
}
else if (output_failed)
{
- printf("failed to write to child process\n");
+ printf(_("failed to write to child process\n"));
exit_nicely();
}
else
{
/* all seems well */
- printf("ok\n");
+ printf(_("ok\n"));
}
}
/* should we exit here? */
if (!ret)
- fprintf(stderr, "%s: invalid locale name \"%s\"\n", progname, locale);
+ fprintf(stderr, _("%s: invalid locale name \"%s\"\n"), progname, locale);
return ret;
}
}
-/*
- * 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
*/
static void
-usage(void)
+usage(const char *progname)
{
- int i;
- char **newtext;
-
- newtext = replace_token(usage_text, "$CMDNAME", progname);
+ printf(_("%s initializes a PostgreSQL database cluster.\n\n"), progname);
+ 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"));
+}
- for (i = 0; newtext[i]; i++)
- fputs(newtext[i], stdout); /* faster than printf */
+/*
+ * Initialized NLS if enabled.
+ */
+void
+init_nls(void)
+{
+#ifdef ENABLE_NLS
+ setlocale(LC_ALL, "");
+ bindtextdomain("initdb", LOCALEDIR);
+ textdomain("initdb");
+#endif
}
char *exe; /* location of exe suffix in progname */
#endif
- setlocale(LC_ALL, "");
+ init_nls();
/* parse argv[0] - detect explicit path if there was one */
carg0 = xstrdup(argv[0]);
break;
case 'd':
debug = true;
- printf("Running in debug mode.\n");
+ printf(_("Running in debug mode.\n"));
break;
case 'n':
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;
case 'L':
datadir = xstrdup(optarg);
break;
default:
show_help = true;
- printf("Unrecognized option: %c\n", c);
+ printf(_("Unrecognized option: %c\n"), c);
}
}
if (show_help)
{
- usage();
+ usage(progname);
exit(0);
}
else
{
fprintf(stderr,
- "%s: no data directory specified\n"
+ _("%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",
+ "environment variable PGDATA.\n"),
progname);
exit(1);
}
if (set_paths() != 0)
{
fprintf(stderr,
- "The program \"postgres\" is needed by %s "
+ _("The program \"postgres\" is needed by %s "
"but was not found in \n"
- "the directory \"%s\". Check your installation.\n",
+ "the directory \"%s\". Check your installation.\n"),
progname, bindir);
exit(1);
}
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);
}
check_input(features_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"
- "This user must also own the server process.\n\n",
+ "This user must also own the server process.\n\n"),
effective_user);
setlocales();
strcmp(lc_ctype, lc_monetary) == 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);
}
else
{
- printf("The database cluster will be initialized with locales\n"
+ printf(_("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",
+ " TIME: %s\n\n"),
lc_collate,
lc_ctype,
lc_messages,
{
case 0:
/* PGDATA not there, must create it */
- printf("creating directory %s ... ",
+ printf(_("creating directory %s ... "),
pg_data);
fflush(stdout);
case 1:
/* Present but empty, fix permissions and use it */
- printf("fixing permissions on existing directory %s ... ",
+ printf(_("fixing permissions on existing directory %s ... "),
pg_data);
fflush(stdout);
case 2:
/* Present and not empty */
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"
"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);
exit(1); /* no further message needed */
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);
if (!mkdatadir(subdirs[i]))
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"
"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);
--- /dev/null
+# "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"