diff options
Diffstat (limited to 'src/app/app.cpp')
-rw-r--r-- | src/app/app.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/app/app.cpp b/src/app/app.cpp index 566be33..8b5533e 100644 --- a/src/app/app.cpp +++ b/src/app/app.cpp @@ -425,6 +425,16 @@ bool CApplication::Create() return false; } + if (GetProfile().GetLocalProfileString("Language", "Lang", path)) { + Language language; + if (ParseLanguage(path, language)) { + m_language = language; + GetLogger()->Error("Setting language '%s' from ini file\n", path.c_str()); + } else { + GetLogger()->Error("Invalid language '%s' in ini file\n", path.c_str()); + } + } + SetLanguage(m_language); //Create the sound instance. |