• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdespell2
 

tdespell2

  • tdespell2
  • plugins
  • ispell
msgs.h
1/* enchant
2 * Copyright (C) 2003 Dom Lachowicz
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 *
19 * In addition, as a special exception, Dom Lachowicz
20 * gives permission to link the code of this program with
21 * non-LGPL Spelling Provider libraries (eg: a MSFT Office
22 * spell checker backend) and distribute linked combinations including
23 * the two. You must obey the GNU Lesser General Public License in all
24 * respects for all of the code used other than said providers. If you modify
25 * this file, you may extend this exception to your version of the
26 * file, but you are not obligated to do so. If you do not wish to
27 * do so, delete this exception statement from your version.
28 */
29
30/*
31 * $Id$
32 *
33 * Copyright 1992, 1993, Geoff Kuenning, Granada Hills, CA
34 * All rights reserved.
35 *
36 * Redistribution and use in source and binary forms, with or without
37 * modification, are permitted provided that the following conditions
38 * are met:
39 *
40 * 1. Redistributions of source code must retain the above copyright
41 * notice, this list of conditions and the following disclaimer.
42 * 2. Redistributions in binary form must reproduce the above copyright
43 * notice, this list of conditions and the following disclaimer in the
44 * documentation and/or other materials provided with the distribution.
45 * 3. All modifications to the source code must be clearly marked as
46 * such. Binary redistributions based on modified source code
47 * must be clearly marked as modified versions in the documentation
48 * and/or other materials provided with the distribution.
49 * 4. All advertising materials mentioning features or use of this software
50 * must display the following acknowledgment:
51 * This product includes software developed by Geoff Kuenning and
52 * other unpaid contributors.
53 * 5. The name of Geoff Kuenning may not be used to endorse or promote
54 * products derived from this software without specific prior
55 * written permission.
56 *
57 * THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING AND CONTRIBUTORS ``AS IS'' AND
58 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
59 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
60 * ARE DISCLAIMED. IN NO EVENT SHALL GEOFF KUENNING OR CONTRIBUTORS BE LIABLE
61 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
62 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
63 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
64 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
65 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
66 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
67 * SUCH DAMAGE.
68 *
69 */
70
71/*
72 * Messages header file.
73 *
74 * This file contains all text strings that are written by any of the
75 * C programs in the ispell package. The strings are collected here so that
76 * you can have the option of translating them into your local language for
77 * the benefit of your users.
78 *
79 * Anyone who goes to the effort of making a translation may wish to return
80 * the translated strings to me, geoff@ITcorp.com, so that I can include
81 * them in a later distribution under #ifdef control.
82 *
83 * Besides the strings in this header file, you may also want to translate
84 * the strings in version.h, which give the version and copyright information.
85 * However, any translation of these strings MUST accurately preserve the
86 * legal rights under international law; you may wish to consult a lawyer
87 * about this since you will be responsible for the results of any
88 * incorrect translation.
89 *
90 * Most of the strings below are simple printf format strings. If the printf
91 * takes more than one parameter, the string is given as a parameterized
92 * macro in case your local language needs a different word order.
93 */
94
95/*
96 * $Log$
97 * Revision 1.1 2004/01/31 16:44:12 zrusin
98 * ISpell plugin.
99 *
100 * Revision 1.4 2003/08/14 17:51:28 dom
101 * update license - exception clause should be Lesser GPL
102 *
103 * Revision 1.3 2003/07/28 20:40:27 dom
104 * fix up the license clause, further win32-registry proof some directory getting functions
105 *
106 * Revision 1.2 2003/07/16 22:52:52 dom
107 * LGPL + exception license
108 *
109 * Revision 1.1 2003/07/15 01:15:08 dom
110 * ispell enchant backend
111 *
112 * Revision 1.1 2001/04/15 16:01:24 tomas_f
113 * moving to spell/xp
114 *
115 * Revision 1.1 1998/12/28 18:04:43 davet
116 * Spell checker code stripped from ispell. At this point, there are
117 * two external routines... the Init routine, and a check-a-word routine
118 * which returns a boolean value, and takes a 16 bit char string.
119 * The code resembles the ispell code as much as possible still.
120 *
121 * Revision 1.31 1994/12/27 23:08:57 geoff
122 * Add a message to be issued if a word contains illegal characters.
123 *
124 * Revision 1.30 1994/10/25 05:46:40 geoff
125 * Improve a couple of error messages relating to affix flags.
126 *
127 * Revision 1.29 1994/10/04 03:46:23 geoff
128 * Add a missing carriage return in the help message
129 *
130 * Revision 1.28 1994/09/16 05:07:00 geoff
131 * Add the BAD_FLAG message, and start a sentence in another message with
132 * an uppercase letter.
133 *
134 * Revision 1.27 1994/07/28 05:11:38 geoff
135 * Log message for previous revision: add BHASH_C_ZERO_COUNT.
136 *
137 * Revision 1.26 1994/07/28 04:53:49 geoff
138 *
139 * Revision 1.25 1994/05/24 04:54:36 geoff
140 * Add error messages for affix-flag checking.
141 *
142 * Revision 1.24 1994/01/25 07:12:42 geoff
143 * Get rid of all old RCS log lines in preparation for the 3.1 release.
144 *
145 */
146
147/*
148 * The following strings are used in numerous places:
149 */
150#define BAD_FLAG "\r\nIllegal affix flag character '%c'\r\n"
151#define CANT_OPEN "Can't open %s\r\n"
152#define CANT_CREATE "Can't create %s\r\n"
153#define WORD_TOO_LONG(w) "\r\nWord '%s' too long at line %d of %s, truncated\r\n", \
154 w, __LINE__, __FILE__
155
156/*
157 * The following strings are used in buildhash.c:
158 */
159#define BHASH_C_NO_DICT "No dictionary (%s)\n"
160#define BHASH_C_NO_COUNT "No count file\n"
161#define BHASH_C_BAD_COUNT "Bad count file\n"
162#define BHASH_C_ZERO_COUNT "No words in dictionary\n"
163 /* I think this message looks better when it's nearly 80 characters wide,
164 * thus the ugly formatting in the next two defines. GK 9-87 */
165#define BHASH_C_BAFF_1(max, excess) \
166 " Warning: this language table may exceed the maximum total affix length\nof %d by up to %d bytes. You should either increase MAXAFFIXLEN in config.X\nor shorten your largest affix/strip string difference. (This is the\n", \
167 max, excess
168#define BHASH_C_BAFF_2 \
169 "difference between the affix length and the strip length in a given\nreplacement rule, or the affix length if there is no strip string\nin that rule.)\n"
170#define BHASH_C_OVERFLOW "Hash table overflowed by %d words\n"
171#define BHASH_C_CANT_OPEN_DICT "Can't open dictionary\n"
172#define BHASH_C_NO_SPACE "Couldn't allocate hash table\n"
173#define BHASH_C_COLLISION_SPACE "\ncouldn't allocate space for collision\n"
174#define BHASH_C_COUNTING "Counting words in dictionary ...\n"
175#define BHASH_C_WORD_COUNT "\n%d words\n"
176#define BHASH_C_USAGE "Usage: buildhash [-s] dict-file aff-file hash-file\n\tbuildhash -c count aff-file\n"
177
178/*
179 * The following strings are used in correct.c:
180 */
181#define CORR_C_HELP_1 "Whenever a word is found that is not in the dictionary,\r\n"
182#define CORR_C_HELP_2 "it is printed on the first line of the screen. If the dictionary\r\n"
183#define CORR_C_HELP_3 "contains any similar words, they are listed with a number\r\n"
184#define CORR_C_HELP_4 "next to each one. You have the option of replacing the word\r\n"
185#define CORR_C_HELP_5 "completely, or choosing one of the suggested words.\r\n"
186 /* You may add HELP_6 through HELP_9 if your language needs more lines */
187#define CORR_C_HELP_6 ""
188#define CORR_C_HELP_7 ""
189#define CORR_C_HELP_8 ""
190#define CORR_C_HELP_9 ""
191#define CORR_C_HELP_COMMANDS "\r\nCommands are:\r\n\r\n"
192#define CORR_C_HELP_R_CMD "R Replace the misspelled word completely.\r\n"
193#define CORR_C_HELP_BLANK "Space Accept the word this time only.\r\n"
194#define CORR_C_HELP_A_CMD "A Accept the word for the rest of this session.\r\n"
195#define CORR_C_HELP_I_CMD "I Accept the word, and put it in your private dictionary.\r\n"
196#define CORR_C_HELP_U_CMD "U Accept and add lowercase version to private dictionary.\r\n"
197#define CORR_C_HELP_0_CMD "0-n Replace with one of the suggested words.\r\n"
198#define CORR_C_HELP_L_CMD "L Look up words in system dictionary.\r\n"
199#define CORR_C_HELP_X_CMD "X Write the rest of this file, ignoring misspellings,\r\n and start next file.\r\n"
200#define CORR_C_HELP_Q_CMD "Q Quit immediately. Asks for confirmation.\r\n Leaves file unchanged.\r\n"
201#define CORR_C_HELP_BANG "! Shell escape.\r\n"
202#define CORR_C_HELP_REDRAW "^L Redraw screen.\r\n"
203#define CORR_C_HELP_SUSPEND "^Z Suspend program.\r\n"
204#define CORR_C_HELP_HELP "? Show this help screen.\r\n"
205#define CORR_C_HELP_TYPE_SPACE "-- Type space to continue --"
206
207#define CORR_C_FILE_LABEL " File: %s"
208#define CORR_C_READONLY "[READONLY]"
209#define CORR_C_MINI_MENU "[SP] <number> R)epl A)ccept I)nsert L)ookup U)ncap Q)uit e(X)it or ? for help\r\n"
210#define CORR_C_CONFIRM_QUIT "Are you sure you want to throw away your changes? "
211#define CORR_C_REPLACE_WITH "Replace with: "
212#define CORR_C_LOOKUP_PROMPT "Lookup string ('*' is wildcard): "
213#define CORR_C_MORE_PROMPT "-- more --"
214#define CORR_C_BLANK_MORE "\r \r"
215#define CORR_C_END_LOOK "--end--"
216
217/*
218 * The following strings are used in defmt.c:
219 */
220#define DEFMT_C_TEX_MATH_ERROR "****ERROR in parsing TeX math mode!\r\n"
221#define DEFMT_C_LR_MATH_ERROR "***ERROR in LR to math-mode switch.\n"
222
223/*
224 * The following strings are used in icombine.c:
225 */
226#define ICOMBINE_C_BAD_TYPE "icombine: unrecognized formatter type '%s'\n"
227#define ICOMBINE_C_USAGE "Usage: icombine [-T suffix] [aff-file] < wordlist\n"
228
229/*
230 * The following strings are used in ispell.c:
231 */
232#define ISPELL_C_USAGE1 "Usage: %s [-dfile | -pfile | -wchars | -Wn | -t | -n | -x | -b | -S | -B | -C | -P | -m | -Lcontext | -M | -N | -Ttype | -V] file .....\n"
233#define ISPELL_C_USAGE2 " %s [-dfile | -pfile | -wchars | -Wn | -t | -n | -Ttype] -l\n"
234#ifndef USG
235#define ISPELL_C_USAGE3 " %s [-dfile | -pfile | -ffile | -Wn | -t | -n | -s | -B | -C | -P | -m | -Ttype] {-a | -A}\n"
236#else
237#define ISPELL_C_USAGE3 " %s [-dfile | -pfile | -ffile | -Wn | -t | -n | -B | -C | -P | -m | -Ttype] {-a | -A}\n"
238#endif
239#define ISPELL_C_USAGE4 " %s [-dfile] [-wchars | -Wn] -c\n"
240#define ISPELL_C_USAGE5 " %s [-dfile] [-wchars] -e[1-4]\n"
241#define ISPELL_C_USAGE6 " %s [-dfile] [-wchars] -D\n"
242#define ISPELL_C_USAGE7 " %s -v\n"
243#define ISPELL_C_TEMP_DISAPPEARED "temporary file disappeared (%s)\r\n"
244#define ISPELL_C_BAD_TYPE "ispell: unrecognized formatter type '%s'\n"
245#define ISPELL_C_NO_FILE "ispell: specified file does not exist\n"
246#define ISPELL_C_NO_FILES "ispell: specified files do not exist\n"
247#define ISPELL_C_CANT_WRITE "Warning: Can't write to %s\r\n"
248#define ISPELL_C_OPTIONS_ARE "Compiled-in options:\n"
249
250/*
251 * The following strings are used in lookup.c:
252 */
253#define LOOKUP_C_CANT_READ "Trouble reading hash table %s\r\n"
254#define LOOKUP_C_NULL_HASH "Null hash table %s\r\n"
255#define LOOKUP_C_SHORT_HASH(name, gotten, wanted) \
256 "Truncated hash table %s: got %d bytes, expected %d\r\n", \
257 name, gotten, wanted
258#define LOOKUP_C_BAD_MAGIC(name, wanted, gotten) \
259 "Illegal format hash table %s - expected magic 0x%x, got 0x%x\r\n", \
260 name, wanted, gotten
261#define LOOKUP_C_BAD_MAGIC2(name, wanted, gotten) \
262 "Illegal format hash table %s - expected magic2 0x%x, got 0x%x\r\n", \
263 name, wanted, gotten
264#define LOOKUP_C_BAD_OPTIONS(gotopts, gotchars, gotlen, wantedopts, wantedchars, wantedlen) \
265 "Hash table options don't agree with buildhash - 0x%x/%d/%d vs. 0x%x/%d/%d\r\n", \
266 gotopts, gotchars, gotlen, \
267 wantedopts, wantedchars, wantedlen
268#define LOOKUP_C_NO_HASH_SPACE "Couldn't allocate space for hash table\r\n"
269#define LOOKUP_C_BAD_FORMAT "Illegal format hash table\r\n"
270#define LOOKUP_C_NO_LANG_SPACE "Couldn't allocate space for language tables\r\n"
271
272/*
273 * The following strings are used in makedent.c:
274 */
275#define MAKEDENT_C_NO_WORD_SPACE "\r\nCouldn't allocate space for word '%s'\r\n"
276#define MAKEDENT_C_BAD_WORD_CHAR "\r\nWord '%s' contains illegal characters\r\n"
277
278/*
279 * The following strings are used in parse.y:
280 */
281#define PARSE_Y_8_BIT "Eighth bit ignored (recompile ispell without NO8BIT)"
282#define PARSE_Y_NO_WORD_STRINGS "wordchars statement may not specify string characters"
283#define PARSE_Y_UNMATCHED "Unmatched charset lengths"
284#define PARSE_Y_NO_BOUNDARY_STRINGS "boundarychars statement may not specify string characters"
285#define PARSE_Y_LONG_STRING "String character is too long"
286#define PARSE_Y_NULL_STRING "String character must have nonzero length"
287#define PARSE_Y_MANY_STRINGS "Too many string characters"
288#define PARSE_Y_NO_SUCH_STRING "No such string character"
289#define PARSE_Y_MULTIPLE_STRINGS "Alternate string character was already defined"
290#define PARSE_Y_LENGTH_MISMATCH "Upper and lower versions of string character must be same length"
291#define PARSE_Y_WRONG_NROFF "Incorrect character count in nroffchars statement"
292#define PARSE_Y_WRONG_TEX "Incorrect character count in TeXchars statement"
293#define PARSE_Y_DOUBLE_COMPOUND "Compoundwords option may only appear once"
294#define PARSE_Y_LONG_FLAG "Flag must be single character"
295#define PARSE_Y_BAD_FLAG "Flag must be alphabetic"
296#define PARSE_Y_DUP_FLAG "Duplicate flag"
297#define PARSE_Y_NO_SPACE "Out of memory"
298#define PARSE_Y_NEED_BLANK "Single characters must be separated by a blank"
299#define PARSE_Y_MANY_CONDS "Too many conditions; 8 maximum"
300#define PARSE_Y_EOF "Unexpected EOF in quoted string"
301#define PARSE_Y_LONG_QUOTE "Quoted string too long, max 256 characters"
302#define PARSE_Y_ERROR_FORMAT(file, lineno, error) \
303 "%s line %d: %s\n", file, lineno, error
304#define PARSE_Y_MALLOC_TROUBLE "yyopen: trouble allocating memory\n"
305#define PARSE_Y_UNGRAB_PROBLEM "Internal error: ungrab buffer overflow"
306#define PARSE_Y_BAD_DEFORMATTER "Deformatter must be either 'nroff' or 'tex'"
307#define PARSE_Y_BAD_NUMBER "Illegal digit in number"
308
309/*
310 * The following strings are used in term.c:
311 */
312#define TERM_C_SMALL_SCREEN "Screen too small: need at least %d lines\n"
313#define TERM_C_NO_BATCH "Can't deal with non-interactive use yet.\n"
314#define TERM_C_CANT_FORK "Couldn't fork, try later.\r\n"
315#define TERM_C_TYPE_SPACE "\n-- Type space to continue --"
316
317/*
318 * The following strings are used in tree.c:
319 */
320#define TREE_C_CANT_UPDATE "Warning: Cannot update personal dictionary (%s)\r\n"
321#define TREE_C_NO_SPACE "Ran out of space for personal dictionary\r\n"
322#define TREE_C_TRY_ANYWAY "Continuing anyway (with reduced performance).\r\n"
323
324/*
325 * The following strings are used in unsq.c:
326 */
327#define UNSQ_C_BAD_COUNT "Illegal count character 0x%x\n"
328#define UNSQ_C_SURPRISE_EOF "Unexpected EOF\n"

tdespell2

Skip menu "tdespell2"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

tdespell2

Skip menu "tdespell2"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdespell2 by doxygen 1.9.4
This website is maintained by Timothy Pearson.