comparison src/errors.h @ 26913:d4e61d61afd9 v8.2.3985

patch 8.2.3985: error messages are spread out Commit: https://github.com/vim/vim/commit/ac78dd4a352196ca4e6640f8e4caaf126afd49e3 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 2 19:25:26 2022 +0000 patch 8.2.3985: 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 20:30:04 +0100
parents aa65d1808bd0
children 3631d2deb36c
comparison
equal deleted inserted replaced
26912:e6751c1e2a8e 26913:d4e61d61afd9
810 INIT(= N_("E347: No more file \"%s\" found in path")); 810 INIT(= N_("E347: No more file \"%s\" found in path"));
811 EXTERN char e_no_string_under_cursor[] 811 EXTERN char e_no_string_under_cursor[]
812 INIT(= N_("E348: No string under cursor")); 812 INIT(= N_("E348: No string under cursor"));
813 EXTERN char e_no_identifier_under_cursor[] 813 EXTERN char e_no_identifier_under_cursor[]
814 INIT(= N_("E349: No identifier under cursor")); 814 INIT(= N_("E349: No identifier under cursor"));
815 815 EXTERN char e_cannot_create_fold_with_current_foldmethod[]
816 INIT(= N_("E350: Cannot create fold with current 'foldmethod'"));
817 EXTERN char e_cannot_delete_fold_with_current_foldmethod[]
818 INIT(= N_("E351: Cannot delete fold with current 'foldmethod'"));
819 EXTERN char e_cannot_erase_folds_with_current_foldmethod[]
820 INIT(= N_("E352: Cannot erase folds with current 'foldmethod'"));
821 EXTERN char e_nothing_in_register_str[]
822 INIT(= N_("E353: Nothing in register %s"));
823 EXTERN char e_invalid_register_name_str[]
824 INIT(= N_("E354: Invalid register name: '%s'"));
825 EXTERN char e_unknown_option_str_2[]
826 INIT(= N_("E355: Unknown option: %s"));
827 EXTERN char e_get_varp_error[]
828 INIT(= N_("E356: get_varp ERROR"));
829 EXTERN char e_langmap_matching_character_missing_for_str[]
830 INIT(= N_("E357: 'langmap': Matching character missing for %s"));
831 EXTERN char e_langmap_extra_characters_after_semicolon_str[]
832 INIT(= N_("E358: 'langmap': Extra characters after semicolon: %s"));
816 #if defined(AMIGA) || defined(MACOS_X) || defined(MSWIN) \ 833 #if defined(AMIGA) || defined(MACOS_X) || defined(MSWIN) \
817 || defined(UNIX) || defined(VMS) 834 || defined(UNIX) || defined(VMS)
818 EXTERN char e_screen_mode_setting_not_supported[] 835 EXTERN char e_screen_mode_setting_not_supported[]
819 INIT(= N_("E359: Screen mode setting not supported")); 836 INIT(= N_("E359: Screen mode setting not supported"));
820 #endif 837 #endif
838 EXTERN char e_cannot_execute_shell_with_f_option[]
839 INIT(= N_("E360: Cannot execute shell with -f option"));
840 // E361 unused
841 EXTERN char e_using_boolean_valud_as_float[]
842 INIT(= N_("E362: Using a boolean value as a Float"));
821 EXTERN char e_pattern_uses_more_memory_than_maxmempattern[] 843 EXTERN char e_pattern_uses_more_memory_than_maxmempattern[]
822 INIT(= N_("E363: pattern uses more memory than 'maxmempattern'")); 844 INIT(= N_("E363: pattern uses more memory than 'maxmempattern'"));
823 #ifdef FEAT_LIBCALL 845 #ifdef FEAT_LIBCALL
824 EXTERN char e_library_call_failed_for_str[] 846 EXTERN char e_library_call_failed_for_str[]
825 INIT(= N_("E364: Library call failed for \"%s()\"")); 847 INIT(= N_("E364: Library call failed for \"%s()\""));
826 #endif 848 #endif
849 #ifdef FEAT_POSTSCRIPT
850 EXTERN char e_failed_to_print_postscript_file[]
851 INIT(= N_("E365: Failed to print PostScript file"));
852 #endif
853 EXTERN char e_not_allowed_to_enter_popup_window[]
854 INIT(= N_("E366: Not allowed to enter a popup window"));
827 EXTERN char e_no_such_group_str[] 855 EXTERN char e_no_such_group_str[]
828 INIT(= N_("E367: No such group: \"%s\"")); 856 INIT(= N_("E367: No such group: \"%s\""));
857 #ifdef FEAT_LIBCALL
858 EXTERN char e_got_sig_str_in_libcall[]
859 INIT(= N_("E368: got SIG%s in libcall()"));
860 #endif
861 EXTERN char e_invalid_item_in_str_brackets[]
862 INIT(= N_("E369: invalid item in %s%%[]"));
829 #ifdef USING_LOAD_LIBRARY 863 #ifdef USING_LOAD_LIBRARY
830 EXTERN char e_could_not_load_library_str_str[] 864 EXTERN char e_could_not_load_library_str_str[]
831 INIT(= N_("E370: Could not load library %s: %s")); 865 INIT(= N_("E370: Could not load library %s: %s"));
832 #endif 866 #endif
867 #ifdef FEAT_GUI_MSWIN
868 EXTERN char e_command_not_found[]
869 INIT(= N_("E371: Command not found"));
870 #endif
871 EXTERN char e_too_many_chr_in_format_string[]
872 INIT(= N_("E372: Too many %%%c in format string"));
873 EXTERN char e_unexpected_chr_in_format_str[]
874 INIT(= N_("E373: Unexpected %%%c in format string"));
875 EXTERN char e_missing_rsb_in_format_string[]
876 INIT(= N_("E374: Missing ] in format string"));
877 EXTERN char e_unsupported_chr_in_format_string[]
878 INIT(= N_("E375: Unsupported %%%c in format string"));
879 EXTERN char e_invalid_chr_in_format_string_prefix[]
880 INIT(= N_("E376: Invalid %%%c in format string prefix"));
881 EXTERN char e_invalid_chr_in_format_string[]
882 INIT(= N_("E377: Invalid %%%c in format string"));
883 EXTERN char e_errorformat_contains_no_pattern[]
884 INIT(= N_("E378: 'errorformat' contains no pattern"));
885 EXTERN char e_missing_or_empty_directory_name[]
886 INIT(= N_("E379: Missing or empty directory name"));
887 EXTERN char e_at_bottom_of_quickfix_stack[]
888 INIT(= N_("E380: At bottom of quickfix stack"));
889 EXTERN char e_at_top_of_quickfix_stack[]
890 INIT(= N_("E381: At top of quickfix stack"));
833 EXTERN char e_cannot_write_buftype_option_is_set[] 891 EXTERN char e_cannot_write_buftype_option_is_set[]
834 INIT(= N_("E382: Cannot write, 'buftype' option is set")); 892 INIT(= N_("E382: Cannot write, 'buftype' option is set"));
835 893 EXTERN char e_invalid_search_string_str[]
894 INIT(= N_("E383: Invalid search string: %s"));
895 EXTERN char e_search_hit_top_without_match_for_str[]
896 INIT(= N_("E384: search hit TOP without match for: %s"));
897 EXTERN char e_search_hit_bottom_without_match_for_str[]
898 INIT(= N_("E385: search hit BOTTOM without match for: %s"));
899 EXTERN char e_expected_question_or_slash_after_semicolon[]
900 INIT(= N_("E386: Expected '?' or '/' after ';'"));
901 EXTERN char e_match_is_on_current_line[]
902 INIT(= N_("E387: Match is on current line"));
903 EXTERN char e_couldnt_find_definition[]
904 INIT(= N_("E388: Couldn't find definition"));
905 EXTERN char e_couldnt_find_pattern[]
906 INIT(= N_("E389: Couldn't find pattern"));
907 EXTERN char e_illegal_argument_str_2[]
908 INIT(= N_("E390: Illegal argument: %s"));
909 EXTERN char e_no_such_syntax_cluster_1[]
910 INIT(= N_("E391: No such syntax cluster: %s"));
911 EXTERN char e_no_such_syntax_cluster_2[]
912 INIT(= N_("E392: No such syntax cluster: %s"));
913 EXTERN char e_groupthere_not_accepted_here[]
914 INIT(= N_("E393: group[t]here not accepted here"));
915 EXTERN char e_didnt_find_region_item_for_str[]
916 INIT(= N_("E394: Didn't find region item for %s"));
917 EXTERN char e_contains_argument_not_accepted_here[]
918 INIT(= N_("E395: contains argument not accepted here"));
919 // E396 unused
920 EXTERN char e_filename_required[]
921 INIT(= N_("E397: Filename required"));
922 EXTERN char e_missing_equal_str[]
923 INIT(= N_("E398: Missing '=': %s"));
924 EXTERN char e_not_enough_arguments_syntax_region_str[]
925 INIT(= N_("E399: Not enough arguments: syntax region %s"));
926 EXTERN char e_no_cluster_specified[]
927 INIT(= N_("E400: No cluster specified"));
928 EXTERN char e_pattern_delimiter_not_found_str[]
929 INIT(= N_("E401: Pattern delimiter not found: %s"));
930 EXTERN char e_garbage_after_pattern_str[]
931 INIT(= N_("E402: Garbage after pattern: %s"));
932 EXTERN char e_syntax_sync_line_continuations_pattern_specified_twice[]
933 INIT(= N_("E403: syntax sync: line continuations pattern specified twice"));
934 EXTERN char e_illegal_arguments_str[]
935 INIT(= N_("E404: Illegal arguments: %s"));
936 EXTERN char e_missing_equal_sign_str[]
937 INIT(= N_("E405: Missing equal sign: %s"));
938 EXTERN char e_empty_argument_str[]
939 INIT(= N_("E406: Empty argument: %s"));
940 EXTERN char e_str_not_allowed_here[]
941 INIT(= N_("E407: %s not allowed here"));
942 EXTERN char e_str_must_be_first_in_contains_list[]
943 INIT(= N_("E408: %s must be first in contains list"));
944 EXTERN char e_unknown_group_name_str[]
945 INIT(= N_("E409: Unknown group name: %s"));
946 EXTERN char e_invalid_syntax_subcommand_str[]
947 INIT(= N_("E410: Invalid :syntax subcommand: %s"));
948 EXTERN char e_highlight_group_name_not_found_str[]
949 INIT(= N_("E411: highlight group not found: %s"));
950 EXTERN char e_not_enough_arguments_highlight_link_str[]
951 INIT(= N_("E412: Not enough arguments: \":highlight link %s\""));
952 EXTERN char e_too_many_arguments_highlight_link_str[]
953 INIT(= N_("E413: Too many arguments: \":highlight link %s\""));
954 EXTERN char e_group_has_settings_highlight_link_ignored[]
955 INIT(= N_("E414: group has settings, highlight link ignored"));
956 EXTERN char e_unexpected_equal_sign_str[]
957 INIT(= N_("E415: unexpected equal sign: %s"));
958 EXTERN char e_missing_equal_sign_str_2[]
959 INIT(= N_("E416: missing equal sign: %s"));
960 EXTERN char e_missing_argument_str[]
961 INIT(= N_("E417: missing argument: %s"));
962 EXTERN char e_illegal_value_str[]
963 INIT(= N_("E418: Illegal value: %s"));
964 EXTERN char e_fg_color_unknown[]
965 INIT(= N_("E419: FG color unknown"));
966 EXTERN char e_bg_color_unknown[]
967 INIT(= N_("E420: BG color unknown"));
968 EXTERN char e_color_name_or_number_not_recognized[]
969 INIT(= N_("E421: Color name or number not recognized: %s"));
970 EXTERN char e_terminal_code_too_long_str[]
971 INIT(= N_("E422: terminal code too long: %s"));
972 EXTERN char e_illegal_argument_str_3[]
973 INIT(= N_("E423: Illegal argument: %s"));
974 EXTERN char e_too_many_different_highlighting_attributes_in_use[]
975 INIT(= N_("E424: Too many different highlighting attributes in use"));
976 EXTERN char e_cannot_go_before_first_matching_tag[]
977 INIT(= N_("E425: Cannot go before first matching tag"));
978 EXTERN char e_tag_not_found_str[]
979 INIT(= N_("E426: tag not found: %s"));
980 EXTERN char e_there_is_only_one_matching_tag[]
981 INIT(= N_("E427: There is only one matching tag"));
982 EXTERN char e_cannot_go_beyond_last_matching_tag[]
983 INIT(= N_("E428: Cannot go beyond last matching tag"));
984 EXTERN char e_file_str_does_not_exist[]
985 INIT(= N_("E429: File \"%s\" does not exist"));
986 EXTERN char e_tag_file_path_truncated_for_str[]
987 INIT(= N_("E430: Tag file path truncated for %s\n"));
988 EXTERN char e_format_error_in_tags_file_str[]
989 INIT(= N_("E431: Format error in tags file \"%s\""));
990 EXTERN char e_tags_file_not_sorted_str[]
991 INIT(= N_("E432: Tags file not sorted: %s"));
992 EXTERN char e_no_tags_file[]
993 INIT(= N_("E433: No tags file"));
994 EXTERN char e_canot_find_tag_pattern[]
995 INIT(= N_("E434: Can't find tag pattern"));
996 EXTERN char e_couldnt_find_tag_just_guessing[]
997 INIT(= N_("E435: Couldn't find tag, just guessing!"));
998 EXTERN char e_no_str_entry_in_termcap[]
999 INIT(= N_("E436: No \"%s\" entry in termcap"));
1000 EXTERN char e_terminal_capability_cm_required[]
1001 INIT(= N_("E437: terminal capability \"cm\" required"));
1002 EXTERN char e_u_undo_line_numbers_wrong[]
1003 INIT(= N_("E438: u_undo: line numbers wrong"));
1004 EXTERN char e_undo_list_corrupt[]
1005 INIT(= N_("E439: undo list corrupt"));
1006 EXTERN char e_undo_line_missing[]
1007 INIT(= N_("E440: undo line missing"));
1008 EXTERN char e_there_is_no_preview_window[]
1009 INIT(= N_("E441: There is no preview window"));
1010 EXTERN char e_cant_split_topleft_and_botright_at_the_same_time[]
1011 INIT(= N_("E442: Can't split topleft and botright at the same time"));
1012 EXTERN char e_cannot_rotate_when_another_window_is_split[]
1013 INIT(= N_("E443: Cannot rotate when another window is split"));
1014 EXTERN char e_cannot_close_last_window[]
1015 INIT(= N_("E444: Cannot close last window"));
1016 EXTERN char e_other_window_contains_changes[]
1017 INIT(= N_("E445: Other window contains changes"));
1018 EXTERN char e_no_file_name_under_cursor[]
1019 INIT(= N_("E446: No file name under cursor"));
1020 EXTERN char e_cant_find_file_str_in_path_2[]
1021 INIT(= N_("E447: Can't find file \"%s\" in path"));
836 #ifdef USING_LOAD_LIBRARY 1022 #ifdef USING_LOAD_LIBRARY
837 EXTERN char e_could_not_load_library_function_str[] 1023 EXTERN char e_could_not_load_library_function_str[]
838 INIT(= N_("E448: Could not load library function %s")); 1024 INIT(= N_("E448: Could not load library function %s"));
839 #endif 1025 #endif
840 #ifdef FEAT_CLIENTSERVER 1026 #ifdef FEAT_CLIENTSERVER
841 EXTERN char e_invalid_expression_received[] 1027 EXTERN char e_invalid_expression_received[]
842 INIT(= N_("E449: Invalid expression received")); 1028 INIT(= N_("E449: Invalid expression received"));
843 #endif 1029 #endif
1030
844 #if defined(UNIX) || defined(FEAT_SESSION) 1031 #if defined(UNIX) || defined(FEAT_SESSION)
845 EXTERN char e_cannot_go_back_to_previous_directory[] 1032 EXTERN char e_cannot_go_back_to_previous_directory[]
846 INIT(= N_("E459: Cannot go back to previous directory")); 1033 INIT(= N_("E459: Cannot go back to previous directory"));
847 #endif 1034 #endif
848 #ifdef FEAT_EVAL 1035 #ifdef FEAT_EVAL