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 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684
|
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program 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 2
* of the License, or (at your option) any later version.
*
* This program 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, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#include "sherlock/scalpel/scalpel_fixed_text.h"
#include "sherlock/sherlock.h"
namespace Sherlock {
namespace Scalpel {
static const char *const fixedTextEN[] = {
// Game hotkeys
"LMTPOCIUGJFS",
// SH1: Window buttons
"EExit",
"UUp",
"DDown",
// SH1: Inventory buttons
"EExit",
"LLook",
"UUse",
"GGive",
// SH1: Journal text
"Watson's Journal",
"Page %d",
// SH1: Journal buttons
"EExit",
"BBack 10",
"UUp",
"DDown",
"AAhead 10",
"SSearch",
"FFirst Page",
"LLast Page",
"PPrint Text",
// SH1: Journal search
"EExit",
"BBackward",
"FForward",
"Text Not Found !",
// SH1: Settings
"EExit",
"MMusic on",
"MMusic off",
"PPortraits on",
"PPortraits off",
"JJoystick off",
"NNew Font Style",
"SSound Effects on",
"SSound Effects off",
"WWindows Slide",
"WWindows Appear",
"CCalibrate Joystick",
"AAuto Help left",
"AAuto Help right",
"VVoices on",
"VVoices off",
"FFade by Pixel",
"FFade Directly",
"KKey Pad Slow",
"KKey Pad Fast",
// Load/Save
"EExit",
"LLoad",
"SSave",
"UUp",
"DDown",
"QQuit",
// Quit Game
"Are you sure you wish to Quit ?",
"YYes",
"NNo",
// SH1: Press key text
"PPress any Key for More.",
"PPress any Key to Continue.",
// SH1: Initial Inventory
"A message requesting help",
"A number of business cards",
"Opera Tickets",
"Cuff Link",
"Wire Hook",
"Note",
"An open pocket watch",
"A piece of paper with numbers on it",
"A letter folded many times",
"Tarot Cards",
"An ornate key",
"A pawn ticket",
// SH1: User Interface
"No, thank you.",
"You can't do that.",
"Done...",
"Use ",
" on %s",
"Give ",
" to %s",
// SH1: People names
"Sherlock Holmes",
"Dr. Watson",
"Inspector Lestrade",
"Constable O'Brien",
"Constable Lewis",
"Sheila Parker",
"Henry Carruthers",
"Lesley",
"An Usher",
"Fredrick Epstein",
"Mrs. Worthington",
"The Coach",
"A Player",
"Tim",
"James Sanders",
"Belle",
"Cleaning Girl",
"Wiggins",
"Paul",
"The Bartender",
"A Dirty Drunk",
"A Shouting Drunk",
"A Staggering Drunk",
"The Bouncer",
"The Coroner",
"Reginald Snipes",
"George Blackwood",
"Lars",
"The Chemist",
"Inspector Gregson",
"Jacob Farthington",
"Mycroft",
"Old Sherman",
"Richard",
"The Barman",
"A Dandy Player",
"A Rough-looking Player",
"A Spectator",
"Robert Hunt",
"Violet",
"Pettigrew",
"Augie",
"Anna Carroway",
"A Guard",
"Antonio Caruso",
"Toby the Dog",
"Simon Kingsley",
"Alfred",
"Lady Brumwell",
"Madame Rosa",
"Joseph Moorehead",
"Mrs. Beale",
"Felix",
"Hollingston",
"Constable Callaghan",
"Sergeant Duncan",
"Lord Brumwell",
"Nigel Jaimeson",
"Jonas",
"Constable Dugan"
};
// sharp-s : 0xE1 / octal 341
// small a-umlaut: 0x84 / octal 204
// small o-umlaut: 0x94 / octal 224
// small u-umlaut: 0x81 / octal 201
static const char *const fixedTextDE[] = {
// Game hotkeys
"SBRNOCTEGADU", // original: did not support hotkeys for actions
// SH1: Window buttons
"ZZur\201ck",
"HHoch",
"RRunter",
// SH1: Inventory buttons
"ZZur\201ck",
"SSchau",
"BBenutze",
"GGib",
// SH1: Journal text
"Watsons Tagebuch",
"Seite %d",
// SH1: Journal buttons
"ZZur\201ck", // original: "Zur\201ck"
"o10 hoch",
"HHoch",
"RRunter",
"u10 runter", // original: "10 runter"
"SSuche",
"EErste Seite",
"LLetzte Seite",
"DDrucke Text",
// SH1: Journal search
"ZZur\201ck",
"RR\201ckw\204rts", // original: "Backward"
"VVorw\204rts", // original: "Forward"
"Text nicht gefunden!",
// SH1: Settings
"ZZur\201ck", // original interpreter: "Exit"
"MMusik an",
"MMusik aus",
"PPortr\204ts an", // original interpreter: "Portraits"
"PPortr\204ts aus",
"JJoystick aus",
"NNeue Schrift",
"GGer\204uscheffekte on", // original interpreter: "Effekte"
"GGer\204uscheffekte off",
"FFenster gleitend",
"FFenster direkt",
"JJustiere Joystick",
"HHilfe links",
"HHilfe rechts",
"SSprache an",
"SSprache aus",
"cSchnitt",
"BBlende",
"CCursor langsam",
"CCursor schnell",
// Load/Save
"ZZur\201ck",
"LLaden",
"SSichern",
"HHoch",
"RRunter",
"EEnde",
// Quit Game
"Das Spiel verlassen ?",
"JJa",
"NNein",
// SH1: Press key text
"MMehr auf Tastendruck...",
"BBeliebige Taste dr\201cken.",
// SH1: Initial Inventory
"Ein Hilferuf von Lestrade",
"Holmes' Visitenkarten",
"Karten f\201rs Opernhaus",
"Manschettenkn\224pfe",
"Zum Haken verbogener Drahtkorb",
"Mitteilung am Epstein",
"Eine offene Taschenuhr",
"Ein Zettel mit Zahlen drauf",
"Ein mehrfach gefalteter Briefbogen",
"Ein Tarot-Kartenspiel", // original interpreter: "Ein Tarock-Kartenspiel" [sic]
"Ein verzierter Schl\201ssel",
"Ein Pfandschein",
// SH1: User Interface
"Nein, vielen Dank.",
"Nein, das geht wirklich nicht.", // original: "Nein, das geht wirklich nicht"
"Fertig...",
"Benutze ",
" mit %s",
"Gib ", // original: "Gebe "
" an %s", // original: " zu %s"
// SH1: People names
"Sherlock Holmes",
"Dr. Watson",
"Inspektor Lestrade",
"Konstabler O'Brien",
"Konstabler Lewis",
"Sheila Parker",
"Henry Carruthers",
"Lesley",
"Platzanweiser",
"Fredrick Epstein",
"Mrs. Worthington",
"Der Trainer",
"Ein Spieler",
"Tim",
"James Sanders",
"Belle",
"Putzm\204dchen",
"Wiggins",
"Paul",
"Gastwirt",
"Schmutziger Betrunkener",
"Lallender Betrunkener",
"Torkelnder Betrunkener",
"The Bouncer",
"Der Leichenbeschauer",
"Reginald Snipes",
"George Blackwood",
"Lars",
"Apotheker",
"Inspektor Gregson",
"Jacob Farthington",
"Mycroft",
"Old Sherman",
"Richard",
"Barkeeper",
"Jock Mahoney",
"Nobby Charleton",
"Zuschauer",
"Robert Hunt",
"Violet",
"Pettigrew",
"Augie",
"Anna Carroway",
"Wache",
"Antonio Caruso",
"Toby the Dog",
"Simon Kingsley",
"Alfred",
"Lady Brumwell",
"Madame Rosa",
"Joseph Moorehead",
"Mrs. Beale",
"Felix",
"Hollingston",
"Konstabler Callaghan",
"Sergeant Duncan",
"Lord Brumwell",
"Nigel Jaimeson",
"Jonas",
"Konstabler Dugan"
};
// up-side down exclamation mark - 0xAD / octal 255
// up-side down question mark - 0xA8 / octal 250
// n with a wave on top - 0xA4 / octal 244
// more characters see engines/sherlock/fixed_text.cpp
static const char *const fixedTextES[] = {
// Game hotkeys
"VMHTACIUDNFO",
// SH1: Window buttons
"aSalir", // original interpreter: "Exit"
"SSubir",
"BBajar",
// SH1: Inventory buttons
"SSalir", // original interpreter: "Exit"
"MMirar",
"UUsar",
"DDar",
// SH1: Journal text
"Diario de Watson",
"Pagina %d",
// SH1: Journal buttons
"aSalir", // original interpreter: "Exit"
"RRetroceder",
"SSubir",
"JbaJar",
"AAdelante",
"BBuscar",
"11a pagina",
"UUlt pagina",
"IImprimir",
// SH1: Journal search
"SSalir", // original interpreter: "Exit"
"RRetroceder",
"AAvanzar",
"Texto no encontrado!",
// SH1: Settings
"aSalir", // original interpreter: "Exit"
"MMusica si",
"MMusica no",
"RRetratos si",
"RRetratos no",
"JJoystick no",
"NNuevo fuente",
"Sefectos Sonido si",
"Sefectos Sonido no",
"Tven Tanas desliz.",
"Tven Tanas aparecen",
"CCalibrar Joystick",
"yAyuda lzq", // TODO: check this
"yAyuda Dcha",
"VVoces si",
"VVoces no",
"FFundido a pixel",
"FFundido directo",
"eTeclado lento",
"eTeclado rapido",
// Load/Save
"aSalir", // original interpreter: "Exit"
"CCargar",
"GGrabar",
"SSubir",
"BBajar",
"AAcabar",
// Quit Game
"\250Seguro que quieres Acabar?",
"SSi",
"NNo",
// SH1: Press key text
"TTecla para ver mas",
"TTecla para continuar",
// SH1: Initial Inventory
"Un mensaje solicitando ayuda",
"Unas cuantas tarjetas de visita",
"Entradas para la opera",
"Unos gemelos",
"Un gancho de alambre",
"Una nota",
"Un reloj de bolsillo abierto",
"Un trozo de papel con unos numeros",
"Un carta muy plegada",
"Unas cartas de Tarot",
"Una llave muy vistosa",
"Una papeleta de empe\244o",
// SH1: User Interface
"No, gracias.",
"No puedes hacerlo.", // original: "No puedes hacerlo"
"Hecho...",
"Usar ",
" sobre %s",
"Dar ",
" a %s",
// SH1: People names
"Sherlock Holmes",
"Dr. Watson",
"El inspector Lestrade",
"El agente O'Brien",
"El agente Lewis",
"Sheila Parker",
"Henry Carruthers",
"Lesley",
"Un ujier",
"Fredrick Epstein",
"Mrs. Worthington",
"El entrenador",
"El jugador",
"Tim",
"James Sanders",
"Belle",
"La chica de la limpieza",
"Wiggins",
"Paul",
"El barman",
"Un sucio borracho",
"Un borracho griton",
"Un tambaleante borracho",
"El gorila",
"El forense",
"Reginald Snipes",
"George Blackwood",
"Lars",
"El quimico",
"El inspector Gregson",
"Jacob Farthington",
"Mycroft",
"Old Sherman",
"Richard",
"El barman",
"Un jugador dandy",
"Un duro jugador",
"Un espectador",
"Robert Hunt",
"Violeta",
"Pettigrew",
"Augie",
"Anna Carroway",
"Un guarda",
"Antonio Caruso",
"El perro Toby",
"Simon Kingsley",
"Alfred",
"Lady Brumwell",
"Madame Rosa",
"Joseph Moorehead",
"Mrs. Beale",
"Felix",
"Hollingston",
"El agente Callaghan",
"El sargento Duncan",
"Lord Brumwell",
"Nigel Jaimeson",
"Jonas",
"El agente Dugan"
};
// =========================================
// === Sherlock Holmes 1: Serrated Scalpel ===
static const char *const fixedTextEN_ActionOpen[] = {
"This cannot be opened",
"It is already open",
"It is locked",
"Wait for Watson",
" ",
"."
};
static const char *const fixedTextDE_ActionOpen[] = {
"Das kann man nicht \224ffnen",
"Ist doch schon offen!",
"Leider verschlossen",
"Warte auf Watson",
" ",
"."
};
static const char *const fixedTextES_ActionOpen[] = {
"No puede ser abierto",
"Ya esta abierto",
"Esta cerrado",
"Espera a Watson",
" ",
"."
};
static const char *const fixedTextEN_ActionClose[] = {
"This cannot be closed",
"It is already closed",
"The safe door is in the way"
};
static const char *const fixedTextDE_ActionClose[] = {
"Das kann man nicht schlie\341en",
"Ist doch schon zu!",
"Die safet\201r ist Weg"
};
static const char *const fixedTextES_ActionClose[] = {
"No puede ser cerrado",
"Ya esta cerrado",
"La puerta de seguridad esta entre medias"
};
static const char *const fixedTextEN_ActionMove[] = {
"This cannot be moved",
"It is bolted to the floor",
"It is too heavy",
"The other crate is in the way"
};
static const char *const fixedTextDE_ActionMove[] = {
"L\204\341t sich nicht bewegen",
"Festged\201belt in der Erde...",
"Oha, VIEL zu schwer",
"Die andere Kiste ist im Weg" // original: "Der andere Kiste ist im Weg"
};
static const char *const fixedTextES_ActionMove[] = {
"No puede moverse",
"Esta sujeto a la pared",
"Es demasiado pesado",
"El otro cajon esta en mitad"
};
static const char *const fixedTextEN_ActionPick[] = {
"Nothing of interest here",
"It is bolted down",
"It is too big to carry",
"It is too heavy",
"I think a girl would be more your type",
"Those flowers belong to Penny",
"She's far too young for you!",
"I think a girl would be more your type!",
"Government property for official use only"
};
static const char *const fixedTextDE_ActionPick[] = {
"Nichts Interessantes da",
"Zu gut befestigt",
"Ist ja wohl ein bi\341chen zu gro\341, oder ?",
"Oha, VIEL zu schwer",
"Ich denke, Du stehst mehr auf M\204dchen ?",
"Diese Blumen geh\224ren Penny",
"Sie ist doch viel zu jung f\201r Dich!",
"Ich denke, Du stehst mehr auf M\204dchen ?",
"Staatseigentum - Nur f\201r den Dienstgebrauch !"
};
static const char *const fixedTextES_ActionPick[] = {
"No hay nada interesante",
"Esta anclado al suelo",
"Es muy grande para llevarlo",
"Pesa demasiado",
"Creo que una chica sera mas tu tipo",
"Esas flores pertenecen a Penny",
"\255Es demasiado joven para ti!",
"\255Creo que una chica sera mas tu tipo!",
"Propiedad del gobierno para uso oficial"
};
static const char *const fixedTextEN_ActionUse[] = {
"You can't do that",
"It had no effect",
"You can't reach it",
"OK, the door looks bigger! Happy?",
"Doors don't smoke"
};
static const char *const fixedTextDE_ActionUse[] = {
"Nein, das geht wirklich nicht",
"Tja keinerlei Wirkung",
"Da kommst du nicht dran",
"Na gut, die T\201r sieht jetzt gr\224\341er aus. Zufrieden?",
"T\201ren sind Nichtraucher!"
};
static const char *const fixedTextES_ActionUse[] = {
"No puedes hacerlo",
"No tuvo ningun efecto",
"No puedes alcanzarlo",
"Bien, \255es enorme! \250Feliz?",
"Las puertas no fuman"
};
#define FIXEDTEXT_GETCOUNT(_name_) sizeof(_name_) / sizeof(byte *)
#define FIXEDTEXT_ENTRY(_name_) _name_, FIXEDTEXT_GETCOUNT(_name_)
static const FixedTextActionEntry fixedTextEN_Actions[] = {
{ FIXEDTEXT_ENTRY(fixedTextEN_ActionOpen) },
{ FIXEDTEXT_ENTRY(fixedTextEN_ActionClose) },
{ FIXEDTEXT_ENTRY(fixedTextEN_ActionMove) },
{ FIXEDTEXT_ENTRY(fixedTextEN_ActionPick) },
{ FIXEDTEXT_ENTRY(fixedTextEN_ActionUse) }
};
static const FixedTextActionEntry fixedTextDE_Actions[] = {
{ FIXEDTEXT_ENTRY(fixedTextDE_ActionOpen) },
{ FIXEDTEXT_ENTRY(fixedTextDE_ActionClose) },
{ FIXEDTEXT_ENTRY(fixedTextDE_ActionMove) },
{ FIXEDTEXT_ENTRY(fixedTextDE_ActionPick) },
{ FIXEDTEXT_ENTRY(fixedTextDE_ActionUse) }
};
static const FixedTextActionEntry fixedTextES_Actions[] = {
{ FIXEDTEXT_ENTRY(fixedTextES_ActionOpen) },
{ FIXEDTEXT_ENTRY(fixedTextES_ActionClose) },
{ FIXEDTEXT_ENTRY(fixedTextES_ActionMove) },
{ FIXEDTEXT_ENTRY(fixedTextES_ActionPick) },
{ FIXEDTEXT_ENTRY(fixedTextES_ActionUse) }
};
// =========================================
static const FixedTextLanguageEntry fixedTextLanguages[] = {
{ Common::DE_DEU, fixedTextDE, fixedTextDE_Actions },
{ Common::ES_ESP, fixedTextES, fixedTextES_Actions },
{ Common::EN_ANY, fixedTextEN, fixedTextEN_Actions },
{ Common::UNK_LANG, fixedTextEN, fixedTextEN_Actions }
};
// =========================================
// =========================================
ScalpelFixedText::ScalpelFixedText(SherlockEngine *vm) : FixedText(vm) {
// Figure out which fixed texts to use
Common::Language curLanguage = _vm->getLanguage();
const FixedTextLanguageEntry *curLanguageEntry = fixedTextLanguages;
while (curLanguageEntry->language != Common::UNK_LANG) {
if (curLanguageEntry->language == curLanguage)
break; // found current language
curLanguageEntry++;
}
_curLanguageEntry = curLanguageEntry;
}
const char *ScalpelFixedText::getText(int fixedTextId) {
return _curLanguageEntry->fixedTextArray[fixedTextId];
}
const Common::String ScalpelFixedText::getActionMessage(FixedTextActionId actionId, int messageIndex) {
assert(actionId >= 0);
assert(messageIndex >= 0);
const FixedTextActionEntry *curActionEntry = &_curLanguageEntry->actionArray[actionId];
assert(messageIndex < curActionEntry->fixedTextArrayCount);
return Common::String(curActionEntry->fixedTextArray[messageIndex]);
}
} // End of namespace Scalpel
} // End of namespace Sherlock
|