summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-04-19 21:32:59 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2020-04-19 21:32:59 +0200
commit2308321805b97105cf03e8a38d44c90d9f652cd1 (patch)
tree771fa4af464b5f8ddc297d2eb3b3df254a541832 /src/core
parentMerge pull request #474 from Nick007J/master (diff)
downloadre3-2308321805b97105cf03e8a38d44c90d9f652cd1.tar
re3-2308321805b97105cf03e8a38d44c90d9f652cd1.tar.gz
re3-2308321805b97105cf03e8a38d44c90d9f652cd1.tar.bz2
re3-2308321805b97105cf03e8a38d44c90d9f652cd1.tar.lz
re3-2308321805b97105cf03e8a38d44c90d9f652cd1.tar.xz
re3-2308321805b97105cf03e8a38d44c90d9f652cd1.tar.zst
re3-2308321805b97105cf03e8a38d44c90d9f652cd1.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/Frontend.cpp13
-rw-r--r--src/core/Frontend.h2
-rw-r--r--src/core/Game.cpp1
-rw-r--r--src/core/Game.h1
-rw-r--r--src/core/MenuScreens.h1
5 files changed, 18 insertions, 0 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp
index 6fe06d96..6bfde701 100644
--- a/src/core/Frontend.cpp
+++ b/src/core/Frontend.cpp
@@ -2893,6 +2893,9 @@ CMenuManager::InitialiseChangedLanguageSettings()
CGame::germanGame = false;
#ifdef MORE_LANGUAGES
switch (m_PrefsLanguage) {
+ case LANGUAGE_POLISH:
+ CFont::ReloadFonts(FONT_LANGSET_POLISH);
+ break;
case LANGUAGE_RUSSIAN:
CFont::ReloadFonts(FONT_LANGSET_RUSSIAN);
break;
@@ -2910,6 +2913,9 @@ CMenuManager::InitialiseChangedLanguageSettings()
CGame::germanGame = true;
break;
#ifdef MORE_LANGUAGES
+ case LANGUAGE_POLISH:
+ CGame::polishGame = true;
+ break;
case LANGUAGE_RUSSIAN:
CGame::russianGame = true;
break;
@@ -4254,6 +4260,12 @@ CMenuManager::ProcessButtonPresses(void)
SaveSettings();
break;
#ifdef MORE_LANGUAGES
+ case MENUACTION_LANG_PL:
+ m_PrefsLanguage = LANGUAGE_POLISH;
+ m_bFrontEnd_ReloadObrTxtGxt = true;
+ InitialiseChangedLanguageSettings();
+ SaveSettings();
+ break;
case MENUACTION_LANG_RUS:
m_PrefsLanguage = LANGUAGE_RUSSIAN;
m_bFrontEnd_ReloadObrTxtGxt = true;
@@ -5550,6 +5562,7 @@ CMenuManager::ConstructStatLine(int rowIdx)
case LANGUAGE_ITALIAN:
case LANGUAGE_SPANISH:
#ifdef MORE_LANGUAGES
+ case LANGUAGE_POLISH:
case LANGUAGE_RUSSIAN:
#endif
STAT_LINE("FESTDFM", &CStats::DistanceTravelledOnFoot, true, nil);
diff --git a/src/core/Frontend.h b/src/core/Frontend.h
index 71aac605..7877d6f1 100644
--- a/src/core/Frontend.h
+++ b/src/core/Frontend.h
@@ -89,6 +89,7 @@ enum eLanguages
LANGUAGE_ITALIAN,
LANGUAGE_SPANISH,
#ifdef MORE_LANGUAGES
+ LANGUAGE_POLISH,
LANGUAGE_RUSSIAN,
#endif
};
@@ -365,6 +366,7 @@ enum eMenuAction
MENUACTION_UNK109,
MENUACTION_UNK110,
#ifdef MORE_LANGUAGES
+ MENUACTION_LANG_PL,
MENUACTION_LANG_RUS,
#endif
};
diff --git a/src/core/Game.cpp b/src/core/Game.cpp
index 7ccf78d0..b1d29161 100644
--- a/src/core/Game.cpp
+++ b/src/core/Game.cpp
@@ -98,6 +98,7 @@ bool CGame::noProstitutes;
bool CGame::playingIntro;
char CGame::aDatFile[32];
#ifdef MORE_LANGUAGES
+bool CGame::polishGame = false;
bool CGame::russianGame = false;
#endif
diff --git a/src/core/Game.h b/src/core/Game.h
index e3f0f616..3b8a856d 100644
--- a/src/core/Game.h
+++ b/src/core/Game.h
@@ -18,6 +18,7 @@ public:
static bool frenchGame;
static bool germanGame;
#ifdef MORE_LANGUAGES
+ static bool polishGame;
static bool russianGame;
#endif
static bool noProstitutes;
diff --git a/src/core/MenuScreens.h b/src/core/MenuScreens.h
index 8692d4dc..48e2173e 100644
--- a/src/core/MenuScreens.h
+++ b/src/core/MenuScreens.h
@@ -74,6 +74,7 @@ const CMenuScreen aScreens[] = {
MENUACTION_LANG_ITA, "FEL_ITA", SAVESLOT_NONE, MENUPAGE_NONE,
MENUACTION_LANG_SPA, "FEL_SPA", SAVESLOT_NONE, MENUPAGE_NONE,
#ifdef MORE_LANGUAGES
+ MENUACTION_LANG_PL, "FEL_POL", SAVESLOT_NONE, MENUPAGE_NONE,
MENUACTION_LANG_RUS, "FEL_RUS", SAVESLOT_NONE, MENUPAGE_NONE,
#endif
MENUACTION_CHANGEMENU, "FEDS_TB", SAVESLOT_NONE, MENUPAGE_NONE,