Bram Moolenaar | bc4c505 | 2020-08-13 22:47:35 +0200 | [diff] [blame] | 1 | /* 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 Moolenaar | 451c2e3 | 2020-08-15 16:33:28 +0200 | [diff] [blame] | 14 | EXTERN char e_undefined_variable_str[] |
| 15 | INIT(= N_("E121: Undefined variable: %s")); |
| 16 | EXTERN char e_undefined_variable_char_str[] |
| 17 | INIT(= N_("E121: Undefined variable: %c:%s")); |
| 18 | #endif |
| 19 | EXTERN char e_invalid_command[] |
| 20 | INIT(= N_("E476: Invalid command")); |
| 21 | #ifdef FEAT_EVAL |
| 22 | EXTERN char e_invalid_command_str[] |
| 23 | INIT(= N_("E476: Invalid command: %s")); |
| 24 | EXTERN char e_missing_let_str[] |
| 25 | INIT(= N_("E1100: Missing :let: %s")); |
| 26 | EXTERN char e_variable_not_found_str[] |
| 27 | INIT(= N_("E1001: variable not found: %s")); |
| 28 | EXTERN char e_syntax_error_at_str[] |
| 29 | INIT(= N_("E1002: Syntax error at %s")); |
| 30 | EXTERN char e_missing_return_value[] |
| 31 | INIT(= N_("E1003: Missing return value")); |
Bram Moolenaar | bc4c505 | 2020-08-13 22:47:35 +0200 | [diff] [blame] | 32 | EXTERN char e_white_space_required_before_and_after[] |
| 33 | INIT(= N_("E1004: white space required before and after '%s'")); |
Bram Moolenaar | 451c2e3 | 2020-08-15 16:33:28 +0200 | [diff] [blame] | 34 | EXTERN char e_too_many_argument_types[] |
| 35 | INIT(= N_("E1005: Too many argument types")); |
| 36 | EXTERN char e_str_is_used_as_argument[] |
| 37 | INIT(= N_("E1006: %s is used as an argument")); |
| 38 | EXTERN char e_mandatory_argument_after_optional_argument[] |
| 39 | INIT(= N_("E1007: mandatory argument after optional argument")); |
| 40 | EXTERN char e_missing_type[] |
| 41 | INIT(= N_("E1008: Missing <type>")); |
| 42 | EXTERN char e_missing_gt_after_type[] |
| 43 | INIT(= N_("E1009: Missing > after type")); |
| 44 | EXTERN char e_type_not_recognized_str[] |
| 45 | INIT(= N_("E1010: Type not recognized: %s")); |
| 46 | EXTERN char e_name_too_long_str[] |
| 47 | INIT(= N_("E1011: name too long: %s")); |
| 48 | EXTERN char e_type_mismatch_expected_str_but_got_str[] |
| 49 | INIT(= N_("E1012: type mismatch, expected %s but got %s")); |
| 50 | EXTERN char e_argument_nr_type_mismatch_expected_str_but_got_str[] |
| 51 | INIT(= N_("E1013: argument %d: type mismatch, expected %s but got %s")); |
| 52 | EXTERN char e_invalid_key_str[] |
| 53 | INIT(= N_("E1014: Invalid key: %s")); |
| 54 | EXTERN char e_name_expected[] |
| 55 | INIT(= N_("E1015: Name expected: %s")); |
Bram Moolenaar | bc4c505 | 2020-08-13 22:47:35 +0200 | [diff] [blame] | 56 | EXTERN char e_cannot_declare_a_scope_variable[] |
| 57 | INIT(= N_("E1016: Cannot declare a %s variable: %s")); |
| 58 | EXTERN char e_cannot_declare_an_environment_variable[] |
| 59 | INIT(= N_("E1016: Cannot declare an environment variable: %s")); |
Bram Moolenaar | 451c2e3 | 2020-08-15 16:33:28 +0200 | [diff] [blame] | 60 | EXTERN char e_variable_already_declared[] |
| 61 | INIT(= N_("E1017: Variable already declared: %s")); |
| 62 | EXTERN char e_cannot_assign_to_constant[] |
| 63 | INIT(= N_("E1018: Cannot assign to a constant: %s")); |
| 64 | EXTERN char e_can_only_concatenate_to_string[] |
| 65 | INIT(= N_("E1019: Can only concatenate to string")); |
| 66 | EXTERN char e_cannot_use_operator_on_new_variable[] |
| 67 | INIT(= N_("E1020: cannot use an operator on a new variable: %s")); |
Bram Moolenaar | bc4c505 | 2020-08-13 22:47:35 +0200 | [diff] [blame] | 68 | EXTERN char e_const_requires_a_value[] |
| 69 | INIT(= N_("E1021: const requires a value")); |
| 70 | EXTERN char e_type_or_initialization_required[] |
| 71 | INIT(= N_("E1022: type or initialization required")); |
Bram Moolenaar | 11107ba | 2020-08-15 21:10:16 +0200 | [diff] [blame] | 72 | EXTERN char e_cannot_slice_dictionary[] |
| 73 | INIT(= N_("E1023: cannot slice a dictionary")); |
Bram Moolenaar | 451c2e3 | 2020-08-15 16:33:28 +0200 | [diff] [blame] | 74 | // E1024 unused |
| 75 | EXTERN char e_using_rcurly_outside_if_block_scope[] |
| 76 | INIT(= N_("E1025: using } outside of a block scope")); |
| 77 | EXTERN char e_missing_rcurly[] |
| 78 | INIT(= N_("E1026: Missing }")); |
| 79 | EXTERN char e_missing_return_statement[] |
| 80 | INIT(= N_("E1027: Missing return statement")); |
| 81 | EXTERN char e_compile_def_function_failed[] |
| 82 | INIT(= N_("E1028: compile_def_function failed")); |
| 83 | EXTERN char e_expected_str_but_got_str[] |
| 84 | INIT(= N_("E1029: Expected %s but got %s")); |
| 85 | EXTERN char e_using_string_as_number[] |
| 86 | INIT(= N_("E1030: Using a String as a Number")); |
| 87 | EXTERN char e_cannot_use_void_value[] |
| 88 | INIT(= N_("E1031: Cannot use void value")); |
| 89 | EXTERN char e_missing_catch_or_finally[] |
| 90 | INIT(= N_("E1032: missing :catch or :finally")); |
| 91 | EXTERN char e_catch_unreachable_after_catch_all[] |
| 92 | INIT(= N_("E1033: catch unreachable after catch-all")); |
| 93 | EXTERN char e_cannot_use_reserved_name[] |
| 94 | INIT(= N_("E1034: Cannot use reserved name %s")); |
| 95 | EXTERN char e_percent_requires_number_arguments[] |
| 96 | INIT(= N_("E1035: % requires number arguments")); |
| 97 | EXTERN char e_char_requires_number_or_float_arguments[] |
| 98 | INIT(= N_("E1036: %c requires number or float arguments")); |
| 99 | EXTERN char e_cannot_use_str_with_str[] |
| 100 | INIT(= N_("E1037: Cannot use \"%s\" with %s")); |
| 101 | EXTERN char e_vim9script_can_only_be_used_in_script[] |
| 102 | INIT(= N_("E1038: vim9script can only be used in a script")); |
| 103 | EXTERN char e_vim9script_must_be_first_command_in_script[] |
| 104 | INIT(= N_("E1039: vim9script must be the first command in a script")); |
| 105 | EXTERN char e_cannot_use_scriptversion_after_vim9script[] |
| 106 | INIT(= N_("E1040: Cannot use :scriptversion after :vim9script")); |
| 107 | EXTERN char e_redefining_script_item_str[] |
| 108 | INIT(= N_("E1041: Redefining script item %s")); |
| 109 | EXTERN char e_export_can_only_be_used_in_vim9script[] |
| 110 | INIT(= N_("E1042: export can only be used in vim9script")); |
| 111 | EXTERN char e_invalid_command_after_export[] |
| 112 | INIT(= N_("E1043: Invalid command after :export")); |
| 113 | EXTERN char e_export_with_invalid_argument[] |
| 114 | INIT(= N_("E1044: export with invalid argument")); |
| 115 | EXTERN char e_missing_as_after_star[] |
| 116 | INIT(= N_("E1045: Missing \"as\" after *")); |
| 117 | EXTERN char e_missing_comma_in_import[] |
| 118 | INIT(= N_("E1046: Missing comma in import")); |
| 119 | EXTERN char e_syntax_error_in_import[] |
| 120 | INIT(= N_("E1047: syntax error in import")); |
| 121 | EXTERN char e_item_not_found_in_script_str[] |
| 122 | INIT(= N_("E1048: Item not found in script: %s")); |
| 123 | EXTERN char e_item_not_exported_in_script_str[] |
| 124 | INIT(= N_("E1049: Item not exported in script: %s")); |
Bram Moolenaar | bc4c505 | 2020-08-13 22:47:35 +0200 | [diff] [blame] | 125 | EXTERN char e_colon_required_before_a_range[] |
| 126 | INIT(= N_("E1050: Colon required before a range")); |
Bram Moolenaar | 451c2e3 | 2020-08-15 16:33:28 +0200 | [diff] [blame] | 127 | EXTERN char e_wrong_argument_type_for_plus[] |
| 128 | INIT(= N_("E1051: wrong argument type for +")); |
| 129 | EXTERN char e_cannot_declare_an_option[] |
| 130 | INIT(= N_("E1052: Cannot declare an option: %s")); |
| 131 | EXTERN char e_could_not_import_str[] |
| 132 | INIT(= N_("E1053: Could not import \"%s\"")); |
| 133 | EXTERN char e_variable_already_declared_in_script[] |
| 134 | INIT(= N_("E1054: Variable already declared in the script: %s")); |
| 135 | EXTERN char e_missing_name_after_dots[] |
| 136 | INIT(= N_("E1055: Missing name after ...")); |
| 137 | EXTERN char e_expected_type_str[] |
| 138 | INIT(= N_("E1056: expected a type: %s")); |
| 139 | EXTERN char e_missing_enddef[] |
| 140 | INIT(= N_("E1057: Missing :enddef")); |
| 141 | EXTERN char e_function_nesting_too_deep[] |
| 142 | INIT(= N_("E1058: function nesting too deep")); |
| 143 | EXTERN char e_no_white_space_allowed_before_colon_str[] |
| 144 | INIT(= N_("E1059: No white space allowed before colon: %s")); |
| 145 | EXTERN char e_expected_dot_after_name_str[] |
| 146 | INIT(= N_("E1060: expected dot after name: %s")); |
| 147 | EXTERN char e_cannot_find_function_str[] |
| 148 | INIT(= N_("E1061: Cannot find function %s")); |
| 149 | // E1062 unused |
| 150 | EXTERN char e_type_mismatch_for_v_variable[] |
| 151 | INIT(= N_("E1063: type mismatch for v: variable")); |
| 152 | // E1064 unused |
| 153 | // E1065 unused |
| 154 | EXTERN char e_cannot_declare_a_register[] |
| 155 | INIT(= N_("E1066: Cannot declare a register: %s")); |
| 156 | EXTERN char e_separator_mismatch[] |
| 157 | INIT(= N_("E1067: Separator mismatch: %s")); |
Bram Moolenaar | bc4c505 | 2020-08-13 22:47:35 +0200 | [diff] [blame] | 158 | EXTERN char e_no_white_space_allowed_before[] |
| 159 | INIT(= N_("E1068: No white space allowed before '%s'")); |
| 160 | EXTERN char e_white_space_required_after[] |
| 161 | INIT(= N_("E1069: white space required after '%s'")); |
Bram Moolenaar | 451c2e3 | 2020-08-15 16:33:28 +0200 | [diff] [blame] | 162 | EXTERN char e_missing_from[] |
| 163 | INIT(= N_("E1070: Missing \"from\"")); |
| 164 | EXTERN char e_invalid_string_after_from[] |
| 165 | INIT(= N_("E1071: Invalid string after \"from\"")); |
| 166 | EXTERN char e_cannot_compare_str_with_str[] |
| 167 | INIT(= N_("E1072: Cannot compare %s with %s")); |
Bram Moolenaar | bc4c505 | 2020-08-13 22:47:35 +0200 | [diff] [blame] | 168 | EXTERN char e_name_already_defined[] |
| 169 | INIT(= N_("E1073: name already defined: %s")); |
Bram Moolenaar | 451c2e3 | 2020-08-15 16:33:28 +0200 | [diff] [blame] | 170 | EXTERN char e_no_white_space_allowed_after_dot[] |
| 171 | INIT(= N_("E1074: no white space allowed after dot")); |
| 172 | EXTERN char e_namespace_not_supported_str[] |
| 173 | INIT(= N_("E1075: Namespace not supported: %s")); |
| 174 | EXTERN char e_this_vim_is_not_compiled_with_float_support[] |
| 175 | INIT(= N_("E1076: This Vim is not compiled with float support")); |
| 176 | EXTERN char e_missing_argument_type_for_str[] |
| 177 | INIT(= N_("E1077: Missing argument type for %s")); |
| 178 | // E1078 unused |
| 179 | // E1079 unused |
| 180 | // E1080 unused |
| 181 | EXTERN char e_cannot_unlet_str[] |
| 182 | INIT(= N_("E1081: Cannot unlet %s")); |
| 183 | EXTERN char e_cannot_use_namespaced_variable[] |
| 184 | INIT(= N_("E1082: Cannot use a namespaced variable: %s")); |
| 185 | EXTERN char e_missing_backtick[] |
| 186 | INIT(= N_("E1083: missing backtick")); |
| 187 | EXTERN char e_cannot_delete_vim9_script_function_str[] |
| 188 | INIT(= N_("E1084: Cannot delete Vim9 script function %s")); |
| 189 | EXTERN char e_not_callable_type_str[] |
| 190 | INIT(= N_("E1085: Not a callable type: %s")); |
| 191 | EXTERN char e_cannot_use_function_inside_def[] |
| 192 | INIT(= N_("E1086: Cannot use :function inside :def")); |
| 193 | EXTERN char e_cannot_use_index_when_declaring_variable[] |
| 194 | INIT(= N_("E1087: cannot use an index when declaring a variable")); |
| 195 | // E1088 unused |
| 196 | EXTERN char e_unknown_variable_str[] |
| 197 | INIT(= N_("E1089: unknown variable: %s")); |
| 198 | EXTERN char e_cannot_assign_to_argument[] |
| 199 | INIT(= N_("E1090: Cannot assign to argument %s")); |
| 200 | EXTERN char e_function_is_not_compiled_str[] |
| 201 | INIT(= N_("E1091: Function is not compiled: %s")); |
| 202 | EXTERN char e_cannot_use_list_for_declaration[] |
| 203 | INIT(= N_("E1092: Cannot use a list for a declaration")); |
| 204 | EXTERN char e_expected_nr_items_but_got_nr[] |
| 205 | INIT(= N_("E1093: Expected %d items but got %d")); |
| 206 | EXTERN char e_import_can_only_be_used_in_script[] |
| 207 | INIT(= N_("E1094: import can only be used in a script")); |
| 208 | EXTERN char e_unreachable_code_after_return[] |
| 209 | INIT(= N_("E1095: Unreachable code after :return")); |
| 210 | EXTERN char e_returning_value_in_function_without_return_type[] |
| 211 | INIT(= N_("E1096: Returning a value in a function without a return type")); |
| 212 | EXTERN char e_line_incomplete[] |
| 213 | INIT(= N_("E1097: line incomplete")); |
| 214 | // E1098 unused |
| 215 | EXTERN char e_unknown_error_while_executing_str[] |
| 216 | INIT(= N_("E1099: Unknown error while executing %s")); |
| 217 | EXTERN char e_cannot_declare_script_variable_in_function[] |
| 218 | INIT(= N_("E1101: Cannot declare a script variable in a function: %s")); |
| 219 | EXTERN char e_lambda_function_not_found_str[] |
| 220 | INIT(= N_("E1102: lambda function not found: %s")); |
Bram Moolenaar | bc4c505 | 2020-08-13 22:47:35 +0200 | [diff] [blame] | 221 | EXTERN char e_dictionary_not_set[] |
| 222 | INIT(= N_("E1103: Dictionary not set")); |
Bram Moolenaar | 451c2e3 | 2020-08-15 16:33:28 +0200 | [diff] [blame] | 223 | EXTERN char e_missing_gt[] |
| 224 | INIT(= N_("E1104: Missing >")); |
| 225 | EXTERN char e_cannot_convert_str_to_string[] |
| 226 | INIT(= N_("E1105: Cannot convert %s to string")); |
| 227 | EXTERN char e_one_argument_too_many[] |
| 228 | INIT(= N_("E1106: one argument too many")); |
| 229 | EXTERN char e_nr_arguments_too_many[] |
| 230 | INIT(= N_("E1106: %d arguments too many")); |
| 231 | EXTERN char e_list_dict_or_blob_required[] |
| 232 | INIT(= N_("E1107: List, Dict or Blob required")); |
| 233 | EXTERN char e_item_not_found_str[] |
| 234 | INIT(= N_("E1108: Item not found: %s")); |
Bram Moolenaar | bc4c505 | 2020-08-13 22:47:35 +0200 | [diff] [blame] | 235 | #endif |