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