summaryrefslogtreecommitdiffstats
path: root/src/hardcopy.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-02 20:20:45 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-02 20:20:45 +0000
commitb09feaa86ecc53b9b953710082496951776dc5c6 (patch)
tree0baf02c96c94c26072e9afdb833e638c3ab1a9cb /src/hardcopy.c
parentac78dd4a352196ca4e6640f8e4caaf126afd49e3 (diff)
patch 8.2.3986: error messages are spread outv8.2.3986
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
Diffstat (limited to 'src/hardcopy.c')
-rw-r--r--src/hardcopy.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/hardcopy.c b/src/hardcopy.c
index da64e1cf43..190ca996ba 100644
--- a/src/hardcopy.c
+++ b/src/hardcopy.c
@@ -1405,7 +1405,7 @@ prt_write_file_raw_len(char_u *buffer, int bytes)
&& fwrite(buffer, sizeof(char_u), bytes, prt_ps_fd)
!= (size_t)bytes)
{
- emsg(_("E455: Error writing to PostScript output file"));
+ emsg(_(e_error_writing_to_postscript_output_file));
prt_file_error = TRUE;
}
}
@@ -1849,7 +1849,7 @@ prt_open_resource(struct prt_ps_resource_S *resource)
PRT_FILE_BUFFER_LEN, fd_resource);
if (ferror(fd_resource))
{
- semsg(_("E457: Can't read PostScript resource file \"%s\""),
+ semsg(_(e_cant_read_postscript_resource_file_str),
resource->filename);
fclose(fd_resource);
return FALSE;
@@ -2675,7 +2675,7 @@ prt_add_resource(struct prt_ps_resource_S *resource)
fd_resource = mch_fopen((char *)resource->filename, READBIN);
if (fd_resource == NULL)
{
- semsg(_("E456: Can't open file \"%s\""), resource->filename);
+ semsg(_(e_cant_open_file_str_2), resource->filename);
return FALSE;
}
prt_dsc_resources("BeginResource", prt_resource_types[resource->type],
@@ -2689,7 +2689,7 @@ prt_add_resource(struct prt_ps_resource_S *resource)
sizeof(resource_buffer), fd_resource);
if (ferror(fd_resource))
{
- semsg(_("E457: Can't read PostScript resource file \"%s\""),
+ semsg(_(e_cant_read_postscript_resource_file_str),
resource->filename);
fclose(fd_resource);
return FALSE;
@@ -2805,7 +2805,7 @@ mch_print_begin(prt_settings_T *psettings)
// Search for external resources VIM supplies
if (!prt_find_resource("prolog", res_prolog))
{
- emsg(_("E456: Can't find PostScript resource file \"prolog.ps\""));
+ semsg(_(e_cant_find_postscript_resource_file_str_ps), "prolog");
goto theend;
}
if (!prt_open_resource(res_prolog))
@@ -2817,7 +2817,7 @@ mch_print_begin(prt_settings_T *psettings)
// Look for required version of multi-byte printing procset
if (!prt_find_resource("cidfont", res_cidfont))
{
- emsg(_("E456: Can't find PostScript resource file \"cidfont.ps\""));
+ semsg(_(e_cant_find_postscript_resource_file_str_ps), "cidfont");
goto theend;
}
if (!prt_open_resource(res_cidfont))
@@ -2849,7 +2849,7 @@ mch_print_begin(prt_settings_T *psettings)
p_encoding = (char_u *)"latin1";
if (!prt_find_resource((char *)p_encoding, res_encoding))
{
- semsg(_("E456: Can't find PostScript resource file \"%s.ps\""),
+ semsg(_(e_cant_find_postscript_resource_file_str_ps),
p_encoding);
goto theend;
}
@@ -2870,7 +2870,7 @@ mch_print_begin(prt_settings_T *psettings)
// Include ASCII range encoding vector
if (!prt_find_resource(prt_ascii_encoding, res_encoding))
{
- semsg(_("E456: Can't find PostScript resource file \"%s.ps\""),
+ semsg(_(e_cant_find_postscript_resource_file_str_ps),
prt_ascii_encoding);
goto theend;
}
@@ -2899,8 +2899,7 @@ mch_print_begin(prt_settings_T *psettings)
// Find user supplied CMap
if (!prt_find_resource(prt_cmap, res_cmap))
{
- semsg(_("E456: Can't find PostScript resource file \"%s.ps\""),
- prt_cmap);
+ semsg(_(e_cant_find_postscript_resource_file_str_ps), prt_cmap);
goto theend;
}
if (!prt_open_resource(res_cmap))