mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +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
|
@ -29,7 +29,7 @@ namespace i2p
|
|||
RouterContext::RouterContext ():
|
||||
m_LastUpdateTime (0), m_AcceptsTunnels (true), m_IsFloodfill (false),
|
||||
m_ShareRatio (100), m_Status (eRouterStatusUnknown), m_StatusV6 (eRouterStatusUnknown),
|
||||
m_Error (eRouterErrorNone), m_NetID (I2PD_NET_ID)
|
||||
m_Error (eRouterErrorNone), m_NetID (I2PD_NET_ID), m_Language (eEnglish)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -916,6 +916,11 @@ namespace i2p
|
|||
}
|
||||
}
|
||||
|
||||
void RouterContext::SetLanguage (Lang language)
|
||||
{
|
||||
m_Language = language;
|
||||
}
|
||||
|
||||
i2p::crypto::X25519Keys& RouterContext::GetStaticKeys ()
|
||||
{
|
||||
if (!m_StaticKeys)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue