forked from aniani/vim
patch 8.2.3069: error messages are spread out
Problem: Error messages are spread out. Solution: Move some error messages to errors.h. Use clearer names.
This commit is contained in:
38
src/errors.h
38
src/errors.h
@@ -10,6 +10,44 @@
|
||||
* Definition of error messages, sorted on error number.
|
||||
*/
|
||||
|
||||
EXTERN char e_backslash_should_be_followed_by[]
|
||||
INIT(= N_("E10: \\ should be followed by /, ? or &"));
|
||||
#ifdef FEAT_CMDWIN
|
||||
EXTERN char e_invalid_in_cmdline_window[]
|
||||
INIT(= N_("E11: Invalid in command-line window; <CR> executes, CTRL-C quits"));
|
||||
#endif
|
||||
EXTERN char e_command_not_allowed_from_vimrc_in_current_dir_or_tag_search[]
|
||||
INIT(= N_("E12: Command not allowed from exrc/vimrc in current dir or tag search"));
|
||||
EXTERN char e_file_exists[]
|
||||
INIT(= N_("E13: File exists (add ! to override)"));
|
||||
#ifdef FEAT_EVAL
|
||||
EXTERN char e_invalid_expression_str[]
|
||||
INIT(= N_("E15: Invalid expression: \"%s\""));
|
||||
#endif
|
||||
EXTERN char e_invalid_range[]
|
||||
INIT(= N_("E16: Invalid range"));
|
||||
#if defined(UNIX) || defined(FEAT_SYN_HL) || defined(FEAT_SPELL)
|
||||
EXTERN char e_src_is_directory[]
|
||||
INIT(= N_("E17: \"%s\" is a directory"));
|
||||
#endif
|
||||
#ifdef FEAT_EVAL
|
||||
EXTERN char e_unexpected_characters_in_let[]
|
||||
INIT(= N_("E18: Unexpected characters in :let"));
|
||||
EXTERN char e_unexpected_characters_in_assignment[]
|
||||
INIT(= N_("E18: Unexpected characters in assignment"));
|
||||
#endif
|
||||
EXTERN char e_mark_has_invalid_line_number[]
|
||||
INIT(= N_("E19: Mark has invalid line number"));
|
||||
EXTERN char e_mark_not_set[]
|
||||
INIT(= N_("E20: Mark not set"));
|
||||
EXTERN char e_cannot_make_changes_modifiable_is_off[]
|
||||
INIT(= N_("E21: Cannot make changes, 'modifiable' is off"));
|
||||
EXTERN char e_scripts_nested_too_deep[]
|
||||
INIT(= N_("E22: Scripts nested too deep"));
|
||||
EXTERN char e_no_alternate_file[]
|
||||
INIT(= N_("E23: No alternate file"));
|
||||
EXTERN char e_no_such_abbreviation[]
|
||||
INIT(= N_("E24: No such abbreviation"));
|
||||
#ifdef FEAT_EVAL
|
||||
EXTERN char e_undefined_variable_str[]
|
||||
INIT(= N_("E121: Undefined variable: %s"));
|
||||
|
Reference in New Issue
Block a user