Mercurial > vim
comparison src/errors.h @ 26915:3631d2deb36c v8.2.3986
patch 8.2.3986: error messages are spread out
Commit: https://github.com/vim/vim/commit/b09feaa86ecc53b9b953710082496951776dc5c6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 2 20:20:45 2022 +0000
patch 8.2.3986: 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 | Sun, 02 Jan 2022 21:30:04 +0100 |
parents | d4e61d61afd9 |
children | d91aea2a612c |
comparison
equal
deleted
inserted
replaced
26914:21f9376239a4 | 26915:3631d2deb36c |
---|---|
1025 #endif | 1025 #endif |
1026 #ifdef FEAT_CLIENTSERVER | 1026 #ifdef FEAT_CLIENTSERVER |
1027 EXTERN char e_invalid_expression_received[] | 1027 EXTERN char e_invalid_expression_received[] |
1028 INIT(= N_("E449: Invalid expression received")); | 1028 INIT(= N_("E449: Invalid expression received")); |
1029 #endif | 1029 #endif |
1030 | 1030 EXTERN char e_buffer_number_text_or_list_required[] |
1031 INIT(= N_("E450: buffer number, text or a list required")); | |
1032 EXTERN char e_expected_right_curly_str[] | |
1033 INIT(= N_("E451: Expected }: %s")); | |
1034 #ifdef FEAT_EVAL | |
1035 EXTERN char e_double_semicolon_in_list_of_variables[] | |
1036 INIT(= N_("E452: Double ; in list of variables")); | |
1037 #endif | |
1038 EXTERN char e_ul_color_unknown[] | |
1039 INIT(= N_("E453: UL color unknown")); | |
1040 EXTERN char e_function_list_was_modified[] | |
1041 INIT(= N_("E454: function list was modified")); | |
1042 #ifdef FEAT_POSTSCRIPT | |
1043 EXTERN char e_error_writing_to_postscript_output_file[] | |
1044 INIT(= N_("E455: Error writing to PostScript output file")); | |
1045 EXTERN char e_cant_open_file_str_2[] | |
1046 INIT(= N_("E456: Can't open file \"%s\"")); | |
1047 EXTERN char e_cant_find_postscript_resource_file_str_ps[] | |
1048 INIT(= N_("E456: Can't find PostScript resource file \"%s.ps\"")); | |
1049 EXTERN char e_cant_read_postscript_resource_file_str[] | |
1050 INIT(= N_("E457: Can't read PostScript resource file \"%s\"")); | |
1051 #endif | |
1052 EXTERN char e_cannot_allocate_colormap_entry_some_colors_may_be_incorrect[] | |
1053 INIT(= N_("E458: Cannot allocate colormap entry, some colors may be incorrect")); | |
1031 #if defined(UNIX) || defined(FEAT_SESSION) | 1054 #if defined(UNIX) || defined(FEAT_SESSION) |
1032 EXTERN char e_cannot_go_back_to_previous_directory[] | 1055 EXTERN char e_cannot_go_back_to_previous_directory[] |
1033 INIT(= N_("E459: Cannot go back to previous directory")); | 1056 INIT(= N_("E459: Cannot go back to previous directory")); |
1034 #endif | 1057 #endif |
1058 EXTERN char e_entries_missing_in_mapset_dict_argument[] | |
1059 INIT(= N_("E460: entries missing in mapset() dict argument")); | |
1035 #ifdef FEAT_EVAL | 1060 #ifdef FEAT_EVAL |
1036 EXTERN char e_illegal_variable_name_str[] | 1061 EXTERN char e_illegal_variable_name_str[] |
1037 INIT(= N_("E461: Illegal variable name: %s")); | 1062 INIT(= N_("E461: Illegal variable name: %s")); |
1038 #endif | 1063 #endif |
1064 EXTERN char e_could_not_prepare_for_reloading_str[] | |
1065 INIT(= N_("E462: Could not prepare for reloading \"%s\"")); | |
1039 #ifdef FEAT_NETBEANS_INTG | 1066 #ifdef FEAT_NETBEANS_INTG |
1040 EXTERN char e_region_is_guarded_cannot_modify[] | 1067 EXTERN char e_region_is_guarded_cannot_modify[] |
1041 INIT(= N_("E463: Region is guarded, cannot modify")); | 1068 INIT(= N_("E463: Region is guarded, cannot modify")); |
1042 #endif | 1069 #endif |
1043 EXTERN char e_ambiguous_use_of_user_defined_command[] | 1070 EXTERN char e_ambiguous_use_of_user_defined_command[] |
1044 INIT(= N_("E464: Ambiguous use of user-defined command")); | 1071 INIT(= N_("E464: Ambiguous use of user-defined command")); |
1072 EXTERN char e_winsize_requires_two_number_arguments[] | |
1073 INIT(= N_("E465: :winsize requires two number arguments")); | |
1074 EXTERN char e_winpos_requires_two_number_arguments[] | |
1075 INIT(= N_("E466: :winpos requires two number arguments")); | |
1076 EXTERN char e_custom_completion_requires_function_argument[] | |
1077 INIT(= N_("E467: Custom completion requires a function argument")); | |
1078 EXTERN char e_completion_argument_only_allowed_for_custom_completion[] | |
1079 INIT(= N_("E468: Completion argument only allowed for custom completion")); | |
1080 EXTERN char e_invalid_cscopequickfix_flag_chr_for_chr[] | |
1081 INIT(= N_("E469: invalid cscopequickfix flag %c for %c")); | |
1045 EXTERN char e_command_aborted[] | 1082 EXTERN char e_command_aborted[] |
1046 INIT(= N_("E470: Command aborted")); | 1083 INIT(= N_("E470: Command aborted")); |
1047 EXTERN char e_argument_required[] | 1084 EXTERN char e_argument_required[] |
1048 INIT(= N_("E471: Argument required")); | 1085 INIT(= N_("E471: Argument required")); |
1049 EXTERN char e_command_failed[] | 1086 EXTERN char e_command_failed[] |
1058 INIT(= N_("E475: Invalid value for argument %s")); | 1095 INIT(= N_("E475: Invalid value for argument %s")); |
1059 EXTERN char e_invalid_value_for_argument_str_str[] | 1096 EXTERN char e_invalid_value_for_argument_str_str[] |
1060 INIT(= N_("E475: Invalid value for argument %s: %s")); | 1097 INIT(= N_("E475: Invalid value for argument %s: %s")); |
1061 EXTERN char e_invalid_command[] | 1098 EXTERN char e_invalid_command[] |
1062 INIT(= N_("E476: Invalid command")); | 1099 INIT(= N_("E476: Invalid command")); |
1100 #ifdef FEAT_EVAL | |
1101 EXTERN char e_invalid_command_str[] | |
1102 INIT(= N_("E476: Invalid command: %s")); | |
1103 #endif | |
1063 EXTERN char e_no_bang_allowed[] | 1104 EXTERN char e_no_bang_allowed[] |
1064 INIT(= N_("E477: No ! allowed")); | 1105 INIT(= N_("E477: No ! allowed")); |
1065 #ifdef FEAT_EVAL | 1106 EXTERN char e_dont_panic[] |
1066 EXTERN char e_invalid_command_str[] | 1107 INIT(= N_("E478: Don't panic!")); |
1067 INIT(= N_("E476: Invalid command: %s")); | 1108 EXTERN char e_no_match[] |
1068 #endif | 1109 INIT(= N_("E479: No match")); |
1110 EXTERN char e_no_match_str_2[] | |
1111 INIT(= N_("E480: No match: %s")); | |
1112 EXTERN char e_no_range_allowed[] | |
1113 INIT(= N_("E481: No range allowed")); | |
1069 EXTERN char e_cant_create_file_str[] | 1114 EXTERN char e_cant_create_file_str[] |
1070 INIT(= N_("E482: Can't create file %s")); | 1115 INIT(= N_("E482: Can't create file %s")); |
1071 EXTERN char e_cant_get_temp_file_name[] | 1116 EXTERN char e_cant_get_temp_file_name[] |
1072 INIT(= N_("E483: Can't get temp file name")); | 1117 INIT(= N_("E483: Can't get temp file name")); |
1073 EXTERN char e_cant_open_file_str[] | 1118 EXTERN char e_cant_open_file_str[] |
1078 INIT(= N_("E486: Pattern not found")); | 1123 INIT(= N_("E486: Pattern not found")); |
1079 EXTERN char e_pattern_not_found_str[] | 1124 EXTERN char e_pattern_not_found_str[] |
1080 INIT(= N_("E486: Pattern not found: %s")); | 1125 INIT(= N_("E486: Pattern not found: %s")); |
1081 EXTERN char e_argument_must_be_positive[] | 1126 EXTERN char e_argument_must_be_positive[] |
1082 INIT(= N_("E487: Argument must be positive")); | 1127 INIT(= N_("E487: Argument must be positive")); |
1083 EXTERN char e_no_match[] | |
1084 INIT(= N_("E479: No match")); | |
1085 EXTERN char e_no_match_str_2[] | |
1086 INIT(= N_("E480: No match: %s")); | |
1087 EXTERN char e_no_range_allowed[] | |
1088 INIT(= N_("E481: No range allowed")); | |
1089 EXTERN char e_trailing_characters[] | 1128 EXTERN char e_trailing_characters[] |
1090 INIT(= N_("E488: Trailing characters")); | 1129 INIT(= N_("E488: Trailing characters")); |
1091 EXTERN char e_trailing_characters_str[] | 1130 EXTERN char e_trailing_characters_str[] |
1092 INIT(= N_("E488: Trailing characters: %s")); | 1131 INIT(= N_("E488: Trailing characters: %s")); |
1093 | 1132 EXTERN char e_no_call_stack_to_substitute_for_stack[] |
1133 INIT(= N_("E489: no call stack to substitute for \"<stack>\"")); | |
1134 #ifdef FEAT_FOLDING | |
1135 EXTERN char e_no_fold_found[] | |
1136 INIT(= N_("E490: No fold found")); | |
1137 #endif | |
1138 #ifdef FEAT_EVAL | |
1139 EXTERN char e_json_decode_error_at_str[] | |
1140 INIT(= N_("E491: json decode error at '%s'")); | |
1141 #endif | |
1142 EXTERN char e_not_an_editor_command[] | |
1143 INIT(= N_("E492: Not an editor command")); | |
1144 EXTERN char e_backwards_range_given[] | |
1145 INIT(= N_("E493: Backwards range given")); | |
1146 EXTERN char e_use_w_or_w_gt_gt[] | |
1147 INIT(= N_("E494: Use w or w>>")); | |
1148 EXTERN char e_no_autocommand_file_name_to_substitute_for_afile[] | |
1149 INIT(= N_("E495: no autocommand file name to substitute for \"<afile>\"")); | |
1150 EXTERN char e_no_autocommand_buffer_name_to_substitute_for_abuf[] | |
1151 INIT(= N_("E496: no autocommand buffer number to substitute for \"<abuf>\"")); | |
1152 EXTERN char e_no_autocommand_match_name_to_substitute_for_amatch[] | |
1153 INIT(= N_("E497: no autocommand match name to substitute for \"<amatch>\"")); | |
1154 EXTERN char e_no_source_file_name_to_substitute_for_sfile[] | |
1155 INIT(= N_("E498: no :source file name to substitute for \"<sfile>\"")); | |
1156 EXTERN char e_empty_file_name_for_percent_or_hash_only_works_with_ph[] | |
1157 INIT(= N_("E499: Empty file name for '%' or '#', only works with \":p:h\"")); | |
1158 EXTERN char e_evaluates_to_an_empty_string[] | |
1159 INIT(= N_("E500: Evaluates to an empty string")); | |
1160 EXTERN char e_at_end_of_file[] | |
1161 INIT(= N_("E501: At end-of-file")); | |
1094 // E502 | 1162 // E502 |
1095 EXTERN char e_is_a_directory[] | 1163 EXTERN char e_is_a_directory[] |
1096 INIT(= N_("is a directory")); | 1164 INIT(= N_("is a directory")); |
1097 // E503 | 1165 // E503 |
1098 EXTERN char e_is_not_file_or_writable_device[] | 1166 EXTERN char e_is_not_file_or_writable_device[] |
1099 INIT(= N_("is not a file or writable device")); | 1167 INIT(= N_("is not a file or writable device")); |
1100 | 1168 EXTERN char e_str_is_not_file_or_writable_device[] |
1169 INIT(= N_("E503: \"%s\" is not a file or writable device")); | |
1101 // E504 | 1170 // E504 |
1102 EXTERN char e_is_read_only_cannot_override_W_in_cpoptions[] | 1171 EXTERN char e_is_read_only_cannot_override_W_in_cpoptions[] |
1103 INIT(= N_("is read-only (cannot override: \"W\" in 'cpoptions')")); | 1172 INIT(= N_("is read-only (cannot override: \"W\" in 'cpoptions')")); |
1104 // E505 | 1173 // E505 |
1105 EXTERN char e_is_read_only_add_bang_to_override[] | 1174 EXTERN char e_is_read_only_add_bang_to_override[] |
1106 INIT(= N_("is read-only (add ! to override)")); | 1175 INIT(= N_("is read-only (add ! to override)")); |
1176 EXTERN char e_str_is_read_only_add_bang_to_override[] | |
1177 INIT(= N_("E505: \"%s\" is read-only (add ! to override)")); | |
1107 EXTERN char e_canot_write_to_backup_file_add_bang_to_override[] | 1178 EXTERN char e_canot_write_to_backup_file_add_bang_to_override[] |
1108 INIT(= N_("E506: Can't write to backup file (add ! to override)")); | 1179 INIT(= N_("E506: Can't write to backup file (add ! to override)")); |
1109 EXTERN char e_close_error_for_backup_file_add_bang_to_write_anyway[] | 1180 EXTERN char e_close_error_for_backup_file_add_bang_to_write_anyway[] |
1110 INIT(= N_("E507: Close error for backup file (add ! to write anyway)")); | 1181 INIT(= N_("E507: Close error for backup file (add ! to write anyway)")); |
1111 EXTERN char e_cant_read_file_for_backup_add_bang_to_write_anyway[] | 1182 EXTERN char e_cant_read_file_for_backup_add_bang_to_write_anyway[] |
1112 INIT(= N_("E508: Can't read file for backup (add ! to write anyway)")); | 1183 INIT(= N_("E508: Can't read file for backup (add ! to write anyway)")); |
1113 EXTERN char e_cannot_create_backup_file_add_bang_to_write_anyway[] | 1184 EXTERN char e_cannot_create_backup_file_add_bang_to_write_anyway[] |
1114 INIT(= N_("E509: Cannot create backup file (add ! to override)")); | 1185 INIT(= N_("E509: Cannot create backup file (add ! to override)")); |
1115 EXTERN char e_cant_make_backup_file_add_bang_to_write_anyway[] | 1186 EXTERN char e_cant_make_backup_file_add_bang_to_write_anyway[] |
1116 INIT(= N_("E510: Can't make backup file (add ! to write anyway)")); | 1187 INIT(= N_("E510: Can't make backup file (add ! to write anyway)")); |
1188 #ifdef FEAT_NETBEANS_INTG | |
1189 EXTERN char e_netbeans_already_connected[] | |
1190 INIT(= N_("E511: netbeans already connected")); | |
1191 #endif | |
1117 EXTERN char e_close_failed[] | 1192 EXTERN char e_close_failed[] |
1118 INIT(= N_("E512: Close failed")); | 1193 INIT(= N_("E512: Close failed")); |
1119 EXTERN char e_write_error_conversion_failed_make_fenc_empty_to_override[] | 1194 EXTERN char e_write_error_conversion_failed_make_fenc_empty_to_override[] |
1120 INIT(= N_("E513: write error, conversion failed (make 'fenc' empty to override)")); | 1195 INIT(= N_("E513: write error, conversion failed (make 'fenc' empty to override)")); |
1121 EXTERN char e_write_error_conversion_failed_in_line_nr_make_fenc_empty_to_override[] | 1196 EXTERN char e_write_error_conversion_failed_in_line_nr_make_fenc_empty_to_override[] |
1126 INIT(= N_("E515: No buffers were unloaded")); | 1201 INIT(= N_("E515: No buffers were unloaded")); |
1127 EXTERN char e_no_buffers_were_deleted[] | 1202 EXTERN char e_no_buffers_were_deleted[] |
1128 INIT(= N_("E516: No buffers were deleted")); | 1203 INIT(= N_("E516: No buffers were deleted")); |
1129 EXTERN char e_no_buffers_were_wiped_out[] | 1204 EXTERN char e_no_buffers_were_wiped_out[] |
1130 INIT(= N_("E517: No buffers were wiped out")); | 1205 INIT(= N_("E517: No buffers were wiped out")); |
1206 | |
1131 EXTERN char e_not_allowed_here[] | 1207 EXTERN char e_not_allowed_here[] |
1132 INIT(= N_("E523: Not allowed here")); | 1208 INIT(= N_("E523: Not allowed here")); |
1133 EXTERN char e_not_allowed_to_change_text_or_change_window[] | 1209 EXTERN char e_not_allowed_to_change_text_or_change_window[] |
1134 INIT(= N_("E565: Not allowed to change text or change window")); | 1210 INIT(= N_("E565: Not allowed to change text or change window")); |
1135 EXTERN char e_not_allowed_to_change_text_here[] | 1211 EXTERN char e_not_allowed_to_change_text_here[] |