add a translation

This commit is contained in:
Slavasil 2025-03-23 22:14:44 +03:00
parent 4ee8a06232
commit 3f1addcadd
2 changed files with 6 additions and 3 deletions

View File

@ -14,7 +14,8 @@ namespace Game {
"Cannot get console mode",
"Cannot set console mode",
"WHO WANTS TO BECOME",
"A STOPWATCHIONAIRE"
"A STOPWATCHIONAIRE",
"Cannot read/create the game config file because of an unknown error",
}},
{"ru-RU", new string[] {
"Не указано ни одного варианта ответа на вопрос",
@ -27,7 +28,8 @@ namespace Game {
"Не удалось узнать режим консоли",
"Не удалось установить режим консоли",
"КТО ХОЧЕТ СТАТЬ",
"СЕКУНДОМЕРОМ"
"СЕКУНДОМЕРОМ",
"Произошла неизвестная ошибка при чтении/создании файла настроек",
}}
};
@ -47,6 +49,7 @@ namespace Game {
ERROR_SETCONSOLEMODE,
TITLE_LINE1,
TITLE_LINE2,
ERROR_READ_CONFIG_UNKNOWN,
}
}
}

View File

@ -24,7 +24,7 @@ namespace Game {
gameConfig = existingGameConfig;
}
} catch {
display.ShowFatalError("Произошла неизвестная ошибка при чтении/создании файла настроек");
display.ShowFatalError(I18n.GetMessage(I18n.Message.ERROR_READ_CONFIG_UNKNOWN));
Console.ReadKey();
return 2;
}