COMMON: ENGINES: Correct Czech language ISO code

1. Correct constant in common files
2. Add the old code to obsolete language codes
3. Replace all occurences in engine code
This commit is contained in:
trembyle 2022-01-30 18:43:35 -05:00 committed by Lothar Serra Mari
parent e87773484c
commit b9e7b1dfcd
25 changed files with 47 additions and 46 deletions

View File

@ -58,7 +58,7 @@ const LanguageDescription g_languages[] = {
{ "cn", "zh_CN", "Chinese (Simplified)", ZH_CHN },
{ "tw", "zh_TW", "Chinese (Traditional)", ZH_TWN },
{ "hr", "hr_HR", "Croatian", HR_HRV },
{ "cz", "cs_CZ", "Czech", CZ_CZE },
{ "cs", "cs_CZ", "Czech", CS_CZE },
{ "da", "da_DK", "Danish", DA_DNK },
{ "nl", "nl_NL", "Dutch", NL_NLD },
{ "en", "en", "English", EN_ANY }, // Generic English (when only one game version exist)
@ -92,6 +92,7 @@ const LanguageDescription g_languages[] = {
};
const LanguageDescription g_obsoleteLanguages[] = {
{ "cz", "cs_CZ", "Czech", CS_CZE },
{ "gr", "el_GR", "Greek", EL_GRC },
{ "hb", "he_IL", "Hebrew", HE_ISR },
{ "jp", "ja_JP", "Japanese", JA_JPN },

View File

@ -44,7 +44,7 @@ class String;
enum Language {
AR_ARB,
CA_ESP,
CZ_CZE,
CS_CZE,
DA_DNK,
DE_DEU,
EL_GRC,

View File

@ -110,7 +110,7 @@ static const StringMap langMap[] = {
{ "en", "EN_GRB" },
{ "he", "HE_ISR" },
{ "ru", "RU_RUS" },
{ "cz", "CZ_CZE" },
{ "cs", "CS_CZE" },
{ "nl", "NL_NLD" },
{ "nb", "NB_NOR" },
{ "pl", "PL_POL" },

View File

@ -2930,7 +2930,7 @@ void AGOSEngine::windowDrawChar(WindowBlock *window, uint x, uint y, byte chr) {
w = 6;
switch (_language) {
case Common::CZ_CZE:
case Common::CS_CZE:
src = czech_simonFont + (chr - 32) * 8;
break;
case Common::RU_RUS:

View File

@ -327,7 +327,7 @@ static const AGOSGameDescription gameDescriptions[] = {
{ "tbllist", GAME_TBLFILE, "319f6b227c7822a551f57d24e70f8149", 368},
AD_LISTEND
},
Common::CZ_CZE,
Common::CS_CZE,
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO1(GUIO_NOSPEECH)
@ -705,7 +705,7 @@ static const AGOSGameDescription gameDescriptions[] = {
{ "tbllist", GAME_TBLFILE, "8252660df0edbdbc3e6377e155bbd0c5", 284},
AD_LISTEND
},
Common::CZ_CZE,
Common::CS_CZE,
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO1(GUIO_NOSPEECH)
@ -1469,7 +1469,7 @@ static const AGOSGameDescription gameDescriptions[] = {
{ "tbllist", GAME_TBLFILE, "d198a80de2c59e4a0cd24b98814849e8", -1},
AD_LISTEND
},
Common::CZ_CZE,
Common::CS_CZE,
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO1(GUIO_NOSPEECH)
@ -1541,7 +1541,7 @@ static const AGOSGameDescription gameDescriptions[] = {
{ "tbllist", GAME_TBLFILE, "d198a80de2c59e4a0cd24b98814849e8", -1},
AD_LISTEND
},
Common::CZ_CZE,
Common::CS_CZE,
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO1(GUIO_NOSPEECH)
@ -2464,7 +2464,7 @@ static const AGOSGameDescription gameDescriptions[] = {
{ "tbllist", GAME_TBLFILE, "2082f8d02075e590300478853a91ffd9", -1},
AD_LISTEND
},
Common::CZ_CZE,
Common::CS_CZE,
Common::kPlatformWindows,
ADGF_CD,
GUIO0()
@ -2741,7 +2741,7 @@ static const AGOSGameDescription gameDescriptions[] = {
{ "tbllist", GAME_TBLFILE, "2082f8d02075e590300478853a91ffd9", -1},
AD_LISTEND
},
Common::CZ_CZE,
Common::CS_CZE,
Common::kPlatformDOS,
ADGF_CD,
GUIO0()

View File

@ -281,7 +281,7 @@ void AGOSEngine::printVerbOf(uint hitarea_id) {
case Common::DE_DEU:
verb_prep_names = german_verb_prep_names;
break;
case Common::CZ_CZE:
case Common::CS_CZE:
verb_prep_names = czech_verb_prep_names;
break;
default:
@ -310,7 +310,7 @@ void AGOSEngine::printVerbOf(uint hitarea_id) {
case Common::DE_DEU:
verb_names = german_verb_names;
break;
case Common::CZ_CZE:
case Common::CS_CZE:
verb_names = czech_verb_names;
break;
default:

View File

@ -4738,7 +4738,7 @@ static const DirectorGameDescription gameDescriptions[] = {
// Found on PC World (Czechia) Sept 2003
WINGAME2_l("nemcina", "", "START_32.EXE", "3460ad87d2ba57104e2810a77b53c220", 1710313,
"CVIC.DXR", "8f12d20e12dddc2fc3207e1f4e571d17", 23223862, Common::CZ_CZE, 500),
"CVIC.DXR", "8f12d20e12dddc2fc3207e1f4e571d17", 23223862, Common::CS_CZE, 500),
// All original Mac filenames end with ™
// Nikolai in Outer Space did not get a Mac release

View File

@ -59,7 +59,7 @@ const ADGameDescription gameDescriptions[] = {
"draci",
nullptr,
AD_ENTRY1s("INIT.DFW", "9921c8f0045679a8f37eca8d41c5ec02", 906),
Common::CZ_CZE,
Common::CS_CZE,
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO0()

View File

@ -242,7 +242,7 @@ static const DreamWebGameDescription gameDescriptions[] = {
{"dreamweb.exe", 0, "40cc15bdc8fa3a785b5fd1ecd6194119", 65440},
AD_LISTEND
},
Common::CZ_CZE,
Common::CS_CZE,
Common::kPlatformDOS,
ADGF_CD,
GUIO2(GAMEOPTION_ORIGINAL_SAVELOAD, GAMEOPTION_BRIGHTPALETTE)

View File

@ -401,7 +401,7 @@ Common::Error DreamWebEngine::run() {
case Common::RU_RUS:
_textEncoding = Common::kDos866;
break;
case Common::CZ_CZE:
case Common::CS_CZE:
_textEncoding = Common::kWindows1250;
break;
default:

View File

@ -140,7 +140,7 @@ void DreamWebEngine::bibleQuote() {
case Common::RU_RUS:
theStory = ruStory;
break;
case Common::CZ_CZE:
case Common::CS_CZE:
theStory = csStory;
break;
default:

View File

@ -643,9 +643,9 @@ const GlkDetectionEntry TADS_GAMES[] = {
DT_ENTRY1("youmatched", "WebUI", "055efcc37f945071ea2486a207703951", 2050047),
// TADS 3 - Czech
DT_ENTRYL0("exoter", Common::CZ_CZE, "02b93382a19cd69f3cb67a12073f4795", 1487144),
DT_ENTRYL0("exoter", Common::CZ_CZE, "865db2452b38f96035841f04e314c2c6", 1489600),
DT_ENTRYL0("exoter", Common::CZ_CZE, "956f93c8c8b5270d75501039ef825429", 1074752),
DT_ENTRYL0("exoter", Common::CS_CZE, "02b93382a19cd69f3cb67a12073f4795", 1487144),
DT_ENTRYL0("exoter", Common::CS_CZE, "865db2452b38f96035841f04e314c2c6", 1489600),
DT_ENTRYL0("exoter", Common::CS_CZE, "956f93c8c8b5270d75501039ef825429", 1074752),
// TADS 3 - German
DT_ENTRYL0("pionierin", Common::DE_DEU, "9f899c9826204184c09f7088acfa8cce", 1293016),

View File

@ -235,7 +235,7 @@ const KYRAGameDescription adGameDescs[] = {
"kyra1",
msg_fanTrans_missingLangResources, // Reason for being unsupported
AD_ENTRY1s("GEMCUT.EMC", "20f876423f4caa20f5de6b4fc5dfafeb", 6686),
Common::CZ_CZE,
Common::CS_CZE,
Common::kPlatformDOS,
ADGF_UNSUPPORTED,
GUIO5(GUIO_NOSPEECH, GUIO_MIDIADLIB, GUIO_MIDIMT32, GUIO_MIDIPCSPK, GUIO_RENDERVGA)

View File

@ -113,7 +113,7 @@ static const ADGameDescription gameDescriptions[] = {
"tlj", "4 CD build 142",
AD_ENTRY2s("x.xarc", "a0559457126caadab0cadac02d35f26f", 3032,
"chapters.ini", "547f0b9c04c00d330b60eed6e8d24732", 484),
Common::CZ_CZE,
Common::CS_CZE,
Common::kPlatformWindows,
ADGF_NO_FLAGS,
GUIO_NONE

View File

@ -209,7 +209,7 @@ DetectedGames SwordMetaEngineDetection::detectGames(const Common::FSList &fslist
game.appendGUIOptions(getGameGUIOptionsDescriptionLanguage(Common::IT_ITA));
game.appendGUIOptions(getGameGUIOptionsDescriptionLanguage(Common::ES_ESP));
game.appendGUIOptions(getGameGUIOptionsDescriptionLanguage(Common::PT_BRA));
game.appendGUIOptions(getGameGUIOptionsDescriptionLanguage(Common::CZ_CZE));
game.appendGUIOptions(getGameGUIOptionsDescriptionLanguage(Common::CS_CZE));
game.appendGUIOptions(getGameGUIOptionsDescriptionLanguage(Common::HE_ISR));
detectedGames.push_back(game);

View File

@ -143,7 +143,7 @@ Common::Error SwordEngine::init() {
case Common::PT_BRA:
_systemVars.language = BS1_PORT;
break;
case Common::CZ_CZE:
case Common::CS_CZE:
_systemVars.language = BS1_CZECH;
break;
case Common::HE_ISR:

View File

@ -128,7 +128,7 @@ static const ADGameDescription teenAgentGameDescriptions[] = {
{"sdr.res", 0, "434c62c1f43b7aa4def62ff276163edb", 14672},
AD_LISTEND
},
Common::CZ_CZE,
Common::CS_CZE,
Common::kPlatformDOS,
ADGF_UNSUPPORTED,
GUIO1(GUIO_NOMIDI)
@ -149,7 +149,7 @@ static const ADGameDescription teenAgentGameDescriptions[] = {
{"sdr.res", 0, "d0b1398c78dc82571ddef5877c9a3a06", 14993},
AD_LISTEND
},
Common::CZ_CZE,
Common::CS_CZE,
Common::kPlatformDOS,
ADGF_CD,
GUIO1(GUIO_NOMIDI)

View File

@ -170,7 +170,7 @@ static const ToltecsGameDescription gameDescriptions[] = {
"toltecs",
0,
AD_ENTRY1s("WESTERN", "57503131c0217c76b07d0b5c14805631", 337644552),
Common::CZ_CZE,
Common::CS_CZE,
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO1(GUIO_NONE)

View File

@ -51,7 +51,7 @@ static const TonyGameDescription gameDescriptions[] = {
{ "voices.vdb", 0, "3384bdcb70d1e1ecedbde26e79683ede", 299019523 },
AD_LISTEND
},
Common::CZ_CZE,
Common::CS_CZE,
Common::kPlatformWindows,
ADGF_DROPPLATFORM,
GUIO1(GUIO_NOMIDI)

View File

@ -228,7 +228,7 @@ bool TonyEngine::loadTonyDat() {
case Common::RU_RUS:
expectedLangVariant = 2;
break;
case Common::CZ_CZE:
case Common::CS_CZE:
expectedLangVariant = 3;
break;
case Common::FR_FRA:

View File

@ -79,7 +79,7 @@ static const ADGameDescription tuckerGameDescriptions[] = {
"tucker",
"",
AD_ENTRY1s("infobar.txt", "e548994877ff31ca304f6352ce022a8e", 497),
Common::CZ_CZE,
Common::CS_CZE,
Common::kPlatformDOS,
Tucker::kGameFlagEncodedData,
GUIO1(GUIO_NOMIDI)

View File

@ -257,7 +257,7 @@ bool BaseFileManager::registerPackages() {
}
// Czech
} else if (fileName == "czech.dcp" || fileName == "xlanguage_cz.dcp" || fileName == "czech_language_pack.dcp") {
if (_language != Common::CZ_CZE) {
if (_language != Common::CS_CZE) {
continue;
}
// French

View File

@ -2839,7 +2839,7 @@ ScValue *BaseGame::scGetProperty(const Common::String &name) {
//////////////////////////////////////////////////////////////////////////
else if (name == "SystemLanguage") {
switch (Common::parseLanguage(ConfMan.get("language"))) {
case Common::CZ_CZE:
case Common::CS_CZE:
_scValue->setString("czech");
break;
case Common::DA_DNK:

View File

@ -220,7 +220,7 @@ static const WMEGameDescription gameDescriptions[] = {
// Five Lethal Demons (Czech)
WME_WINENTRY("5ld", "",
WME_ENTRY2s("czech.dcp", "9021b7a1e154d6764228116f894b213b", 186,
"data.dcp", "1037a77cbd001e0644898addc022322c", 15407750), Common::CZ_CZE, ADGF_UNSTABLE, WME_1_6_1),
"data.dcp", "1037a77cbd001e0644898addc022322c", 15407750), Common::CS_CZE, ADGF_UNSTABLE, WME_1_6_1),
// Five Lethal Demons (English)
WME_WINENTRY("5ld", "",
@ -235,7 +235,7 @@ static const WMEGameDescription gameDescriptions[] = {
// Five Magical Amulets (Czech)
WME_WINENTRY("5ma", "",
WME_ENTRY2s("czech.dcp", "7b2515a8ceb955c72bc14f0f1fca869e", 184,
"data.dcp", "0134e92bcd5fd2837df3971087e96067", 163316498), Common::CZ_CZE, ADGF_UNSTABLE, WME_1_3_3),
"data.dcp", "0134e92bcd5fd2837df3971087e96067", 163316498), Common::CS_CZE, ADGF_UNSTABLE, WME_1_3_3),
// Five Magical Amulets (English)
WME_WINENTRY("5ma", "",
@ -439,7 +439,7 @@ static const WMEGameDescription gameDescriptions[] = {
// Basis Octavus
WME_WINENTRY("basisoctavus", "",
WME_ENTRY1s("data.dcp", "021ef97f8f49ec33f83beae0d6e38f08", 49336909), Common::CZ_CZE, ADGF_UNSTABLE | GF_3D, WME_1_9_1),
WME_ENTRY1s("data.dcp", "021ef97f8f49ec33f83beae0d6e38f08", 49336909), Common::CS_CZE, ADGF_UNSTABLE | GF_3D, WME_1_9_1),
// Boredom of Agustin Cordes
WME_WINENTRY("agustin", "",
@ -810,11 +810,11 @@ static const WMEGameDescription gameDescriptions[] = {
// Dead City (Czech) (25.06.2004)
WME_WINENTRY("deadcity", "v1.0.1",
WME_ENTRY1s("data.dcp", "6860a4aa55576cbee1a0f2a04f2c8810", 9132626), Common::CZ_CZE, ADGF_UNSTABLE, WME_1_2_43),
WME_ENTRY1s("data.dcp", "6860a4aa55576cbee1a0f2a04f2c8810", 9132626), Common::CS_CZE, ADGF_UNSTABLE, WME_1_2_43),
// Dead City (Czech)
WME_WINENTRY("deadcity", "",
WME_ENTRY1s("data.dcp", "7ebfd50d1a22370ed7b079bcaa631d62", 9070205), Common::CZ_CZE, ADGF_UNSTABLE, WME_1_4_1),
WME_ENTRY1s("data.dcp", "7ebfd50d1a22370ed7b079bcaa631d62", 9070205), Common::CS_CZE, ADGF_UNSTABLE, WME_1_4_1),
// Dead City (English)
WME_WINENTRY("deadcity", "",
@ -856,7 +856,7 @@ static const WMEGameDescription gameDescriptions[] = {
// Dirty Split (Czech)
WME_WINENTRY("dirtysplit", "",
WME_ENTRY2s("czech.dcp", "08a71446467cf8f9444cfea446b46ad6", 127697934,
"data.dcp", "8b4b81b718bf65f30a67fc0b1e329eb5", 88577623), Common::CZ_CZE, ADGF_UNSTABLE, WME_1_8_5),
"data.dcp", "8b4b81b718bf65f30a67fc0b1e329eb5", 88577623), Common::CS_CZE, ADGF_UNSTABLE, WME_1_8_5),
// Dirty Split (English)
WME_WINENTRY("dirtysplit", "",
@ -895,7 +895,7 @@ static const WMEGameDescription gameDescriptions[] = {
// Dr. Bohus
WME_WINENTRY("drbohus", "",
WME_ENTRY1s("data.dcp", "a79e640ea15f7ca36addc08ab7b1db49", 59344013), Common::CZ_CZE, ADGF_UNSTABLE, WME_1_2_43),
WME_ENTRY1s("data.dcp", "a79e640ea15f7ca36addc08ab7b1db49", 59344013), Common::CS_CZE, ADGF_UNSTABLE, WME_1_2_43),
// Dr. Doyle - Mystery Of The Cloche Hat
WME_WINENTRY("drdoylemotch", "Steam",
@ -1391,7 +1391,7 @@ static const WMEGameDescription gameDescriptions[] = {
// Helga Deep In Trouble (Czech)
WME_WINENTRY("helga", "",
WME_ENTRY2s("data.dcp", "25cb955a60b58326f2eeda1ce288fb37", 183251259,
"data.dcp", "25cb955a60b58326f2eeda1ce288fb37", 183251259), Common::CZ_CZE, ADGF_UNSTABLE, WME_1_9_3),
"data.dcp", "25cb955a60b58326f2eeda1ce288fb37", 183251259), Common::CS_CZE, ADGF_UNSTABLE, WME_1_9_3),
// Helga Deep In Trouble (English)
WME_WINENTRY("helga", "",
@ -1401,7 +1401,7 @@ static const WMEGameDescription gameDescriptions[] = {
// Helga Deep In Trouble (Demo) (Czech)
WME_WINENTRY("helga", "Demo",
WME_ENTRY2s("data.dcp", "45134ed93bc391edf148b79cdcbf2a09", 154266028,
"data.dcp", "45134ed93bc391edf148b79cdcbf2a09", 154266028), Common::CZ_CZE, ADGF_UNSTABLE | ADGF_DEMO, WME_1_9_3),
"data.dcp", "45134ed93bc391edf148b79cdcbf2a09", 154266028), Common::CS_CZE, ADGF_UNSTABLE | ADGF_DEMO, WME_1_9_3),
// Helga Deep In Trouble (Demo) (English)
WME_WINENTRY("helga", "Demo",
@ -1501,7 +1501,7 @@ static const WMEGameDescription gameDescriptions[] = {
// Lov Mamuta
WME_WINENTRY("lovmamuta", "",
WME_ENTRY1s("data.dcp", "ce2be4691fa0104cfdd63656cedaf810", 11198933), Common::CZ_CZE, ADGF_UNSTABLE | GF_3D, WME_1_9_1),
WME_ENTRY1s("data.dcp", "ce2be4691fa0104cfdd63656cedaf810", 11198933), Common::CS_CZE, ADGF_UNSTABLE | GF_3D, WME_1_9_1),
// J.U.L.I.A. (English)
WME_WINENTRY("julia", "",
@ -1601,15 +1601,15 @@ static const WMEGameDescription gameDescriptions[] = {
// Kulivocko (Czech)
WME_WINENTRY("kulivocko", "",
WME_ENTRY1s("data.dcp", "44306dc470e9b27474043932eccee02f", 155106392), Common::CZ_CZE, ADGF_UNSTABLE, WME_1_9_1),
WME_ENTRY1s("data.dcp", "44306dc470e9b27474043932eccee02f", 155106392), Common::CS_CZE, ADGF_UNSTABLE, WME_1_9_1),
// Kulivocko (Czech) (Demo 1)
WME_WINENTRY("kulivocko", "Demo 1",
WME_ENTRY1s("data.dcp", "63b164bdfadecbb0deb5da691afb8154", 48362234), Common::CZ_CZE, ADGF_UNSTABLE | ADGF_DEMO, WME_1_9_1),
WME_ENTRY1s("data.dcp", "63b164bdfadecbb0deb5da691afb8154", 48362234), Common::CS_CZE, ADGF_UNSTABLE | ADGF_DEMO, WME_1_9_1),
// Kulivocko (Czech) (Demo 2)
WME_WINENTRY("kulivocko", "Demo 2",
WME_ENTRY1s("data.dcp", "501c59ddb787646d87dead183199c8ed", 73601289), Common::CZ_CZE, ADGF_UNSTABLE | ADGF_DEMO, WME_1_9_1),
WME_ENTRY1s("data.dcp", "501c59ddb787646d87dead183199c8ed", 73601289), Common::CS_CZE, ADGF_UNSTABLE | ADGF_DEMO, WME_1_9_1),
// Life In 3 Minutes
WME_WINENTRY("lifein3minutes", "",

View File

@ -90,7 +90,7 @@ Common::CodePage StringUtil::mapCodePage(TTextCharset charset) {
switch (BaseEngine::instance().getLanguage()) {
//cp1250: Central Europe
case Common::CZ_CZE:
case Common::CS_CZE:
case Common::HR_HRV:
case Common::HU_HUN:
case Common::PL_POL: