diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-31 15:09:27 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-31 15:09:27 +0000 |
commit | eb822a280cf4706f7e67319ced1cdf3243b27e20 (patch) | |
tree | 84bfa641e243c5a4399714979a4337c496c4da17 /src/help.c | |
parent | 9a015111a56d0011ced40d98f46a9841d1457b51 (diff) | |
download | vim-git-eb822a280cf4706f7e67319ced1cdf3243b27e20.tar.gz |
patch 8.2.3955: error messages are spread outv8.2.3955
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
Diffstat (limited to 'src/help.c')
-rw-r--r-- | src/help.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/help.c b/src/help.c index d67f78b08..bb9fc8eec 100644 --- a/src/help.c +++ b/src/help.c @@ -107,7 +107,7 @@ ex_help(exarg_T *eap) semsg(_("E661: Sorry, no '%s' help for %s"), lang, arg); else #endif - semsg(_("E149: Sorry, no help for %s"), arg); + semsg(_(e_sorry_no_help_for_str), arg); if (n != FAIL) FreeWild(num_matches, matches); return; @@ -982,7 +982,7 @@ helptags_one( || filecount == 0) { if (!got_int) - semsg(_("E151: No match: %s"), NameBuff); + semsg(_(e_no_match_str), NameBuff); return; } @@ -995,7 +995,7 @@ helptags_one( if (fd_tags == NULL) { if (!ignore_writeerr) - semsg(_("E152: Cannot open %s for writing"), NameBuff); + semsg(_(e_cannot_open_str_for_writing), NameBuff); FreeWild(filecount, files); return; } @@ -1028,7 +1028,7 @@ helptags_one( fd = mch_fopen((char *)files[fi], "r"); if (fd == NULL) { - semsg(_("E153: Unable to open %s for reading"), files[fi]); + semsg(_(e_unable_to_open_str_for_reading), files[fi]); continue; } fname = files[fi] + dirlen + 1; @@ -1136,7 +1136,7 @@ helptags_one( { *p2 = NUL; vim_snprintf((char *)NameBuff, MAXPATHL, - _("E154: Duplicate tag \"%s\" in file %s/%s"), + _(e_duplicate_tag_str_in_file_str_str), ((char_u **)ga.ga_data)[i], dir, p2 + 1); emsg((char *)NameBuff); *p2 = '\t'; @@ -1316,7 +1316,7 @@ ex_helptags(exarg_T *eap) dirname = ExpandOne(&xpc, eap->arg, NULL, WILD_LIST_NOTFOUND|WILD_SILENT, WILD_EXPAND_FREE); if (dirname == NULL || !mch_isdir(dirname)) - semsg(_("E150: Not a directory: %s"), eap->arg); + semsg(_(e_not_a_directory_str), eap->arg); else do_helptags(dirname, add_help_tags, FALSE); vim_free(dirname); |