mirror of
https://github.com/postgres/postgres.git
synced 2025-06-03 01:21:48 +03:00
pg_basebackup: Restore lost translation markers
The refactoring in ebfb814f7c lost some translation markers.
This commit is contained in:
parent
41e2c52fd6
commit
90f0d28814
@ -18,5 +18,5 @@ GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \
|
||||
../../common/file_utils.c \
|
||||
../../fe_utils/option_utils.c \
|
||||
../../fe_utils/recovery_gen.c
|
||||
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) simple_prompt tar_set_error
|
||||
GETTEXT_TRIGGERS = $(FRONTEND_COMMON_GETTEXT_TRIGGERS) simple_prompt
|
||||
GETTEXT_FLAGS = $(FRONTEND_COMMON_GETTEXT_FLAGS)
|
||||
|
@ -718,7 +718,7 @@ tar_write_compressed_data(TarMethodData *tar_data, void *buf, size_t count,
|
||||
r = deflate(tar_data->zp, flush ? Z_FINISH : Z_NO_FLUSH);
|
||||
if (r == Z_STREAM_ERROR)
|
||||
{
|
||||
tar_data->base.lasterrstring = "could not compress data";
|
||||
tar_data->base.lasterrstring = _("could not compress data");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -747,7 +747,7 @@ tar_write_compressed_data(TarMethodData *tar_data, void *buf, size_t count,
|
||||
/* Reset the stream for writing */
|
||||
if (deflateReset(tar_data->zp) != Z_OK)
|
||||
{
|
||||
tar_data->base.lasterrstring = "could not reset compression stream";
|
||||
tar_data->base.lasterrstring = _("could not reset compression stream");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -873,7 +873,7 @@ tar_open_for_write(WalWriteMethod *wwmethod, const char *pathname,
|
||||
pg_free(tar_data->zp);
|
||||
tar_data->zp = NULL;
|
||||
wwmethod->lasterrstring =
|
||||
"could not initialize compression library";
|
||||
_("could not initialize compression library");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
@ -885,7 +885,7 @@ tar_open_for_write(WalWriteMethod *wwmethod, const char *pathname,
|
||||
if (tar_data->currentfile != NULL)
|
||||
{
|
||||
wwmethod->lasterrstring =
|
||||
"implementation error: tar files can't have more than one open file";
|
||||
_("implementation error: tar files can't have more than one open file");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -900,7 +900,7 @@ tar_open_for_write(WalWriteMethod *wwmethod, const char *pathname,
|
||||
pg_free(tar_data->currentfile);
|
||||
pg_free(tmppath);
|
||||
tar_data->currentfile = NULL;
|
||||
wwmethod->lasterrstring = "could not create tar header";
|
||||
wwmethod->lasterrstring = _("could not create tar header");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -917,7 +917,7 @@ tar_open_for_write(WalWriteMethod *wwmethod, const char *pathname,
|
||||
if (deflateParams(tar_data->zp, 0, Z_DEFAULT_STRATEGY) != Z_OK)
|
||||
{
|
||||
wwmethod->lasterrstring =
|
||||
"could not change compression parameters";
|
||||
_("could not change compression parameters");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
@ -958,7 +958,7 @@ tar_open_for_write(WalWriteMethod *wwmethod, const char *pathname,
|
||||
if (deflateParams(tar_data->zp, wwmethod->compression_level,
|
||||
Z_DEFAULT_STRATEGY) != Z_OK)
|
||||
{
|
||||
wwmethod->lasterrstring = "could not change compression parameters";
|
||||
wwmethod->lasterrstring = _("could not change compression parameters");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
@ -1049,7 +1049,7 @@ tar_close(Walfile *f, WalCloseMethod method)
|
||||
{
|
||||
if (f->wwmethod->compression_algorithm != PG_COMPRESSION_NONE)
|
||||
{
|
||||
f->wwmethod->lasterrstring = "unlink not supported with compression";
|
||||
f->wwmethod->lasterrstring = _("unlink not supported with compression");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -1163,7 +1163,7 @@ tar_close(Walfile *f, WalCloseMethod method)
|
||||
/* Turn off compression */
|
||||
if (deflateParams(tar_data->zp, 0, Z_DEFAULT_STRATEGY) != Z_OK)
|
||||
{
|
||||
f->wwmethod->lasterrstring = "could not change compression parameters";
|
||||
f->wwmethod->lasterrstring = _("could not change compression parameters");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -1176,7 +1176,7 @@ tar_close(Walfile *f, WalCloseMethod method)
|
||||
if (deflateParams(tar_data->zp, f->wwmethod->compression_level,
|
||||
Z_DEFAULT_STRATEGY) != Z_OK)
|
||||
{
|
||||
f->wwmethod->lasterrstring = "could not change compression parameters";
|
||||
f->wwmethod->lasterrstring = _("could not change compression parameters");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -1261,7 +1261,7 @@ tar_finish(WalWriteMethod *wwmethod)
|
||||
|
||||
if (r == Z_STREAM_ERROR)
|
||||
{
|
||||
wwmethod->lasterrstring = "could not compress data";
|
||||
wwmethod->lasterrstring = _("could not compress data");
|
||||
return false;
|
||||
}
|
||||
if (tar_data->zp->avail_out < ZLIB_OUT_SIZE)
|
||||
@ -1285,7 +1285,7 @@ tar_finish(WalWriteMethod *wwmethod)
|
||||
|
||||
if (deflateEnd(tar_data->zp) != Z_OK)
|
||||
{
|
||||
wwmethod->lasterrstring = "could not close compression stream";
|
||||
wwmethod->lasterrstring = _("could not close compression stream");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user