mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
[i18n] rework localization system
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user