blob: badbabd3aac9db5b9534c2f5b323386ee6dbc490 [file] [log] [blame]
Bram Moolenaarbc4c5052020-08-13 22:47:35 +02001/* vi:set ts=8 sts=4 sw=4 noet:
2 *
3 * VIM - Vi IMproved by Bram Moolenaar
4 *
5 * Do ":help uganda" in Vim to read copying and usage conditions.
6 * Do ":help credits" in Vim to see a list of people who contributed.
7 */
8
9/*
10 * Definition of error messages, sorted on error number.
11 */
12
13#ifdef FEAT_EVAL
Bram Moolenaar451c2e32020-08-15 16:33:28 +020014EXTERN char e_undefined_variable_str[]
15 INIT(= N_("E121: Undefined variable: %s"));
16EXTERN char e_undefined_variable_char_str[]
17 INIT(= N_("E121: Undefined variable: %c:%s"));
18#endif
19EXTERN char e_invalid_command[]
20 INIT(= N_("E476: Invalid command"));
21#ifdef FEAT_EVAL
22EXTERN char e_invalid_command_str[]
23 INIT(= N_("E476: Invalid command: %s"));
Bram Moolenaarcc673e72020-08-16 17:33:35 +020024EXTERN char e_cannot_slice_dictionary[]
25 INIT(= N_("E719: cannot slice a Dictionary"));
Bram Moolenaar44d66522020-09-06 22:26:57 +020026EXTERN char e_assert_fails_second_arg[]
27 INIT(= N_("E856: assert_fails() second argument must be a string or a list with one or two strings"));
Bram Moolenaarcc673e72020-08-16 17:33:35 +020028EXTERN char e_cannot_index_special_variable[]
29 INIT(= N_("E909: Cannot index a special variable"));
Bram Moolenaar451c2e32020-08-15 16:33:28 +020030EXTERN char e_missing_let_str[]
31 INIT(= N_("E1100: Missing :let: %s"));
32EXTERN char e_variable_not_found_str[]
33 INIT(= N_("E1001: variable not found: %s"));
34EXTERN char e_syntax_error_at_str[]
35 INIT(= N_("E1002: Syntax error at %s"));
36EXTERN char e_missing_return_value[]
37 INIT(= N_("E1003: Missing return value"));
Bram Moolenaar7cb6fc22020-08-21 22:36:47 +020038EXTERN char e_white_space_required_before_and_after_str[]
Bram Moolenaarbc4c5052020-08-13 22:47:35 +020039 INIT(= N_("E1004: white space required before and after '%s'"));
Bram Moolenaar451c2e32020-08-15 16:33:28 +020040EXTERN char e_too_many_argument_types[]
41 INIT(= N_("E1005: Too many argument types"));
42EXTERN char e_str_is_used_as_argument[]
43 INIT(= N_("E1006: %s is used as an argument"));
44EXTERN char e_mandatory_argument_after_optional_argument[]
45 INIT(= N_("E1007: mandatory argument after optional argument"));
46EXTERN char e_missing_type[]
47 INIT(= N_("E1008: Missing <type>"));
48EXTERN char e_missing_gt_after_type[]
49 INIT(= N_("E1009: Missing > after type"));
50EXTERN char e_type_not_recognized_str[]
51 INIT(= N_("E1010: Type not recognized: %s"));
52EXTERN char e_name_too_long_str[]
53 INIT(= N_("E1011: name too long: %s"));
54EXTERN char e_type_mismatch_expected_str_but_got_str[]
55 INIT(= N_("E1012: type mismatch, expected %s but got %s"));
56EXTERN char e_argument_nr_type_mismatch_expected_str_but_got_str[]
57 INIT(= N_("E1013: argument %d: type mismatch, expected %s but got %s"));
58EXTERN char e_invalid_key_str[]
59 INIT(= N_("E1014: Invalid key: %s"));
60EXTERN char e_name_expected[]
61 INIT(= N_("E1015: Name expected: %s"));
Bram Moolenaarbc4c5052020-08-13 22:47:35 +020062EXTERN char e_cannot_declare_a_scope_variable[]
63 INIT(= N_("E1016: Cannot declare a %s variable: %s"));
64EXTERN char e_cannot_declare_an_environment_variable[]
65 INIT(= N_("E1016: Cannot declare an environment variable: %s"));
Bram Moolenaar451c2e32020-08-15 16:33:28 +020066EXTERN char e_variable_already_declared[]
67 INIT(= N_("E1017: Variable already declared: %s"));
68EXTERN char e_cannot_assign_to_constant[]
69 INIT(= N_("E1018: Cannot assign to a constant: %s"));
70EXTERN char e_can_only_concatenate_to_string[]
71 INIT(= N_("E1019: Can only concatenate to string"));
72EXTERN char e_cannot_use_operator_on_new_variable[]
73 INIT(= N_("E1020: cannot use an operator on a new variable: %s"));
Bram Moolenaarbc4c5052020-08-13 22:47:35 +020074EXTERN char e_const_requires_a_value[]
75 INIT(= N_("E1021: const requires a value"));
76EXTERN char e_type_or_initialization_required[]
77 INIT(= N_("E1022: type or initialization required"));
Bram Moolenaard70840e2020-08-22 15:06:35 +020078EXTERN char e_using_number_as_bool_nr[]
79 INIT(= N_("E1023: Using a Number as a Bool: %d"));
Bram Moolenaarcc673e72020-08-16 17:33:35 +020080EXTERN char e_using_number_as_string[]
81 INIT(= N_("E1024: Using a Number as a String"));
Bram Moolenaar451c2e32020-08-15 16:33:28 +020082EXTERN char e_using_rcurly_outside_if_block_scope[]
83 INIT(= N_("E1025: using } outside of a block scope"));
84EXTERN char e_missing_rcurly[]
85 INIT(= N_("E1026: Missing }"));
86EXTERN char e_missing_return_statement[]
87 INIT(= N_("E1027: Missing return statement"));
88EXTERN char e_compile_def_function_failed[]
89 INIT(= N_("E1028: compile_def_function failed"));
90EXTERN char e_expected_str_but_got_str[]
91 INIT(= N_("E1029: Expected %s but got %s"));
92EXTERN char e_using_string_as_number[]
93 INIT(= N_("E1030: Using a String as a Number"));
94EXTERN char e_cannot_use_void_value[]
95 INIT(= N_("E1031: Cannot use void value"));
96EXTERN char e_missing_catch_or_finally[]
97 INIT(= N_("E1032: missing :catch or :finally"));
98EXTERN char e_catch_unreachable_after_catch_all[]
99 INIT(= N_("E1033: catch unreachable after catch-all"));
100EXTERN char e_cannot_use_reserved_name[]
101 INIT(= N_("E1034: Cannot use reserved name %s"));
102EXTERN char e_percent_requires_number_arguments[]
103 INIT(= N_("E1035: % requires number arguments"));
104EXTERN char e_char_requires_number_or_float_arguments[]
105 INIT(= N_("E1036: %c requires number or float arguments"));
106EXTERN char e_cannot_use_str_with_str[]
107 INIT(= N_("E1037: Cannot use \"%s\" with %s"));
108EXTERN char e_vim9script_can_only_be_used_in_script[]
109 INIT(= N_("E1038: vim9script can only be used in a script"));
110EXTERN char e_vim9script_must_be_first_command_in_script[]
111 INIT(= N_("E1039: vim9script must be the first command in a script"));
112EXTERN char e_cannot_use_scriptversion_after_vim9script[]
113 INIT(= N_("E1040: Cannot use :scriptversion after :vim9script"));
114EXTERN char e_redefining_script_item_str[]
115 INIT(= N_("E1041: Redefining script item %s"));
116EXTERN char e_export_can_only_be_used_in_vim9script[]
117 INIT(= N_("E1042: export can only be used in vim9script"));
118EXTERN char e_invalid_command_after_export[]
119 INIT(= N_("E1043: Invalid command after :export"));
120EXTERN char e_export_with_invalid_argument[]
121 INIT(= N_("E1044: export with invalid argument"));
122EXTERN char e_missing_as_after_star[]
123 INIT(= N_("E1045: Missing \"as\" after *"));
124EXTERN char e_missing_comma_in_import[]
125 INIT(= N_("E1046: Missing comma in import"));
126EXTERN char e_syntax_error_in_import[]
127 INIT(= N_("E1047: syntax error in import"));
128EXTERN char e_item_not_found_in_script_str[]
129 INIT(= N_("E1048: Item not found in script: %s"));
130EXTERN char e_item_not_exported_in_script_str[]
131 INIT(= N_("E1049: Item not exported in script: %s"));
Bram Moolenaarbc4c5052020-08-13 22:47:35 +0200132EXTERN char e_colon_required_before_a_range[]
133 INIT(= N_("E1050: Colon required before a range"));
Bram Moolenaar451c2e32020-08-15 16:33:28 +0200134EXTERN char e_wrong_argument_type_for_plus[]
135 INIT(= N_("E1051: wrong argument type for +"));
136EXTERN char e_cannot_declare_an_option[]
137 INIT(= N_("E1052: Cannot declare an option: %s"));
138EXTERN char e_could_not_import_str[]
139 INIT(= N_("E1053: Could not import \"%s\""));
140EXTERN char e_variable_already_declared_in_script[]
141 INIT(= N_("E1054: Variable already declared in the script: %s"));
142EXTERN char e_missing_name_after_dots[]
143 INIT(= N_("E1055: Missing name after ..."));
144EXTERN char e_expected_type_str[]
145 INIT(= N_("E1056: expected a type: %s"));
146EXTERN char e_missing_enddef[]
147 INIT(= N_("E1057: Missing :enddef"));
148EXTERN char e_function_nesting_too_deep[]
149 INIT(= N_("E1058: function nesting too deep"));
150EXTERN char e_no_white_space_allowed_before_colon_str[]
151 INIT(= N_("E1059: No white space allowed before colon: %s"));
152EXTERN char e_expected_dot_after_name_str[]
153 INIT(= N_("E1060: expected dot after name: %s"));
154EXTERN char e_cannot_find_function_str[]
155 INIT(= N_("E1061: Cannot find function %s"));
Bram Moolenaarcc673e72020-08-16 17:33:35 +0200156EXTERN char e_cannot_index_number[]
157 INIT(= N_("E1062: Cannot index a Number"));
Bram Moolenaar451c2e32020-08-15 16:33:28 +0200158EXTERN char e_type_mismatch_for_v_variable[]
159 INIT(= N_("E1063: type mismatch for v: variable"));
160// E1064 unused
161// E1065 unused
Bram Moolenaar7cb6fc22020-08-21 22:36:47 +0200162EXTERN char e_cannot_declare_a_register_str[]
Bram Moolenaar451c2e32020-08-15 16:33:28 +0200163 INIT(= N_("E1066: Cannot declare a register: %s"));
Bram Moolenaar7cb6fc22020-08-21 22:36:47 +0200164EXTERN char e_separator_mismatch_str[]
Bram Moolenaar451c2e32020-08-15 16:33:28 +0200165 INIT(= N_("E1067: Separator mismatch: %s"));
Bram Moolenaar7cb6fc22020-08-21 22:36:47 +0200166EXTERN char e_no_white_space_allowed_before_str[]
Bram Moolenaarbc4c5052020-08-13 22:47:35 +0200167 INIT(= N_("E1068: No white space allowed before '%s'"));
Bram Moolenaar7cb6fc22020-08-21 22:36:47 +0200168EXTERN char e_white_space_required_after_str[]
Bram Moolenaarbc4c5052020-08-13 22:47:35 +0200169 INIT(= N_("E1069: white space required after '%s'"));
Bram Moolenaar451c2e32020-08-15 16:33:28 +0200170EXTERN char e_missing_from[]
171 INIT(= N_("E1070: Missing \"from\""));
172EXTERN char e_invalid_string_after_from[]
173 INIT(= N_("E1071: Invalid string after \"from\""));
174EXTERN char e_cannot_compare_str_with_str[]
175 INIT(= N_("E1072: Cannot compare %s with %s"));
Bram Moolenaar7cb6fc22020-08-21 22:36:47 +0200176EXTERN char e_name_already_defined_str[]
Bram Moolenaarbc4c5052020-08-13 22:47:35 +0200177 INIT(= N_("E1073: name already defined: %s"));
Bram Moolenaar451c2e32020-08-15 16:33:28 +0200178EXTERN char e_no_white_space_allowed_after_dot[]
179 INIT(= N_("E1074: no white space allowed after dot"));
180EXTERN char e_namespace_not_supported_str[]
181 INIT(= N_("E1075: Namespace not supported: %s"));
182EXTERN char e_this_vim_is_not_compiled_with_float_support[]
183 INIT(= N_("E1076: This Vim is not compiled with float support"));
184EXTERN char e_missing_argument_type_for_str[]
185 INIT(= N_("E1077: Missing argument type for %s"));
186// E1078 unused
187// E1079 unused
188// E1080 unused
189EXTERN char e_cannot_unlet_str[]
190 INIT(= N_("E1081: Cannot unlet %s"));
191EXTERN char e_cannot_use_namespaced_variable[]
192 INIT(= N_("E1082: Cannot use a namespaced variable: %s"));
193EXTERN char e_missing_backtick[]
194 INIT(= N_("E1083: missing backtick"));
195EXTERN char e_cannot_delete_vim9_script_function_str[]
196 INIT(= N_("E1084: Cannot delete Vim9 script function %s"));
197EXTERN char e_not_callable_type_str[]
198 INIT(= N_("E1085: Not a callable type: %s"));
199EXTERN char e_cannot_use_function_inside_def[]
200 INIT(= N_("E1086: Cannot use :function inside :def"));
201EXTERN char e_cannot_use_index_when_declaring_variable[]
202 INIT(= N_("E1087: cannot use an index when declaring a variable"));
203// E1088 unused
204EXTERN char e_unknown_variable_str[]
205 INIT(= N_("E1089: unknown variable: %s"));
206EXTERN char e_cannot_assign_to_argument[]
207 INIT(= N_("E1090: Cannot assign to argument %s"));
208EXTERN char e_function_is_not_compiled_str[]
209 INIT(= N_("E1091: Function is not compiled: %s"));
210EXTERN char e_cannot_use_list_for_declaration[]
211 INIT(= N_("E1092: Cannot use a list for a declaration"));
212EXTERN char e_expected_nr_items_but_got_nr[]
213 INIT(= N_("E1093: Expected %d items but got %d"));
214EXTERN char e_import_can_only_be_used_in_script[]
215 INIT(= N_("E1094: import can only be used in a script"));
216EXTERN char e_unreachable_code_after_return[]
217 INIT(= N_("E1095: Unreachable code after :return"));
218EXTERN char e_returning_value_in_function_without_return_type[]
219 INIT(= N_("E1096: Returning a value in a function without a return type"));
220EXTERN char e_line_incomplete[]
221 INIT(= N_("E1097: line incomplete"));
222// E1098 unused
223EXTERN char e_unknown_error_while_executing_str[]
224 INIT(= N_("E1099: Unknown error while executing %s"));
225EXTERN char e_cannot_declare_script_variable_in_function[]
226 INIT(= N_("E1101: Cannot declare a script variable in a function: %s"));
227EXTERN char e_lambda_function_not_found_str[]
228 INIT(= N_("E1102: lambda function not found: %s"));
Bram Moolenaarbc4c5052020-08-13 22:47:35 +0200229EXTERN char e_dictionary_not_set[]
230 INIT(= N_("E1103: Dictionary not set"));
Bram Moolenaar451c2e32020-08-15 16:33:28 +0200231EXTERN char e_missing_gt[]
232 INIT(= N_("E1104: Missing >"));
233EXTERN char e_cannot_convert_str_to_string[]
234 INIT(= N_("E1105: Cannot convert %s to string"));
235EXTERN char e_one_argument_too_many[]
236 INIT(= N_("E1106: one argument too many"));
237EXTERN char e_nr_arguments_too_many[]
238 INIT(= N_("E1106: %d arguments too many"));
Bram Moolenaar56acb092020-08-16 14:48:19 +0200239EXTERN char e_string_list_dict_or_blob_required[]
240 INIT(= N_("E1107: String, List, Dict or Blob required"));
Bram Moolenaar451c2e32020-08-15 16:33:28 +0200241EXTERN char e_item_not_found_str[]
242 INIT(= N_("E1108: Item not found: %s"));
Bram Moolenaar08aac3c2020-08-28 21:04:24 +0200243EXTERN char e_list_item_nr_is_not_list[]
244 INIT(= N_("E1109: List item %d is not a List"));
245EXTERN char e_list_item_nr_does_not_contain_3_numbers[]
246 INIT(= N_("E1110: List item %d does not contain 3 numbers"));
247EXTERN char e_list_item_nr_range_invalid[]
248 INIT(= N_("E1111: List item %d range invalid"));
249EXTERN char e_list_item_nr_cell_width_invalid[]
250 INIT(= N_("E1112: List item %d cell width invalid"));
251EXTERN char e_overlapping_ranges_for_nr[]
Bram Moolenaarb06a6d52020-08-28 23:27:20 +0200252 INIT(= N_("E1113: Overlapping ranges for 0x%lx"));
Bram Moolenaar08aac3c2020-08-28 21:04:24 +0200253EXTERN char e_only_values_of_0x100_and_higher_supported[]
254 INIT(= N_("E1114: Only values of 0x100 and higher supported"));
Bram Moolenaar44d66522020-09-06 22:26:57 +0200255EXTERN char e_assert_fails_fourth_argument[]
256 INIT(= N_("E1115: assert_fails() fourth argument must be a number"));
257EXTERN char e_assert_fails_fifth_argument[]
258 INIT(= N_("E1116: assert_fails() fifth argument must be a string"));
Bram Moolenaar8b848ca2020-09-10 22:28:01 +0200259EXTERN char e_cannot_use_bang_with_nested_def[]
260 INIT(= N_("E1117: Cannot use ! with nested :def"));
Bram Moolenaar0b4c66c2020-09-14 21:39:44 +0200261EXTERN char e_cannot_change_list[]
262 INIT(= N_("E1118: Cannot change list"));
263EXTERN char e_cannot_change_list_item[]
264 INIT(= N_("E1119: Cannot change list item"));
265EXTERN char e_cannot_change_dict[]
266 INIT(= N_("E1120: Cannot change dict"));
267EXTERN char e_cannot_change_dict_item[]
268 INIT(= N_("E1121: Cannot change dict item"));
Bram Moolenaarbc4c5052020-08-13 22:47:35 +0200269#endif