mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
[i18n] rework localization system
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
1a4250d8cc
commit
779f2fa451
7 changed files with 111 additions and 109 deletions
|
@ -32,6 +32,7 @@
|
|||
#include "UPnP.h"
|
||||
#include "Timestamp.h"
|
||||
#include "util.h"
|
||||
#include "I18N.h"
|
||||
|
||||
namespace i2p
|
||||
{
|
||||
|
@ -345,10 +346,7 @@ namespace util
|
|||
}
|
||||
|
||||
std::string httpLang; i2p::config::GetOption("http.lang", httpLang);
|
||||
if (!httpLang.compare("russian"))
|
||||
i2p::context.SetLanguage (eRussian);
|
||||
else
|
||||
i2p::context.SetLanguage (eEnglish);
|
||||
i2p::i18n::SetLanguage(httpLang);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue