summaryrefslogtreecommitdiffstats
path: root/src/core/Frontend.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-03-29 08:35:13 +0200
committerSergeanur <s.anureev@yandex.ua>2020-03-30 13:50:14 +0200
commitbb8868eba79e0c6b76ca1e5a397ac20e72937798 (patch)
tree7ff4a8f91ba0896a8cc80fb0c09bd64b069d3e14 /src/core/Frontend.cpp
parentFire and PlayerSkin fix (diff)
downloadre3-bb8868eba79e0c6b76ca1e5a397ac20e72937798.tar
re3-bb8868eba79e0c6b76ca1e5a397ac20e72937798.tar.gz
re3-bb8868eba79e0c6b76ca1e5a397ac20e72937798.tar.bz2
re3-bb8868eba79e0c6b76ca1e5a397ac20e72937798.tar.lz
re3-bb8868eba79e0c6b76ca1e5a397ac20e72937798.tar.xz
re3-bb8868eba79e0c6b76ca1e5a397ac20e72937798.tar.zst
re3-bb8868eba79e0c6b76ca1e5a397ac20e72937798.zip
Diffstat (limited to 'src/core/Frontend.cpp')
-rw-r--r--src/core/Frontend.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp
index 0bade6c7..a002835b 100644
--- a/src/core/Frontend.cpp
+++ b/src/core/Frontend.cpp
@@ -1707,6 +1707,17 @@ void CMenuManager::InitialiseChangedLanguageSettings()
CTimer::Update();
CGame::frenchGame = false;
CGame::germanGame = false;
+#ifdef MORE_LANGUAGES
+ switch (CMenuManager::m_PrefsLanguage) {
+ case LANGUAGE_RUSSIAN:
+ CFont::ReloadFonts(FONT_LANGSET_RUSSIAN);
+ break;
+ default:
+ CFont::ReloadFonts(FONT_LANGSET_EFIGS);
+ break;
+ }
+#endif
+
switch (CMenuManager::m_PrefsLanguage) {
case LANGUAGE_FRENCH:
CGame::frenchGame = true;
@@ -1714,6 +1725,11 @@ void CMenuManager::InitialiseChangedLanguageSettings()
case LANGUAGE_GERMAN:
CGame::germanGame = true;
break;
+#ifdef MORE_LANGUAGES
+ case LANGUAGE_RUSSIAN:
+ CGame::russianGame = true;
+ break;
+#endif
default:
break;
}
@@ -2916,6 +2932,14 @@ CMenuManager::ProcessButtonPresses(void)
CMenuManager::InitialiseChangedLanguageSettings();
SaveSettings();
break;
+#ifdef MORE_LANGUAGES
+ case MENUACTION_LANG_RUS:
+ m_PrefsLanguage = LANGUAGE_RUSSIAN;
+ m_bFrontEnd_ReloadObrTxtGxt = true;
+ CMenuManager::InitialiseChangedLanguageSettings();
+ SaveSettings();
+ break;
+#endif
case MENUACTION_POPULATESLOTS_CHANGEMENU:
PcSaveHelper.PopulateSlotInfo();