Mercurial > vim
comparison src/globals.h @ 26877:06a137af96f8 v8.2.3967
patch 8.2.3967: error messages are spread out
Commit: https://github.com/vim/vim/commit/460ae5dfca31fa627531c263184849976755cf6b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 1 14:19:49 2022 +0000
patch 8.2.3967: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Jan 2022 15:30:05 +0100 |
parents | bce848ec8b1b |
children | 7f150a4936f2 |
comparison
equal
deleted
inserted
replaced
26876:601a973ac16c | 26877:06a137af96f8 |
---|---|
1601 | 1601 |
1602 /* | 1602 /* |
1603 * Some error messages that can be shared are included here. | 1603 * Some error messages that can be shared are included here. |
1604 * They should be moved to errors.h. | 1604 * They should be moved to errors.h. |
1605 */ | 1605 */ |
1606 EXTERN char e_intern2[] INIT(= N_("E685: Internal error: %s")); | |
1607 EXTERN char e_duparg2[] INIT(= N_("E983: Duplicate argument: %s")); | |
1608 #ifdef FEAT_SPELL | |
1609 EXTERN char e_no_spell[] INIT(= N_("E756: Spell checking is not possible")); | |
1610 #endif | |
1611 #ifdef FEAT_LIBCALL | |
1612 EXTERN char e_libcall[] INIT(= N_("E364: Library call failed for \"%s()\"")); | |
1613 #endif | |
1614 #ifdef HAVE_FSYNC | |
1615 EXTERN char e_fsync[] INIT(= N_("E667: Fsync failed")); | |
1616 #endif | |
1617 #if defined(DYNAMIC_PERL) \ | |
1618 || defined(DYNAMIC_PYTHON) || defined(DYNAMIC_PYTHON3) \ | |
1619 || defined(DYNAMIC_RUBY) \ | |
1620 || defined(DYNAMIC_TCL) \ | |
1621 || defined(DYNAMIC_ICONV) \ | |
1622 || defined(DYNAMIC_GETTEXT) \ | |
1623 || defined(DYNAMIC_MZSCHEME) \ | |
1624 || defined(DYNAMIC_LUA) \ | |
1625 || defined(FEAT_TERMINAL) | |
1626 EXTERN char e_loadlib[] INIT(= N_("E370: Could not load library %s: %s")); | |
1627 EXTERN char e_loadfunc[] INIT(= N_("E448: Could not load library function %s")); | |
1628 #endif | |
1629 EXTERN char e_nobang[] INIT(= N_("E477: No ! allowed")); | |
1630 #ifndef FEAT_ARABIC | |
1631 EXTERN char e_noarabic[] INIT(= N_("E800: Arabic cannot be used: Not enabled at compile time\n")); | |
1632 #endif | |
1633 EXTERN char e_nomatch[] INIT(= N_("E479: No match")); | |
1634 EXTERN char e_nomatch2[] INIT(= N_("E480: No match: %s")); | |
1635 EXTERN char e_norange[] INIT(= N_("E481: No range allowed")); | |
1636 #ifdef FEAT_CLIENTSERVER | |
1637 EXTERN char e_noserver[] INIT(= N_("E247: no registered server named \"%s\"")); | |
1638 #endif | |
1639 EXTERN char e_notcreate[] INIT(= N_("E482: Can't create file %s")); | |
1640 EXTERN char e_notmp[] INIT(= N_("E483: Can't get temp file name")); | |
1641 EXTERN char e_notopen[] INIT(= N_("E484: Can't open file %s")); | |
1642 EXTERN char e_notread[] INIT(= N_("E485: Can't read file %s")); | |
1643 #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_X11) | |
1644 EXTERN char e_opendisp[] INIT(= N_("E233: cannot open display")); | |
1645 #endif | |
1646 EXTERN char e_patnotf[] INIT(= N_("Pattern not found")); | |
1647 EXTERN char e_patnotf2[] INIT(= N_("E486: Pattern not found: %s")); | |
1648 EXTERN char e_positive[] INIT(= N_("E487: Argument must be positive")); | |
1649 #if defined(UNIX) || defined(FEAT_SESSION) | |
1650 EXTERN char e_prev_dir[] INIT(= N_("E459: Cannot go back to previous directory")); | |
1651 #endif | |
1652 | |
1653 #ifdef FEAT_QUICKFIX | |
1654 EXTERN char e_loclist[] INIT(= N_("E776: No location list")); | |
1655 #endif | |
1656 #ifdef FEAT_EVAL | |
1657 EXTERN char e_letwrong[] INIT(= N_("E734: Wrong variable type for %s=")); | |
1658 EXTERN char e_illvar[] INIT(= N_("E461: Illegal variable name: %s")); | |
1659 EXTERN char e_cannot_mod[] INIT(= N_("E995: Cannot modify existing variable")); | |
1660 EXTERN char e_stringreq[] INIT(= N_("E928: String required")); | |
1661 EXTERN char e_numberreq[] INIT(= N_("E889: Number required")); | |
1662 EXTERN char e_boolreq[] INIT(= N_("E839: Bool required")); | |
1663 EXTERN char e_emptykey[] INIT(= N_("E713: Cannot use empty key for Dictionary")); | |
1664 EXTERN char e_dictreq[] INIT(= N_("E715: Dictionary required")); | |
1665 EXTERN char e_listidx[] INIT(= N_("E684: list index out of range: %ld")); | |
1666 EXTERN char e_blobidx[] INIT(= N_("E979: Blob index out of range: %ld")); | |
1667 EXTERN char e_invalblob[] INIT(= N_("E978: Invalid operation for Blob")); | |
1668 EXTERN char e_func_deleted[] INIT(= N_("E933: Function was deleted: %s")); | |
1669 EXTERN char e_dictkey[] INIT(= N_("E716: Key not present in Dictionary: \"%s\"")); | |
1670 EXTERN char e_listreq[] INIT(= N_("E714: List required")); | |
1671 EXTERN char e_listblobreq[] INIT(= N_("E897: List or Blob required")); | |
1672 EXTERN char e_list_end[] INIT(= N_("E697: Missing end of List ']': %s")); | |
1673 EXTERN char e_listdictarg[] INIT(= N_("E712: Argument of %s must be a List or Dictionary")); | |
1674 EXTERN char e_listdictblobarg[] INIT(= N_("E896: Argument of %s must be a List, Dictionary or Blob")); | |
1675 EXTERN char e_modulus[] INIT(= N_("E804: Cannot use '%' with Float")); | |
1676 EXTERN char e_const_option[] INIT(= N_("E996: Cannot lock an option")); | |
1677 EXTERN char e_reduceempty[] INIT(= N_("E998: Reduce of an empty %s with no initial value")); | |
1678 EXTERN char e_no_dict_key[] INIT(= N_("E857: Dictionary key \"%s\" required")); | |
1679 #endif | |
1680 EXTERN char e_secure[] INIT(= N_("E523: Not allowed here")); | 1606 EXTERN char e_secure[] INIT(= N_("E523: Not allowed here")); |
1681 EXTERN char e_textlock[] INIT(= N_("E578: Not allowed to change text here")); | 1607 EXTERN char e_textlock[] INIT(= N_("E578: Not allowed to change text here")); |
1682 EXTERN char e_textwinlock[] INIT(= N_("E565: Not allowed to change text or change window")); | 1608 EXTERN char e_textwinlock[] INIT(= N_("E565: Not allowed to change text or change window")); |
1683 #if defined(AMIGA) || defined(MACOS_X) || defined(MSWIN) \ | 1609 #if defined(AMIGA) || defined(MACOS_X) || defined(MSWIN) \ |
1684 || defined(UNIX) || defined(VMS) | 1610 || defined(UNIX) || defined(VMS) |