Fixed showing the loading progress when in-game.
[cboard.git] / src / strings.h
blob546feb30a4809b12eb30fa96c5120a84cf107e81
1 /* vim:tw=78:ts=8:sw=4:set ft=c: */
2 /*
3 Copyright (C) 2002-2011 Ben Kibbey <bjk@luxsci.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 * The help dialog box strings are found in the other header files.
22 #ifndef STRINGS_H
23 #define STRINGS_H
25 #define GAME_FIND_EXPRESSION_TITLE "Find Game by Tag Expression"
26 #define GAME_FIND_EXPRESSION_PROMPT "[name expression:]value expression"
27 #define GAME_JUMP_TITLE "Jump to Game Number"
28 #define GAME_HISTORY_JUMP_TITLE "Jump to Move Number"
29 #define GAME_NOTSAVED "*delete*"
30 #define GAME_SAVE_OVERWRITE_PROMPT "'a' to append, 'o' to overwrite"
31 #define GAME_SAVE_MULTI_PROMPT "Type 'c' or 'a' or any other key " \
32 "to abort"
33 #define GAME_SAVE_MULTI_TEXT "There is more than one game " \
34 "loaded. You can save only the current game by pressing 'c', or all " \
35 "games by pressing 'a'."
36 #define GAME_SAVE_FROM_HISTORY_TITLE "Save From History"
37 #define GAME_SAVE_FROM_HISTORY_PROMPT "Type 'c' or any other key"
38 #define GAME_SAVE_FROM_HISTORY_TEXT "This game number is in history mode. You can " \
39 "save all moves up to and including the current move by pressing 'c'. " \
40 "Any other key will save the entire move history."
41 #define GAME_RESUME_HISTORY_TEXT "Resuming a game from previous " \
42 "history will remove all future moves. Do you really want to resume " \
43 "from history?"
44 #define GAME_DELETE_ALL_TEXT "Delete all games marked for deletion?"
45 #define GAME_DELETE_GAME_TEXT "Delete the current game?"
46 #define GAME_NEW_PROMPT "Really start a new game from scratch?"
47 #define GAME_NEW_TEXT "Use the 'N' command to start a new game or the 'r' " \
48 "command to load a previous game"
49 #define GAME_HELP_INDEX_TITLE "Command Key Index"
50 #define GAME_HELP_REPEAT " (* = can take a repeat count)"
51 #define GAME_HELP_INDEX_PROMPT "p/h/e/g or any other key to quit"
52 #define GAME_HELP_HISTORY_TITLE "History Mode Keys" GAME_HELP_REPEAT
53 #define GAME_HELP_PLAY_TITLE "Play Mode Keys" GAME_HELP_REPEAT
54 #define GAME_HELP_EDIT_TITLE "Edit Mode Keys" GAME_HELP_REPEAT
55 #define GAME_HELP_GAME_TITLE "Global Game Keys" GAME_HELP_REPEAT
56 #define GAME_LOAD_TITLE "Load Filename"
57 #define GAME_SAVE_TITLE "Save Game Filename"
58 #define GAME_HELP_PROMPT "Type F1 for help"
59 #define GAME_EDIT_TITLE "Insert Piece"
60 #define GAME_EDIT_PROMPT "P=pawn, R=rook, N=knight, B=bishop, "\
61 "Q=queen, K=king"
62 #define GAME_EDIT_TEXT "Type the piece letter to insert. Lowercase " \
63 "for a black piece, uppercase for a white piece."
65 #ifdef WITH_LIBPERL
66 #define GAME_PERL_TITLE "PERL Subroutine Filter"
67 #endif
69 /* Error strings. */
70 #define E_TAG_NAMETOOLONG "Cannot add tag. Name too long."
71 #define E_REGCOMP_TITLE "Error Compiling Regular Expression"
72 #define E_REGEXEC_TITLE "Error Matching Regular Expression"
73 #define E_RESUME_BLACK "Cannot resume a game with black starting position " \
74 "(yet)."
75 #define E_HOME_ENV "The HOME environment variable is unset."
76 #define E_TAG_DATE_FMT "The \"Date\" tag must be in YYYY.MM.DD format."
77 #define E_FILEEXISTS "File exists:"
78 #define E_REMOVE_STR "Cannot remove the Seven Tag Roster"
79 #define E_DUPLICATE_TAG "Could not add duplicate tag"
80 #define E_DELETE_GAME "Cannot delete last game."
81 #define E_A2A4_PARSE "Parse error. Probably a bug."
82 #define E_FEN_PARSE "FEN parse error."
83 #define E_BROKEN_PIPE "Broken pipe. Quitting."
84 #define E_NOTADIR "Not a directory."
85 #define E_NOTAREGFILE "Not a regular file."
86 #define E_INITCURSES "Could not initialize curses."
87 #define E_SAVE_COMPRESS "Cannot append to compressed file."
88 #define E_INVALID_MOVE "Invalid move"
89 #define E_AMBIGUOUS "Ambiguous move"
90 #define E_INVALID_COMMAND "Invalid engine command or move"
91 #define E_SELECT_TURN "It is not your turn to move. You can switch sides " \
92 "by pressing 'w' or force the engine to make the next move by " \
93 "pressing 'g'."
94 #define E_REGFILE_STR "Not a regular file"
96 /* The notification line in the status window. */
97 #define NOTIFY_SAVED "Game saved."
98 #define NOTIFY_SAVE_ABORTED "Save game aborted."
99 #define NOTIFY_SAVE_FAILED "Save game failed."
100 #define NOTIFY_CHECK "Check!"
101 #define NOTIFY_GAMEOVER_WWINS "Game over! White wins."
102 #define NOTIFY_GAMEOVER_BWINS "Game over! Black wins."
103 #define NOTIFY_GAMEOVER_DRAW "Game over! Draw."
104 #define NOTIFY_ENPASSANT "En Passant"
105 #define NOTIFY_PROMOTION "Promotion!"
106 #define NOTIFY_BCASTLEQ "Black castles queen side"
107 #define NOTIFY_BCASTLEK "Black castles king side"
108 #define NOTIFY_WCASTLEQ "White castles queen side"
109 #define NOTIFY_WCASTLEK "White castles king side"
110 #define NOTIFY_NO_MATCH "No matches found"
112 /* Pawn promotion window. */
113 #define PROMOTION_TITLE "Select Pawn Promotion Piece"
114 #define PROMOTION_PROMPT "R/N/B/Q"
115 #define PROMOTION_TEXT "R = Rook, N = Knight, B = Bishop, Q = Queen"
117 /* Book methods ('b' command). These are sent to the engine (GNU Chess). */
118 #define BOOK_OFF_STR "off"
119 #define BOOK_PREFER_STR "prefer"
120 #define BOOK_BEST_STR "best"
121 #define BOOK_WORST_STR "worst"
122 #define BOOK_RANDOM_STR "random"
124 /* Window titles. */
125 #define HISTORY_WINDOW_TITLE "Move History"
126 #define TAG_WINDOW_TITLE "Roster Tags"
127 #define STATUS_WINDOW_TITLE "Game Status"
129 /* Annotation viewing and editing windows. */
130 #define ANNOTATION_VIEW_TITLE "Viewing Annotation for"
131 #define ANNOTATION_EDIT_TITLE "Editing Annotation for"
132 #define NO_ANNOTATIONS "No comment text for this move"
134 /* NAG editing window. */
135 #define NAG_PROMPT "Type CTRL-t to edit NAG"
136 #define NAG_EDIT_TITLE "Numeric Annotation Glyphs"
137 #define NAG_EDIT_PROMPT "Type F1 for help"
138 #define NAG_EDIT_HELP "NAG Menu Keys"
139 #define VIEW_NAG "Press 'n' to view NAG"
140 #define VIEW_MOVE_NAG "Viewing NAG for"
142 /* The input window. */
143 #define INPUT_HELP_PROMPT GAME_HELP_PROMPT
144 #define INPUT_HELP_TITLE "Line Editing Keys"
146 /* Clock setting input window. */
147 #define CLOCK_TITLE "Set Clock"
148 #define CLOCK_HELP "Format: [W | B] [+]T[+I] | ++I | M/T [M/T [...] [SD/T]] [+I]\n" \
149 "T = time (hms), I = increment, M = moves per, SD = sudden death\ne.g., 30m or 4m+12s or 35/90m SD/30m"
150 #define CLOCK_PARSE_ERROR "Invalid clock specification"
151 #define CLOCK_MAX_ERROR "Maximum number of time controls reached"
153 /* Country code menu window when editing the "Site" tag. */
154 #define CC_PROMPT "Type CTRL-t for country codes"
155 #define CC_TITLE "Country Codes"
156 #define CC_KEY_HELP "Country Code Keys"
158 /* Tag editing and viewing windows. */
159 #define TAG_VIEW_TITLE "Viewing Roster Tags"
160 #define TAG_VIEW_HELP "Tag Viewing Keys"
161 #define TAG_EDIT_TITLE "Editing Roster Tags"
162 #define TAG_EDIT_HELP "Tag Editing Keys"
163 #define TAG_EDIT_TAG_TITLE "Editing Tag"
164 #define TAG_VIEW_TAG_TITLE "Viewing Tag"
165 #define TAG_NEW_TITLE "New Tag Name"
166 #define TAG_RESULT_FANCY_WHITE "white wins"
167 #define TAG_RESULT_FANCY_BLACK "black wins"
168 #define TAG_RESULT_FANCY_DRAW "draw"
169 #define TAG_RESULT_FANCY_NA "undetermined"
171 /* The file browser. */
172 #define BROWSER_HELP "File Browser Keys"
173 #define BROWSER_CHDIR_TITLE "Change Directory"
174 #define BROWSER_PROMPT "Type TAB for file browser"
175 #define BROWSER_EXPR "Filename Expression"
177 /* Miscellaneous strings. */
178 #define PRESS_ENTER "Press ENTER"
179 #define FIND_REGEXP "Find Move Text Expression"
180 #define COPY_DATAFILE "Copying"
181 #define NONE "none"
182 #define x_grid_chars "abcdefgh"
183 #define ANY_OTHER_KEY "Any other key to continue"
184 #define ANYKEY "[ press any key to continue ]"
185 #define YESNO "[ Yes or No ]"
186 #define ERROR "[ ERROR ]"
187 #define CONFIRM "[ CONFIRM ]"
188 #define UNKNOWN "(empty value)"
189 #define UNAVAILABLE "not available"
190 #define HELP_PROMPT "Type F1 for help"
191 #define ENGINE_CMD_TITLE "Engine Command"
192 #define ENGINE_IO_TITLE "Engine IO Window"
193 #define N_OF_N_STR "of"
194 #define WHITE_STR "white"
195 #define BLACK_STR "black"
197 /* Status window strings. */
198 #define STATUS_FILE_STR "File:"
199 #define STATUS_MODE_STR "Mode:"
200 #define STATUS_GAME_STR "Game:"
201 #define STATUS_FLAGS_STR "Flags:"
202 #define STATUS_ENGINE_STR "Engine:"
203 #define STATUS_TURN_STR "Turn:"
204 #define STATUS_CLOCK_STR "Total:"
206 /* Engine status strings. */
207 #define ENGINE_READY_STR "ready"
208 #define ENGINE_PONDER_STR "pondering..."
209 #define ENGINE_OFFLINE_STR "offline"
210 #define ENGINE_INITIALIZING_STR "initializing..."
212 /* Mode status strings. */
213 #define MODE_HISTORY_STR "move history"
214 #define MODE_EDIT_STR "edit"
215 #define MODE_PLAY_STR "play"
217 /* History window strings. */
218 #define HISTORY_PLY_STEP " (ply)"
219 #define HISTORY_MOVE_STR "Move:"
220 #define HISTORY_MOVE_NEXT_STR "Next move:"
221 #define HISTORY_MOVE_PREV_STR "Prev move:"
222 #define HISTORY_MENU_TITLE "Move History Tree"
224 /* White and black window strings. */
225 #define BW_NAME_STR "Name:"
226 #define BW_CAPTURE_STR "Captures:"
228 /* These are displayed in menu status/prompt bars. */
229 #define MENU_ITEM_STR "Item"
230 #define MENU_TAG_STR "Tag"
232 #endif