-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy patherrors.c
130 lines (120 loc) · 5.49 KB
/
errors.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/* Error message vector.
Copyright (C) 1993-1998 Sebastiano Vigna
Copyright (C) 1999-2025 Todd M. Lewis and Sebastiano Vigna
This file is part of ne, the nice editor.
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>. */
#include "errors.h"
/* Whenever this vector is updated, the corresponding enum in errors.h
*must* be updated too. */
char *error_msg[ERROR_COUNT] = {
/* 0 */ "",
/* 1 */ "Syntax error.",
/* 2 */ "Not found. (RepeatLast to wrap)",
/* 3 */ "Can't save a document. Exit suspended.",
/* 4 */ "Can't save all modified documents.",
/* 5 */ "You are not positioned over {}, (), [] or <>.",
/* 6 */ "Can't find matching bracket.",
/* 7 */ "Bookmark not set.",
/* 8 */ "Invalid Bookmark designation (use 0 through 9, -1, +1, '<', '>', or '-').",
/* 9 */ "No unset Bookmarks to set.",
/* 10 */ "No set Bookmarks to goto.",
/* 11 */ "No set Bookmarks to unset.",
/* 12 */ "Invalid level (use 0, '+', '-', or none).",
/* 13 */ "You cannot insert a character whose ASCII code is 0.",
/* 14 */ "No search string.",
/* 15 */ "No replace string.",
/* 16 */ "TAB size out of range.",
/* 17 */ "Invalid match mode.",
/* 18 */ "Mark a block first.",
/* 19 */ "Out of memory. DANGER!",
/* 20 */ "Nothing to undo.",
/* 21 */ "Nothing to redo",
/* 22 */ "Undo is not enabled",
/* 23 */ "No such command.",
/* 24 */ "Can execute only preference commands.",
/* 25 */ "Command needs a numeric argument.",
/* 26 */ "Command has no arguments.",
/* 27 */ "Command requires an argument.",
/* 28 */ "Wrong character after backslash.",
/* 29 */ "File doesn't exist.",
/* 30 */ "Can't open file.",
/* 31 */ "Can't open temporary files.",
/* 32 */ "Error while writing.",
/* 33 */ "Document name has no extension.",
/* 34 */ "Can't find or create $HOME/.ne directory.",
/* 35 */ "Clip does not exist.",
/* 36 */ "Mark is out of document.",
/* 37 */ "Can't open macro.",
/* 38 */ "Maximum macro depth exceeded.",
/* 39 */ "This document is read-only.",
/* 40 */ "Can't open file (file is migrated).",
/* 41 */ "Can't open file (file is a directory).",
/* 42 */ "Can't open file (file is too large).",
/* 43 */ "Stopped.",
/* 44 */ "I/O error.",
/* 45 */ "The argument string is empty.",
/* 46 */ "External command error.",
/* 47 */ "Escape time out of range.",
/* 48 */ "Prefs stack is full.",
/* 49 */ "Prefs stack is empty.",
/* 50 */ "The argument is not a number.",
/* 51 */ "This character is not supported in this configuration.",
/* 52 */ "This string is not supported in this configuration.",
/* 53 */ "This buffer is not UTF-8 encoded.",
/* 54 */ "This clip cannot be pasted in this buffer (incompatible encoding).",
/* 55 */ "This command line cannot be executed in this buffer (incompatible encoding).",
/* 56 */ "This string cannot be searched for in this buffer (incompatible encoding).",
/* 57 */ "This replacement string cannot be used in this buffer (incompatible encoding).",
/* 58 */ "UTF-8 character classes in regular expressions are not supported.",
/* 59 */ "Character classes cannot be complemented when matching against UTF-8 text.",
/* 60 */ "The specified regex replacement group is not available in UTF-8 mode.",
/* 61 */ "Syntax highlighting is not enabled.",
/* 62 */ "There is no syntax for that extension.",
/* 63 */ "Invalid Shift specified (use [<|>][#][s|t]; default is \">1t\").",
/* 64 */ "Insufficient white space for requested left shift.",
/* 65 */ "Document not saved.",
/* 66 */ "File is too large--syntax highlighting disabled (use SYNTAX to reactivate).",
/* 67 */ "Cannot save: disk full.",
/* 68 */ "Out of memory (insufficient disk space?). DANGER!",
/* 69 */ "Invalid Bracketed Paste designation (use '0', '1', or two macro names)."
};
char *info_msg[INFO_COUNT] = {
"Saving...",
"Saved.",
"All modified documents saved.",
"Document is marked ReadOnly; save anyway?",
"SELECT cursor/Enter FILTER chars/BS MODE Ins/Del EDIT Tab FILENAME F1/Esc-Esc/Esc",
"Start of block marked. Move to the end of block and request actions.",
"Start of vertical block marked. Move to the end of block and request actions.",
"Starting macro recording...",
"Macro recording completed.",
"Macro record appending started.",
"Macro recording cancelled.",
"Some documents have not been saved; are you sure?",
"Press a key to see ne's corresponding key code:",
"This document is not saved; are you sure?",
"There is another document with the same name; are you sure?",
"No matching words found.",
"Completed.",
"Partially completed.",
"Cancelled.",
"SELECT cursor/Enter FILTER chars/BS MODE Ins/Del REORDER F2/F3 QUIT F1/Esc-Esc/Esc",
"File has been modified since buffer was loaded or saved; are you sure?",
"A file with that name already exists; are you sure?",
"No such file exists; blank out current document?",
"HELP cursor/Enter QUIT F1/Esc-Esc/Esc",
"BACK Enter QUIT F1/Esc-Esc/Esc",
" (browse history with ^F)",
"Invalid argument for 'Record' while recording.",
"All Bookmarks cleared.",
"AtomicUndo level: 0"
};