From 3f1addcadd7700df3c207d998e8b385e8d603d23 Mon Sep 17 00:00:00 2001 From: Slavasil Date: Sun, 23 Mar 2025 22:14:44 +0300 Subject: [PATCH] add a translation --- App/I18n.cs | 7 +++++-- App/Program.cs | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/App/I18n.cs b/App/I18n.cs index 593163e..e8149a3 100644 --- a/App/I18n.cs +++ b/App/I18n.cs @@ -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, } } } \ No newline at end of file diff --git a/App/Program.cs b/App/Program.cs index 9f7c6ee..0afdedb 100644 --- a/App/Program.cs +++ b/App/Program.cs @@ -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; }