msgs.h
00001 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 00002 /* enchant 00003 * Copyright (C) 2003 Dom Lachowicz 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this library; if not, write to the 00017 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 * Boston, MA 02110-1301, USA. 00019 * 00020 * In addition, as a special exception, Dom Lachowicz 00021 * gives permission to link the code of this program with 00022 * non-LGPL Spelling Provider libraries (eg: a MSFT Office 00023 * spell checker backend) and distribute linked combinations including 00024 * the two. You must obey the GNU Lesser General Public License in all 00025 * respects for all of the code used other than said providers. If you modify 00026 * this file, you may extend this exception to your version of the 00027 * file, but you are not obligated to do so. If you do not wish to 00028 * do so, delete this exception statement from your version. 00029 */ 00030 00031 /* 00032 * $Id$ 00033 * 00034 * Copyright 1992, 1993, Geoff Kuenning, Granada Hills, CA 00035 * All rights reserved. 00036 * 00037 * Redistribution and use in source and binary forms, with or without 00038 * modification, are permitted provided that the following conditions 00039 * are met: 00040 * 00041 * 1. Redistributions of source code must retain the above copyright 00042 * notice, this list of conditions and the following disclaimer. 00043 * 2. Redistributions in binary form must reproduce the above copyright 00044 * notice, this list of conditions and the following disclaimer in the 00045 * documentation and/or other materials provided with the distribution. 00046 * 3. All modifications to the source code must be clearly marked as 00047 * such. Binary redistributions based on modified source code 00048 * must be clearly marked as modified versions in the documentation 00049 * and/or other materials provided with the distribution. 00050 * 4. All advertising materials mentioning features or use of this software 00051 * must display the following acknowledgment: 00052 * This product includes software developed by Geoff Kuenning and 00053 * other unpaid contributors. 00054 * 5. The name of Geoff Kuenning may not be used to endorse or promote 00055 * products derived from this software without specific prior 00056 * written permission. 00057 * 00058 * THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING AND CONTRIBUTORS ``AS IS'' AND 00059 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00060 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00061 * ARE DISCLAIMED. IN NO EVENT SHALL GEOFF KUENNING OR CONTRIBUTORS BE LIABLE 00062 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00063 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00064 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00065 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00066 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00067 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00068 * SUCH DAMAGE. 00069 * 00070 */ 00071 00072 /* 00073 * Messages header file. 00074 * 00075 * This file contains all text strings that are written by any of the 00076 * C programs in the ispell package. The strings are collected here so that 00077 * you can have the option of translating them into your local language for 00078 * the benefit of your users. 00079 * 00080 * Anyone who goes to the effort of making a translation may wish to return 00081 * the translated strings to me, geoff@ITcorp.com, so that I can include 00082 * them in a later distribution under #ifdef control. 00083 * 00084 * Besides the strings in this header file, you may also want to translate 00085 * the strings in version.h, which give the version and copyright information. 00086 * However, any translation of these strings MUST accurately preserve the 00087 * legal rights under international law; you may wish to consult a lawyer 00088 * about this since you will be responsible for the results of any 00089 * incorrect translation. 00090 * 00091 * Most of the strings below are simple printf format strings. If the printf 00092 * takes more than one parameter, the string is given as a parameterized 00093 * macro in case your local language needs a different word order. 00094 */ 00095 00096 /* 00097 * $Log$ 00098 * Revision 1.1 2004/01/31 16:44:12 zrusin 00099 * ISpell plugin. 00100 * 00101 * Revision 1.4 2003/08/14 17:51:28 dom 00102 * update license - exception clause should be Lesser GPL 00103 * 00104 * Revision 1.3 2003/07/28 20:40:27 dom 00105 * fix up the license clause, further win32-registry proof some directory getting functions 00106 * 00107 * Revision 1.2 2003/07/16 22:52:52 dom 00108 * LGPL + exception license 00109 * 00110 * Revision 1.1 2003/07/15 01:15:08 dom 00111 * ispell enchant backend 00112 * 00113 * Revision 1.1 2001/04/15 16:01:24 tomas_f 00114 * moving to spell/xp 00115 * 00116 * Revision 1.1 1998/12/28 18:04:43 davet 00117 * Spell checker code stripped from ispell. At this point, there are 00118 * two external routines... the Init routine, and a check-a-word routine 00119 * which returns a boolean value, and takes a 16 bit char string. 00120 * The code resembles the ispell code as much as possible still. 00121 * 00122 * Revision 1.31 1994/12/27 23:08:57 geoff 00123 * Add a message to be issued if a word contains illegal characters. 00124 * 00125 * Revision 1.30 1994/10/25 05:46:40 geoff 00126 * Improve a couple of error messages relating to affix flags. 00127 * 00128 * Revision 1.29 1994/10/04 03:46:23 geoff 00129 * Add a missing carriage return in the help message 00130 * 00131 * Revision 1.28 1994/09/16 05:07:00 geoff 00132 * Add the BAD_FLAG message, and start a sentence in another message with 00133 * an uppercase letter. 00134 * 00135 * Revision 1.27 1994/07/28 05:11:38 geoff 00136 * Log message for previous revision: add BHASH_C_ZERO_COUNT. 00137 * 00138 * Revision 1.26 1994/07/28 04:53:49 geoff 00139 * 00140 * Revision 1.25 1994/05/24 04:54:36 geoff 00141 * Add error messages for affix-flag checking. 00142 * 00143 * Revision 1.24 1994/01/25 07:12:42 geoff 00144 * Get rid of all old RCS log lines in preparation for the 3.1 release. 00145 * 00146 */ 00147 00148 /* 00149 * The following strings are used in numerous places: 00150 */ 00151 #define BAD_FLAG "\r\nIllegal affix flag character '%c'\r\n" 00152 #define CANT_OPEN "Can't open %s\r\n" 00153 #define CANT_CREATE "Can't create %s\r\n" 00154 #define WORD_TOO_LONG(w) "\r\nWord '%s' too long at line %d of %s, truncated\r\n", \ 00155 w, __LINE__, __FILE__ 00156 00157 /* 00158 * The following strings are used in buildhash.c: 00159 */ 00160 #define BHASH_C_NO_DICT "No dictionary (%s)\n" 00161 #define BHASH_C_NO_COUNT "No count file\n" 00162 #define BHASH_C_BAD_COUNT "Bad count file\n" 00163 #define BHASH_C_ZERO_COUNT "No words in dictionary\n" 00164 /* I think this message looks better when it's nearly 80 characters wide, 00165 * thus the ugly formatting in the next two defines. GK 9-87 */ 00166 #define BHASH_C_BAFF_1(max, excess) \ 00167 " 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", \ 00168 max, excess 00169 #define BHASH_C_BAFF_2 \ 00170 "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" 00171 #define BHASH_C_OVERFLOW "Hash table overflowed by %d words\n" 00172 #define BHASH_C_CANT_OPEN_DICT "Can't open dictionary\n" 00173 #define BHASH_C_NO_SPACE "Couldn't allocate hash table\n" 00174 #define BHASH_C_COLLISION_SPACE "\ncouldn't allocate space for collision\n" 00175 #define BHASH_C_COUNTING "Counting words in dictionary ...\n" 00176 #define BHASH_C_WORD_COUNT "\n%d words\n" 00177 #define BHASH_C_USAGE "Usage: buildhash [-s] dict-file aff-file hash-file\n\tbuildhash -c count aff-file\n" 00178 00179 /* 00180 * The following strings are used in correct.c: 00181 */ 00182 #define CORR_C_HELP_1 "Whenever a word is found that is not in the dictionary,\r\n" 00183 #define CORR_C_HELP_2 "it is printed on the first line of the screen. If the dictionary\r\n" 00184 #define CORR_C_HELP_3 "contains any similar words, they are listed with a number\r\n" 00185 #define CORR_C_HELP_4 "next to each one. You have the option of replacing the word\r\n" 00186 #define CORR_C_HELP_5 "completely, or choosing one of the suggested words.\r\n" 00187 /* You may add HELP_6 through HELP_9 if your language needs more lines */ 00188 #define CORR_C_HELP_6 "" 00189 #define CORR_C_HELP_7 "" 00190 #define CORR_C_HELP_8 "" 00191 #define CORR_C_HELP_9 "" 00192 #define CORR_C_HELP_COMMANDS "\r\nCommands are:\r\n\r\n" 00193 #define CORR_C_HELP_R_CMD "R Replace the misspelled word completely.\r\n" 00194 #define CORR_C_HELP_BLANK "Space Accept the word this time only.\r\n" 00195 #define CORR_C_HELP_A_CMD "A Accept the word for the rest of this session.\r\n" 00196 #define CORR_C_HELP_I_CMD "I Accept the word, and put it in your private dictionary.\r\n" 00197 #define CORR_C_HELP_U_CMD "U Accept and add lowercase version to private dictionary.\r\n" 00198 #define CORR_C_HELP_0_CMD "0-n Replace with one of the suggested words.\r\n" 00199 #define CORR_C_HELP_L_CMD "L Look up words in system dictionary.\r\n" 00200 #define CORR_C_HELP_X_CMD "X Write the rest of this file, ignoring misspellings,\r\n and start next file.\r\n" 00201 #define CORR_C_HELP_Q_CMD "Q Quit immediately. Asks for confirmation.\r\n Leaves file unchanged.\r\n" 00202 #define CORR_C_HELP_BANG "! Shell escape.\r\n" 00203 #define CORR_C_HELP_REDRAW "^L Redraw screen.\r\n" 00204 #define CORR_C_HELP_SUSPEND "^Z Suspend program.\r\n" 00205 #define CORR_C_HELP_HELP "? Show this help screen.\r\n" 00206 #define CORR_C_HELP_TYPE_SPACE "-- Type space to continue --" 00207 00208 #define CORR_C_FILE_LABEL " File: %s" 00209 #define CORR_C_READONLY "[READONLY]" 00210 #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" 00211 #define CORR_C_CONFIRM_QUIT "Are you sure you want to throw away your changes? " 00212 #define CORR_C_REPLACE_WITH "Replace with: " 00213 #define CORR_C_LOOKUP_PROMPT "Lookup string ('*' is wildcard): " 00214 #define CORR_C_MORE_PROMPT "-- more --" 00215 #define CORR_C_BLANK_MORE "\r \r" 00216 #define CORR_C_END_LOOK "--end--" 00217 00218 /* 00219 * The following strings are used in defmt.c: 00220 */ 00221 #define DEFMT_C_TEX_MATH_ERROR "****ERROR in parsing TeX math mode!\r\n" 00222 #define DEFMT_C_LR_MATH_ERROR "***ERROR in LR to math-mode switch.\n" 00223 00224 /* 00225 * The following strings are used in icombine.c: 00226 */ 00227 #define ICOMBINE_C_BAD_TYPE "icombine: unrecognized formatter type '%s'\n" 00228 #define ICOMBINE_C_USAGE "Usage: icombine [-T suffix] [aff-file] < wordlist\n" 00229 00230 /* 00231 * The following strings are used in ispell.c: 00232 */ 00233 #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" 00234 #define ISPELL_C_USAGE2 " %s [-dfile | -pfile | -wchars | -Wn | -t | -n | -Ttype] -l\n" 00235 #ifndef USG 00236 #define ISPELL_C_USAGE3 " %s [-dfile | -pfile | -ffile | -Wn | -t | -n | -s | -B | -C | -P | -m | -Ttype] {-a | -A}\n" 00237 #else 00238 #define ISPELL_C_USAGE3 " %s [-dfile | -pfile | -ffile | -Wn | -t | -n | -B | -C | -P | -m | -Ttype] {-a | -A}\n" 00239 #endif 00240 #define ISPELL_C_USAGE4 " %s [-dfile] [-wchars | -Wn] -c\n" 00241 #define ISPELL_C_USAGE5 " %s [-dfile] [-wchars] -e[1-4]\n" 00242 #define ISPELL_C_USAGE6 " %s [-dfile] [-wchars] -D\n" 00243 #define ISPELL_C_USAGE7 " %s -v\n" 00244 #define ISPELL_C_TEMP_DISAPPEARED "temporary file disappeared (%s)\r\n" 00245 #define ISPELL_C_BAD_TYPE "ispell: unrecognized formatter type '%s'\n" 00246 #define ISPELL_C_NO_FILE "ispell: specified file does not exist\n" 00247 #define ISPELL_C_NO_FILES "ispell: specified files do not exist\n" 00248 #define ISPELL_C_CANT_WRITE "Warning: Can't write to %s\r\n" 00249 #define ISPELL_C_OPTIONS_ARE "Compiled-in options:\n" 00250 00251 /* 00252 * The following strings are used in lookup.c: 00253 */ 00254 #define LOOKUP_C_CANT_READ "Trouble reading hash table %s\r\n" 00255 #define LOOKUP_C_NULL_HASH "Null hash table %s\r\n" 00256 #define LOOKUP_C_SHORT_HASH(name, gotten, wanted) \ 00257 "Truncated hash table %s: got %d bytes, expected %d\r\n", \ 00258 name, gotten, wanted 00259 #define LOOKUP_C_BAD_MAGIC(name, wanted, gotten) \ 00260 "Illegal format hash table %s - expected magic 0x%x, got 0x%x\r\n", \ 00261 name, wanted, gotten 00262 #define LOOKUP_C_BAD_MAGIC2(name, wanted, gotten) \ 00263 "Illegal format hash table %s - expected magic2 0x%x, got 0x%x\r\n", \ 00264 name, wanted, gotten 00265 #define LOOKUP_C_BAD_OPTIONS(gotopts, gotchars, gotlen, wantedopts, wantedchars, wantedlen) \ 00266 "Hash table options don't agree with buildhash - 0x%x/%d/%d vs. 0x%x/%d/%d\r\n", \ 00267 gotopts, gotchars, gotlen, \ 00268 wantedopts, wantedchars, wantedlen 00269 #define LOOKUP_C_NO_HASH_SPACE "Couldn't allocate space for hash table\r\n" 00270 #define LOOKUP_C_BAD_FORMAT "Illegal format hash table\r\n" 00271 #define LOOKUP_C_NO_LANG_SPACE "Couldn't allocate space for language tables\r\n" 00272 00273 /* 00274 * The following strings are used in makedent.c: 00275 */ 00276 #define MAKEDENT_C_NO_WORD_SPACE "\r\nCouldn't allocate space for word '%s'\r\n" 00277 #define MAKEDENT_C_BAD_WORD_CHAR "\r\nWord '%s' contains illegal characters\r\n" 00278 00279 /* 00280 * The following strings are used in parse.y: 00281 */ 00282 #define PARSE_Y_8_BIT "Eighth bit ignored (recompile ispell without NO8BIT)" 00283 #define PARSE_Y_NO_WORD_STRINGS "wordchars statement may not specify string characters" 00284 #define PARSE_Y_UNMATCHED "Unmatched charset lengths" 00285 #define PARSE_Y_NO_BOUNDARY_STRINGS "boundarychars statement may not specify string characters" 00286 #define PARSE_Y_LONG_STRING "String character is too long" 00287 #define PARSE_Y_NULL_STRING "String character must have nonzero length" 00288 #define PARSE_Y_MANY_STRINGS "Too many string characters" 00289 #define PARSE_Y_NO_SUCH_STRING "No such string character" 00290 #define PARSE_Y_MULTIPLE_STRINGS "Alternate string character was already defined" 00291 #define PARSE_Y_LENGTH_MISMATCH "Upper and lower versions of string character must be same length" 00292 #define PARSE_Y_WRONG_NROFF "Incorrect character count in nroffchars statement" 00293 #define PARSE_Y_WRONG_TEX "Incorrect character count in TeXchars statement" 00294 #define PARSE_Y_DOUBLE_COMPOUND "Compoundwords option may only appear once" 00295 #define PARSE_Y_LONG_FLAG "Flag must be single character" 00296 #define PARSE_Y_BAD_FLAG "Flag must be alphabetic" 00297 #define PARSE_Y_DUP_FLAG "Duplicate flag" 00298 #define PARSE_Y_NO_SPACE "Out of memory" 00299 #define PARSE_Y_NEED_BLANK "Single characters must be separated by a blank" 00300 #define PARSE_Y_MANY_CONDS "Too many conditions; 8 maximum" 00301 #define PARSE_Y_EOF "Unexpected EOF in quoted string" 00302 #define PARSE_Y_LONG_QUOTE "Quoted string too long, max 256 characters" 00303 #define PARSE_Y_ERROR_FORMAT(file, lineno, error) \ 00304 "%s line %d: %s\n", file, lineno, error 00305 #define PARSE_Y_MALLOC_TROUBLE "yyopen: trouble allocating memory\n" 00306 #define PARSE_Y_UNGRAB_PROBLEM "Internal error: ungrab buffer overflow" 00307 #define PARSE_Y_BAD_DEFORMATTER "Deformatter must be either 'nroff' or 'tex'" 00308 #define PARSE_Y_BAD_NUMBER "Illegal digit in number" 00309 00310 /* 00311 * The following strings are used in term.c: 00312 */ 00313 #define TERM_C_SMALL_SCREEN "Screen too small: need at least %d lines\n" 00314 #define TERM_C_NO_BATCH "Can't deal with non-interactive use yet.\n" 00315 #define TERM_C_CANT_FORK "Couldn't fork, try later.\r\n" 00316 #define TERM_C_TYPE_SPACE "\n-- Type space to continue --" 00317 00318 /* 00319 * The following strings are used in tree.c: 00320 */ 00321 #define TREE_C_CANT_UPDATE "Warning: Cannot update personal dictionary (%s)\r\n" 00322 #define TREE_C_NO_SPACE "Ran out of space for personal dictionary\r\n" 00323 #define TREE_C_TRY_ANYWAY "Continuing anyway (with reduced performance).\r\n" 00324 00325 /* 00326 * The following strings are used in unsq.c: 00327 */ 00328 #define UNSQ_C_BAD_COUNT "Illegal count character 0x%x\n" 00329 #define UNSQ_C_SURPRISE_EOF "Unexpected EOF\n"