comparison src/globals.h @ 25306:078edc1821bf v8.2.3190

patch 8.2.3190: error messages are spread out Commit: https://github.com/vim/vim/commit/e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 20 21:07:36 2021 +0200 patch 8.2.3190: error messages are spread out Problem: Error messages are spread out. Solution: Move error messages to errors.h and give them a clear name.
author Bram Moolenaar <Bram@vim.org>
date Tue, 20 Jul 2021 21:15:05 +0200
parents 4d3c68196d05
children 1e6da8364a02
comparison
equal deleted inserted replaced
25305:4032f1628500 25306:078edc1821bf
1634 || defined(FEAT_TERMINAL) 1634 || defined(FEAT_TERMINAL)
1635 EXTERN char e_loadlib[] INIT(= N_("E370: Could not load library %s")); 1635 EXTERN char e_loadlib[] INIT(= N_("E370: Could not load library %s"));
1636 EXTERN char e_loadfunc[] INIT(= N_("E448: Could not load library function %s")); 1636 EXTERN char e_loadfunc[] INIT(= N_("E448: Could not load library function %s"));
1637 #endif 1637 #endif
1638 EXTERN char e_nobang[] INIT(= N_("E477: No ! allowed")); 1638 EXTERN char e_nobang[] INIT(= N_("E477: No ! allowed"));
1639 #if !defined(FEAT_GUI) || defined(VIMDLL)
1640 EXTERN char e_nogvim[] INIT(= N_("E25: GUI cannot be used: Not enabled at compile time"));
1641 #endif
1642 #ifndef FEAT_RIGHTLEFT
1643 EXTERN char e_nohebrew[] INIT(= N_("E26: Hebrew cannot be used: Not enabled at compile time\n"));
1644 #endif
1645 EXTERN char e_nofarsi[] INIT(= N_("E27: Farsi support has been removed\n"));
1646 #ifndef FEAT_ARABIC 1639 #ifndef FEAT_ARABIC
1647 EXTERN char e_noarabic[] INIT(= N_("E800: Arabic cannot be used: Not enabled at compile time\n")); 1640 EXTERN char e_noarabic[] INIT(= N_("E800: Arabic cannot be used: Not enabled at compile time\n"));
1648 #endif 1641 #endif
1649 #if defined(FEAT_SEARCH_EXTRA) || defined(FEAT_SYN_HL)
1650 EXTERN char e_nogroup[] INIT(= N_("E28: No such highlight group name: %s"));
1651 #endif
1652 EXTERN char e_noinstext[] INIT(= N_("E29: No inserted text yet"));
1653 EXTERN char e_nolastcmd[] INIT(= N_("E30: No previous command line"));
1654 EXTERN char e_nomap[] INIT(= N_("E31: No such mapping"));
1655 EXTERN char e_nomatch[] INIT(= N_("E479: No match")); 1642 EXTERN char e_nomatch[] INIT(= N_("E479: No match"));
1656 EXTERN char e_nomatch2[] INIT(= N_("E480: No match: %s")); 1643 EXTERN char e_nomatch2[] INIT(= N_("E480: No match: %s"));
1657 EXTERN char e_noname[] INIT(= N_("E32: No file name"));
1658 EXTERN char e_nopresub[] INIT(= N_("E33: No previous substitute regular expression"));
1659 EXTERN char e_noprev[] INIT(= N_("E34: No previous command"));
1660 EXTERN char e_noprevre[] INIT(= N_("E35: No previous regular expression"));
1661 EXTERN char e_norange[] INIT(= N_("E481: No range allowed")); 1644 EXTERN char e_norange[] INIT(= N_("E481: No range allowed"));
1662 EXTERN char e_noroom[] INIT(= N_("E36: Not enough room"));
1663 #ifdef FEAT_CLIENTSERVER 1645 #ifdef FEAT_CLIENTSERVER
1664 EXTERN char e_noserver[] INIT(= N_("E247: no registered server named \"%s\"")); 1646 EXTERN char e_noserver[] INIT(= N_("E247: no registered server named \"%s\""));
1665 #endif 1647 #endif
1666 EXTERN char e_notcreate[] INIT(= N_("E482: Can't create file %s")); 1648 EXTERN char e_notcreate[] INIT(= N_("E482: Can't create file %s"));
1667 EXTERN char e_notmp[] INIT(= N_("E483: Can't get temp file name")); 1649 EXTERN char e_notmp[] INIT(= N_("E483: Can't get temp file name"));
1668 EXTERN char e_notopen[] INIT(= N_("E484: Can't open file %s")); 1650 EXTERN char e_notopen[] INIT(= N_("E484: Can't open file %s"));
1669 EXTERN char e_notread[] INIT(= N_("E485: Can't read file %s")); 1651 EXTERN char e_notread[] INIT(= N_("E485: Can't read file %s"));
1670 EXTERN char e_null[] INIT(= N_("E38: Null argument"));
1671 #if defined(FEAT_DIGRAPHS) || defined(FEAT_TIMERS) || defined(FEAT_EVAL)
1672 EXTERN char e_number_exp[] INIT(= N_("E39: Number expected"));
1673 #endif
1674 #ifdef FEAT_QUICKFIX
1675 EXTERN char e_openerrf[] INIT(= N_("E40: Can't open errorfile %s"));
1676 #endif
1677 #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_X11) 1652 #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_X11)
1678 EXTERN char e_opendisp[] INIT(= N_("E233: cannot open display")); 1653 EXTERN char e_opendisp[] INIT(= N_("E233: cannot open display"));
1679 #endif 1654 #endif
1680 EXTERN char e_outofmem[] INIT(= N_("E41: Out of memory!"));
1681 EXTERN char e_patnotf[] INIT(= N_("Pattern not found")); 1655 EXTERN char e_patnotf[] INIT(= N_("Pattern not found"));
1682 EXTERN char e_patnotf2[] INIT(= N_("E486: Pattern not found: %s")); 1656 EXTERN char e_patnotf2[] INIT(= N_("E486: Pattern not found: %s"));
1683 EXTERN char e_positive[] INIT(= N_("E487: Argument must be positive")); 1657 EXTERN char e_positive[] INIT(= N_("E487: Argument must be positive"));
1684 #if defined(UNIX) || defined(FEAT_SESSION) 1658 #if defined(UNIX) || defined(FEAT_SESSION)
1685 EXTERN char e_prev_dir[] INIT(= N_("E459: Cannot go back to previous directory")); 1659 EXTERN char e_prev_dir[] INIT(= N_("E459: Cannot go back to previous directory"));
1686 #endif 1660 #endif
1687 1661
1688 #ifdef FEAT_QUICKFIX 1662 #ifdef FEAT_QUICKFIX
1689 EXTERN char e_quickfix[] INIT(= N_("E42: No Errors"));
1690 EXTERN char e_loclist[] INIT(= N_("E776: No location list")); 1663 EXTERN char e_loclist[] INIT(= N_("E776: No location list"));
1691 #endif 1664 #endif
1692 EXTERN char e_re_damg[] INIT(= N_("E43: Damaged match string"));
1693 EXTERN char e_re_corr[] INIT(= N_("E44: Corrupted regexp program"));
1694 EXTERN char e_readonly[] INIT(= N_("E45: 'readonly' option is set (add ! to override)"));
1695 #ifdef FEAT_EVAL 1665 #ifdef FEAT_EVAL
1696 EXTERN char e_letwrong[] INIT(= N_("E734: Wrong variable type for %s=")); 1666 EXTERN char e_letwrong[] INIT(= N_("E734: Wrong variable type for %s="));
1697 EXTERN char e_illvar[] INIT(= N_("E461: Illegal variable name: %s")); 1667 EXTERN char e_illvar[] INIT(= N_("E461: Illegal variable name: %s"));
1698 EXTERN char e_cannot_mod[] INIT(= N_("E995: Cannot modify existing variable")); 1668 EXTERN char e_cannot_mod[] INIT(= N_("E995: Cannot modify existing variable"));
1699 EXTERN char e_readonlyvar[] INIT(= N_("E46: Cannot change read-only variable \"%s\"")); 1669 EXTERN char e_readonlyvar[] INIT(= N_("E46: Cannot change read-only variable \"%s\""));