mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01:00
[i18n] enable Ukrainian in source
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
bdf63cf82c
commit
cc1244126c
|
@ -104,7 +104,7 @@ port = 7070
|
|||
# user = i2pd
|
||||
# pass = changeme
|
||||
## Select webconsole language
|
||||
## Currently supported only english (default) and russian languages
|
||||
## Currently supported english (default), russian and ukrainian languages
|
||||
# lang = english
|
||||
|
||||
[httpproxy]
|
||||
|
|
|
@ -19,7 +19,9 @@ namespace i18n
|
|||
{
|
||||
if (!lang.compare("russian"))
|
||||
i2p::context.SetLanguage (i2p::i18n::russian::GetLocale());
|
||||
else
|
||||
if (!lang.compare("ukrainian"))
|
||||
i2p::context.SetLanguage (i2p::i18n::ukrainian::GetLocale());
|
||||
else // fallback
|
||||
i2p::context.SetLanguage (i2p::i18n::english::GetLocale());
|
||||
}
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@ namespace i18n
|
|||
// Add localization here with language name as namespace
|
||||
namespace english { std::shared_ptr<const i2p::i18n::Locale> GetLocale (); }
|
||||
namespace russian { std::shared_ptr<const i2p::i18n::Locale> GetLocale (); }
|
||||
namespace ukrainian { std::shared_ptr<const i2p::i18n::Locale> GetLocale (); }
|
||||
|
||||
} // i18n
|
||||
} // i2p
|
||||
|
|
Loading…
Reference in a new issue