mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 03:37:49 +02:00
Support multilang, update code
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
0e68fe4a57
commit
80b44fc9a9
10 changed files with 124 additions and 28 deletions
|
@ -343,6 +343,13 @@ namespace util
|
|||
LogPrint(eLogInfo, "Daemon: using hidden mode");
|
||||
i2p::data::netdb.SetHidden(true);
|
||||
}
|
||||
|
||||
std::string httpLang; i2p::config::GetOption("http.lang", httpLang);
|
||||
if (!httpLang.compare("russian"))
|
||||
i2p::context.SetLanguage (eRussian);
|
||||
else
|
||||
i2p::context.SetLanguage (eEnglish);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue