Mercurial > vim
comparison src/help.c @ 26952:b34ddbca305c v8.2.4005
patch 8.2.4005: error messages are spread out
Commit: https://github.com/vim/vim/commit/a6f7929e62c19a6a2418a016b4c59b83eb1887ac
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 4 21:30:47 2022 +0000
patch 8.2.4005: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 04 Jan 2022 22:45:04 +0100 |
parents | 61f686b38df9 |
children | ac75c145f0a9 |
comparison
equal
deleted
inserted
replaced
26951:c3fbe78b6109 | 26952:b34ddbca305c |
---|---|
102 #endif | 102 #endif |
103 if (i >= num_matches || n == FAIL) | 103 if (i >= num_matches || n == FAIL) |
104 { | 104 { |
105 #ifdef FEAT_MULTI_LANG | 105 #ifdef FEAT_MULTI_LANG |
106 if (lang != NULL) | 106 if (lang != NULL) |
107 semsg(_("E661: Sorry, no '%s' help for %s"), lang, arg); | 107 semsg(_(e_sorry_no_str_help_for_str), lang, arg); |
108 else | 108 else |
109 #endif | 109 #endif |
110 semsg(_(e_sorry_no_help_for_str), arg); | 110 semsg(_(e_sorry_no_help_for_str), arg); |
111 if (n != FAIL) | 111 if (n != FAIL) |
112 FreeWild(num_matches, matches); | 112 FreeWild(num_matches, matches); |
1056 this_utf8 = FALSE; | 1056 this_utf8 = FALSE; |
1057 if (utf8 == MAYBE) // first file | 1057 if (utf8 == MAYBE) // first file |
1058 utf8 = this_utf8; | 1058 utf8 = this_utf8; |
1059 else if (utf8 != this_utf8) | 1059 else if (utf8 != this_utf8) |
1060 { | 1060 { |
1061 semsg(_("E670: Mix of help file encodings within a language: %s"), files[fi]); | 1061 semsg(_(e_mix_of_help_file_encodings_within_language_str), files[fi]); |
1062 mix = !got_int; | 1062 mix = !got_int; |
1063 got_int = TRUE; | 1063 got_int = TRUE; |
1064 } | 1064 } |
1065 firstline = FALSE; | 1065 firstline = FALSE; |
1066 } | 1066 } |