[Scummvm-git-logs] scummvm master -> 2b078bf23aedf8ca15778e47815a5be987c8bf4b

sev- noreply at scummvm.org
Fri Dec 22 01:07:19 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
2b078bf23a CRUISE: Added preliminary groundwork for Russian translation


Commit: 2b078bf23aedf8ca15778e47815a5be987c8bf4b
    https://github.com/scummvm/scummvm/commit/2b078bf23aedf8ca15778e47815a5be987c8bf4b
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-12-22T02:06:56+01:00

Commit Message:
CRUISE: Added preliminary groundwork for Russian translation

Changed paths:
    engines/cruise/staticres.cpp
    engines/cruise/staticres.h


diff --git a/engines/cruise/staticres.cpp b/engines/cruise/staticres.cpp
index 909e21801cb..ebe1076df0d 100644
--- a/engines/cruise/staticres.cpp
+++ b/engines/cruise/staticres.cpp
@@ -217,6 +217,26 @@ const int16 spanish_fontCharacterTable[256] = {
 	-1, -1, -1
 };
 
+const int16 russian_fontCharacterTable[256] = {
+	-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+	-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+	-1,
+	 0,  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
+};
+
 //
 // Mouse data
 //
@@ -329,4 +349,17 @@ const char *spanishLanguageStrings[13] = {
 	"Salvar", "Cargar", "Recomenzar", "Salir"
 };
 
+const char *russianLanguageStrings[13] = {
+	"\x8F\xA0\xE3\xA7\xA0", // Пауза
+	nullptr, nullptr, nullptr, nullptr,
+	"\x82\xA5\xE9\xA8", // 	"Вещи",
+	"\x8F\xAE\xA3\xAE\xA2\xAE\xE0\xA8\xE2\xEC\x20\xAE\x2E\x2E\x2E", // 	"Поговорить о...",
+	"\x8C\xA5\xAD\xEE\x20\xA8\xA3\xE0\xEB", // 	"Меню игры",
+	nullptr, // 	nullptr,
+	"\x91\xAE\xE5\xE0\xA0\xAD\xA8\xE2\xEC", // 	"Сохранить",
+	"\x87\xA0\xA3\xE0\xE3\xA7\xA8\xE2\xEC", // 	"Загрузить",
+	"\x87\xA0\xAD\xAE\xA2\xAE", // 	"Заново",
+	"\x82\xEB\xA9\xE2\xA8" // 	"Выйти"
+};
+
 } // End of namespace Cruise
diff --git a/engines/cruise/staticres.h b/engines/cruise/staticres.h
index 5dff4fdca0c..8d61b7cf045 100644
--- a/engines/cruise/staticres.h
+++ b/engines/cruise/staticres.h
@@ -38,10 +38,13 @@ extern const int actor_invstat[][13];
 extern const int16 english_fontCharacterTable[256];
 extern const int16 german_fontCharacterTable[256];
 extern const int16 spanish_fontCharacterTable[256];
+extern const int16 russian_fontCharacterTable[256];
 
-#define fontCharacterTable (_vm->getLanguage() == Common::DE_DEU ? \
-	german_fontCharacterTable : (_vm->getLanguage() == Common::ES_ESP ? \
-	spanish_fontCharacterTable : english_fontCharacterTable))
+#define fontCharacterTable (\
+	_vm->getLanguage() == Common::DE_DEU ? german_fontCharacterTable : \
+	_vm->getLanguage() == Common::ES_ESP ? spanish_fontCharacterTable : \
+	_vm->getLanguage() == Common::RU_RUS ? russian_fontCharacterTable : \
+	english_fontCharacterTable)
 
 // Mouse cursor data
 extern const byte mouseCursorNormal[];
@@ -58,6 +61,7 @@ extern const char *frenchLanguageStrings[13];
 extern const char *germanLanguageStrings[13];
 extern const char *italianLanguageStrings[13];
 extern const char *spanishLanguageStrings[13];
+extern const char *russianLanguageStrings[13];
 
 } // End of namespace Cruise
 




More information about the Scummvm-git-logs mailing list