diff options
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/app.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/app/app.cpp b/src/app/app.cpp index 04c028d..e2405b8 100644 --- a/src/app/app.cpp +++ b/src/app/app.cpp @@ -1683,6 +1683,10 @@ char CApplication::GetLanguageChar() const case LANGUAGE_POLISH: langChar = 'P'; break; + + case LANGUAGE_RUSSIAN: + langChar = 'R'; + break; } return langChar; } @@ -1709,6 +1713,11 @@ bool CApplication::ParseLanguage(const std::string& str, Language& language) language = LANGUAGE_POLISH; return true; } + else if (str == "ru") + { + language = LANGUAGE_RUSSIAN; + return true; + } return false; } @@ -1742,6 +1751,10 @@ void CApplication::SetLanguage(Language language) case LANGUAGE_POLISH: locale = "pl_PL.utf8"; break; + + case LANGUAGE_RUSSIAN: + locale = "ru_RU.utf8"; + break; } if (locale.empty()) @@ -1772,6 +1785,10 @@ void CApplication::SetLanguage(Language language) { m_language = LANGUAGE_POLISH; } + else if (strncmp(envLang,"ru",2) == 0) + { + m_language = LANGUAGE_RUSSIAN; + } else { GetLogger()->Warn("Enviromnent locale ('%s') is not supported, setting default language\n", envLang); |