Mercurial > vim
comparison src/errors.h @ 31602:53c3df37a2b0 v9.0.1133
patch 9.0.1133: error message names do not match the items
Commit: https://github.com/vim/vim/commit/a9fa8c58fbcc5cf8850f6963c509de272f4d4bbf
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 2 18:10:04 2023 +0000
patch 9.0.1133: error message names do not match the items
Problem: Error message names do not match the items.
Solution: Add "_str" when the text contains "%s".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 02 Jan 2023 19:15:04 +0100 |
parents | 65a2bae18b27 |
children | 5c1b7a87466e |
comparison
equal
deleted
inserted
replaced
31601:7282793ec66f | 31602:53c3df37a2b0 |
---|---|
966 INIT(= N_("E389: Couldn't find pattern")); | 966 INIT(= N_("E389: Couldn't find pattern")); |
967 #endif | 967 #endif |
968 #ifdef FEAT_SYN_HL | 968 #ifdef FEAT_SYN_HL |
969 EXTERN char e_illegal_argument_str_2[] | 969 EXTERN char e_illegal_argument_str_2[] |
970 INIT(= N_("E390: Illegal argument: %s")); | 970 INIT(= N_("E390: Illegal argument: %s")); |
971 EXTERN char e_no_such_syntax_cluster_1[] | 971 EXTERN char e_no_such_syntax_cluster_str_1[] |
972 INIT(= N_("E391: No such syntax cluster: %s")); | 972 INIT(= N_("E391: No such syntax cluster: %s")); |
973 EXTERN char e_no_such_syntax_cluster_2[] | 973 EXTERN char e_no_such_syntax_cluster_str_2[] |
974 INIT(= N_("E392: No such syntax cluster: %s")); | 974 INIT(= N_("E392: No such syntax cluster: %s")); |
975 EXTERN char e_groupthere_not_accepted_here[] | 975 EXTERN char e_groupthere_not_accepted_here[] |
976 INIT(= N_("E393: group[t]here not accepted here")); | 976 INIT(= N_("E393: group[t]here not accepted here")); |
977 EXTERN char e_didnt_find_region_item_for_str[] | 977 EXTERN char e_didnt_find_region_item_for_str[] |
978 INIT(= N_("E394: Didn't find region item for %s")); | 978 INIT(= N_("E394: Didn't find region item for %s")); |
1026 INIT(= N_("E418: Illegal value: %s")); | 1026 INIT(= N_("E418: Illegal value: %s")); |
1027 EXTERN char e_fg_color_unknown[] | 1027 EXTERN char e_fg_color_unknown[] |
1028 INIT(= N_("E419: FG color unknown")); | 1028 INIT(= N_("E419: FG color unknown")); |
1029 EXTERN char e_bg_color_unknown[] | 1029 EXTERN char e_bg_color_unknown[] |
1030 INIT(= N_("E420: BG color unknown")); | 1030 INIT(= N_("E420: BG color unknown")); |
1031 EXTERN char e_color_name_or_number_not_recognized[] | 1031 EXTERN char e_color_name_or_number_not_recognized_str[] |
1032 INIT(= N_("E421: Color name or number not recognized: %s")); | 1032 INIT(= N_("E421: Color name or number not recognized: %s")); |
1033 EXTERN char e_terminal_code_too_long_str[] | 1033 EXTERN char e_terminal_code_too_long_str[] |
1034 INIT(= N_("E422: Terminal code too long: %s")); | 1034 INIT(= N_("E422: Terminal code too long: %s")); |
1035 EXTERN char e_illegal_argument_str_3[] | 1035 EXTERN char e_illegal_argument_str_3[] |
1036 INIT(= N_("E423: Illegal argument: %s")); | 1036 INIT(= N_("E423: Illegal argument: %s")); |
1794 INIT(= N_("E713: Cannot use empty key for Dictionary")); | 1794 INIT(= N_("E713: Cannot use empty key for Dictionary")); |
1795 EXTERN char e_list_required[] | 1795 EXTERN char e_list_required[] |
1796 INIT(= N_("E714: List required")); | 1796 INIT(= N_("E714: List required")); |
1797 EXTERN char e_dictionary_required[] | 1797 EXTERN char e_dictionary_required[] |
1798 INIT(= N_("E715: Dictionary required")); | 1798 INIT(= N_("E715: Dictionary required")); |
1799 EXTERN char e_key_not_present_in_dictionary[] | 1799 EXTERN char e_key_not_present_in_dictionary_str[] |
1800 INIT(= N_("E716: Key not present in Dictionary: \"%s\"")); | 1800 INIT(= N_("E716: Key not present in Dictionary: \"%s\"")); |
1801 EXTERN char e_dictionary_entry_already_exists[] | 1801 EXTERN char e_dictionary_entry_already_exists[] |
1802 INIT(= N_("E717: Dictionary entry already exists")); | 1802 INIT(= N_("E717: Dictionary entry already exists")); |
1803 EXTERN char e_funcref_required[] | 1803 EXTERN char e_funcref_required[] |
1804 INIT(= N_("E718: Funcref required")); | 1804 INIT(= N_("E718: Funcref required")); |
1805 EXTERN char e_cannot_slice_dictionary[] | 1805 EXTERN char e_cannot_slice_dictionary[] |
1806 INIT(= N_("E719: Cannot slice a Dictionary")); | 1806 INIT(= N_("E719: Cannot slice a Dictionary")); |
1807 EXTERN char e_missing_colon_in_dictionary[] | 1807 EXTERN char e_missing_colon_in_dictionary_str[] |
1808 INIT(= N_("E720: Missing colon in Dictionary: %s")); | 1808 INIT(= N_("E720: Missing colon in Dictionary: %s")); |
1809 EXTERN char e_duplicate_key_in_dictionary[] | 1809 EXTERN char e_duplicate_key_in_dictionary_str[] |
1810 INIT(= N_("E721: Duplicate key in Dictionary: \"%s\"")); | 1810 INIT(= N_("E721: Duplicate key in Dictionary: \"%s\"")); |
1811 EXTERN char e_missing_comma_in_dictionary[] | 1811 EXTERN char e_missing_comma_in_dictionary_str[] |
1812 INIT(= N_("E722: Missing comma in Dictionary: %s")); | 1812 INIT(= N_("E722: Missing comma in Dictionary: %s")); |
1813 EXTERN char e_missing_dict_end[] | 1813 EXTERN char e_missing_dict_end_str[] |
1814 INIT(= N_("E723: Missing end of Dictionary '}': %s")); | 1814 INIT(= N_("E723: Missing end of Dictionary '}': %s")); |
1815 EXTERN char e_variable_nested_too_deep_for_displaying[] | 1815 EXTERN char e_variable_nested_too_deep_for_displaying[] |
1816 INIT(= N_("E724: Variable nested too deep for displaying")); | 1816 INIT(= N_("E724: Variable nested too deep for displaying")); |
1817 EXTERN char e_calling_dict_function_without_dictionary_str[] | 1817 EXTERN char e_calling_dict_function_without_dictionary_str[] |
1818 INIT(= N_("E725: Calling dict function without Dictionary: %s")); | 1818 INIT(= N_("E725: Calling dict function without Dictionary: %s")); |
2109 INIT(= N_("E830: Undo number %ld not found")); | 2109 INIT(= N_("E830: Undo number %ld not found")); |
2110 #ifdef FEAT_CRYPT | 2110 #ifdef FEAT_CRYPT |
2111 EXTERN char e_bf_key_init_called_with_empty_password[] | 2111 EXTERN char e_bf_key_init_called_with_empty_password[] |
2112 INIT(= N_("E831: bf_key_init() called with empty password")); | 2112 INIT(= N_("E831: bf_key_init() called with empty password")); |
2113 # ifdef FEAT_PERSISTENT_UNDO | 2113 # ifdef FEAT_PERSISTENT_UNDO |
2114 EXTERN char e_non_encrypted_file_has_encrypted_undo_file[] | 2114 EXTERN char e_non_encrypted_file_has_encrypted_undo_file_str[] |
2115 INIT(= N_("E832: Non-encrypted file has encrypted undo file: %s")); | 2115 INIT(= N_("E832: Non-encrypted file has encrypted undo file: %s")); |
2116 # endif | 2116 # endif |
2117 #else | 2117 #else |
2118 EXTERN char e_str_is_encrypted_and_this_version_of_vim_does_not_support_encryption[] | 2118 EXTERN char e_str_is_encrypted_and_this_version_of_vim_does_not_support_encryption[] |
2119 INIT(= N_("E833: %s is encrypted and this version of Vim does not support encryption")); | 2119 INIT(= N_("E833: %s is encrypted and this version of Vim does not support encryption")); |
2395 INIT(= N_("E930: Cannot use :redir inside execute()")); | 2395 INIT(= N_("E930: Cannot use :redir inside execute()")); |
2396 #endif | 2396 #endif |
2397 EXTERN char e_buffer_cannot_be_registered[] | 2397 EXTERN char e_buffer_cannot_be_registered[] |
2398 INIT(= N_("E931: Buffer cannot be registered")); | 2398 INIT(= N_("E931: Buffer cannot be registered")); |
2399 #ifdef FEAT_EVAL | 2399 #ifdef FEAT_EVAL |
2400 EXTERN char e_closure_function_should_not_be_at_top_level[] | 2400 EXTERN char e_closure_function_should_not_be_at_top_level_str[] |
2401 INIT(= N_("E932: Closure function should not be at top level: %s")); | 2401 INIT(= N_("E932: Closure function should not be at top level: %s")); |
2402 EXTERN char e_function_was_deleted_str[] | 2402 EXTERN char e_function_was_deleted_str[] |
2403 INIT(= N_("E933: Function was deleted: %s")); | 2403 INIT(= N_("E933: Function was deleted: %s")); |
2404 #endif | 2404 #endif |
2405 #ifdef FEAT_SIGNS | 2405 #ifdef FEAT_SIGNS |
2511 INIT(= N_("E968: Need at least one of 'id' or 'type'")); | 2511 INIT(= N_("E968: Need at least one of 'id' or 'type'")); |
2512 EXTERN char e_property_type_str_already_defined[] | 2512 EXTERN char e_property_type_str_already_defined[] |
2513 INIT(= N_("E969: Property type %s already defined")); | 2513 INIT(= N_("E969: Property type %s already defined")); |
2514 EXTERN char e_unknown_highlight_group_name_str[] | 2514 EXTERN char e_unknown_highlight_group_name_str[] |
2515 INIT(= N_("E970: Unknown highlight group name: '%s'")); | 2515 INIT(= N_("E970: Unknown highlight group name: '%s'")); |
2516 EXTERN char e_type_not_exist[] | 2516 EXTERN char e_property_type_str_does_not_exist[] |
2517 INIT(= N_("E971: Property type %s does not exist")); | 2517 INIT(= N_("E971: Property type %s does not exist")); |
2518 #endif | 2518 #endif |
2519 #ifdef FEAT_EVAL | 2519 #ifdef FEAT_EVAL |
2520 EXTERN char e_blob_value_does_not_have_right_number_of_bytes[] | 2520 EXTERN char e_blob_value_does_not_have_right_number_of_bytes[] |
2521 INIT(= N_("E972: Blob value does not have the right number of bytes")); | 2521 INIT(= N_("E972: Blob value does not have the right number of bytes")); |
2632 INIT(= N_("E1013: Argument %d: type mismatch, expected %s but got %s in %s")); | 2632 INIT(= N_("E1013: Argument %d: type mismatch, expected %s but got %s in %s")); |
2633 EXTERN char e_invalid_key_str[] | 2633 EXTERN char e_invalid_key_str[] |
2634 INIT(= N_("E1014: Invalid key: %s")); | 2634 INIT(= N_("E1014: Invalid key: %s")); |
2635 EXTERN char e_name_expected_str[] | 2635 EXTERN char e_name_expected_str[] |
2636 INIT(= N_("E1015: Name expected: %s")); | 2636 INIT(= N_("E1015: Name expected: %s")); |
2637 EXTERN char e_cannot_declare_a_scope_variable[] | 2637 EXTERN char e_cannot_declare_a_scope_variable_str[] |
2638 INIT(= N_("E1016: Cannot declare a %s variable: %s")); | 2638 INIT(= N_("E1016: Cannot declare a %s variable: %s")); |
2639 EXTERN char e_cannot_declare_an_environment_variable[] | 2639 EXTERN char e_cannot_declare_an_environment_variable_str[] |
2640 INIT(= N_("E1016: Cannot declare an environment variable: %s")); | 2640 INIT(= N_("E1016: Cannot declare an environment variable: %s")); |
2641 EXTERN char e_variable_already_declared[] | 2641 EXTERN char e_variable_already_declared_str[] |
2642 INIT(= N_("E1017: Variable already declared: %s")); | 2642 INIT(= N_("E1017: Variable already declared: %s")); |
2643 EXTERN char e_cannot_assign_to_constant[] | 2643 EXTERN char e_cannot_assign_to_constant_str[] |
2644 INIT(= N_("E1018: Cannot assign to a constant: %s")); | 2644 INIT(= N_("E1018: Cannot assign to a constant: %s")); |
2645 EXTERN char e_can_only_concatenate_to_string[] | 2645 EXTERN char e_can_only_concatenate_to_string[] |
2646 INIT(= N_("E1019: Can only concatenate to string")); | 2646 INIT(= N_("E1019: Can only concatenate to string")); |
2647 EXTERN char e_cannot_use_operator_on_new_variable[] | 2647 EXTERN char e_cannot_use_operator_on_new_variable_str[] |
2648 INIT(= N_("E1020: Cannot use an operator on a new variable: %s")); | 2648 INIT(= N_("E1020: Cannot use an operator on a new variable: %s")); |
2649 EXTERN char e_const_requires_a_value[] | 2649 EXTERN char e_const_requires_a_value[] |
2650 INIT(= N_("E1021: Const requires a value")); | 2650 INIT(= N_("E1021: Const requires a value")); |
2651 EXTERN char e_type_or_initialization_required[] | 2651 EXTERN char e_type_or_initialization_required[] |
2652 INIT(= N_("E1022: Type or initialization required")); | 2652 INIT(= N_("E1022: Type or initialization required")); |
2672 INIT(= N_("E1031: Cannot use void value")); | 2672 INIT(= N_("E1031: Cannot use void value")); |
2673 EXTERN char e_missing_catch_or_finally[] | 2673 EXTERN char e_missing_catch_or_finally[] |
2674 INIT(= N_("E1032: Missing :catch or :finally")); | 2674 INIT(= N_("E1032: Missing :catch or :finally")); |
2675 EXTERN char e_catch_unreachable_after_catch_all[] | 2675 EXTERN char e_catch_unreachable_after_catch_all[] |
2676 INIT(= N_("E1033: Catch unreachable after catch-all")); | 2676 INIT(= N_("E1033: Catch unreachable after catch-all")); |
2677 EXTERN char e_cannot_use_reserved_name[] | 2677 EXTERN char e_cannot_use_reserved_name_str[] |
2678 INIT(= N_("E1034: Cannot use reserved name %s")); | 2678 INIT(= N_("E1034: Cannot use reserved name %s")); |
2679 EXTERN char e_percent_requires_number_arguments[] | 2679 EXTERN char e_percent_requires_number_arguments[] |
2680 // xgettext:no-c-format | 2680 // xgettext:no-c-format |
2681 INIT(= N_("E1035: % requires number arguments")); | 2681 INIT(= N_("E1035: % requires number arguments")); |
2682 EXTERN char e_char_requires_number_or_float_arguments[] | 2682 EXTERN char e_char_requires_number_or_float_arguments[] |
2711 EXTERN char e_colon_required_before_range_str[] | 2711 EXTERN char e_colon_required_before_range_str[] |
2712 INIT(= N_("E1050: Colon required before a range: %s")); | 2712 INIT(= N_("E1050: Colon required before a range: %s")); |
2713 #ifdef FEAT_EVAL | 2713 #ifdef FEAT_EVAL |
2714 EXTERN char e_wrong_argument_type_for_plus[] | 2714 EXTERN char e_wrong_argument_type_for_plus[] |
2715 INIT(= N_("E1051: Wrong argument type for +")); | 2715 INIT(= N_("E1051: Wrong argument type for +")); |
2716 EXTERN char e_cannot_declare_an_option[] | 2716 EXTERN char e_cannot_declare_an_option_str[] |
2717 INIT(= N_("E1052: Cannot declare an option: %s")); | 2717 INIT(= N_("E1052: Cannot declare an option: %s")); |
2718 EXTERN char e_could_not_import_str[] | 2718 EXTERN char e_could_not_import_str[] |
2719 INIT(= N_("E1053: Could not import \"%s\"")); | 2719 INIT(= N_("E1053: Could not import \"%s\"")); |
2720 EXTERN char e_variable_already_declared_in_script_str[] | 2720 EXTERN char e_variable_already_declared_in_script_str[] |
2721 INIT(= N_("E1054: Variable already declared in the script: %s")); | 2721 INIT(= N_("E1054: Variable already declared in the script: %s")); |
2789 INIT(= N_("E1087: Cannot use an index when declaring a variable")); | 2789 INIT(= N_("E1087: Cannot use an index when declaring a variable")); |
2790 EXTERN char e_script_cannot_import_itself[] | 2790 EXTERN char e_script_cannot_import_itself[] |
2791 INIT(= N_("E1088: Script cannot import itself")); | 2791 INIT(= N_("E1088: Script cannot import itself")); |
2792 EXTERN char e_unknown_variable_str[] | 2792 EXTERN char e_unknown_variable_str[] |
2793 INIT(= N_("E1089: Unknown variable: %s")); | 2793 INIT(= N_("E1089: Unknown variable: %s")); |
2794 EXTERN char e_cannot_assign_to_argument[] | 2794 EXTERN char e_cannot_assign_to_argument_str[] |
2795 INIT(= N_("E1090: Cannot assign to argument %s")); | 2795 INIT(= N_("E1090: Cannot assign to argument %s")); |
2796 EXTERN char e_function_is_not_compiled_str[] | 2796 EXTERN char e_function_is_not_compiled_str[] |
2797 INIT(= N_("E1091: Function is not compiled: %s")); | 2797 INIT(= N_("E1091: Function is not compiled: %s")); |
2798 EXTERN char e_cannot_nest_redir[] | 2798 EXTERN char e_cannot_nest_redir[] |
2799 INIT(= N_("E1092: Cannot nest :redir")); | 2799 INIT(= N_("E1092: Cannot nest :redir")); |