[i18n] enable Ukrainian in source

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1660/head
R4SAS 3 years ago
parent bdf63cf82c
commit cc1244126c
No known key found for this signature in database
GPG Key ID: 66F6C87B98EBCFE2

@ -104,7 +104,7 @@ port = 7070
# user = i2pd # user = i2pd
# pass = changeme # pass = changeme
## Select webconsole language ## Select webconsole language
## Currently supported only english (default) and russian languages ## Currently supported english (default), russian and ukrainian languages
# lang = english # lang = english
[httpproxy] [httpproxy]

@ -19,7 +19,9 @@ namespace i18n
{ {
if (!lang.compare("russian")) if (!lang.compare("russian"))
i2p::context.SetLanguage (i2p::i18n::russian::GetLocale()); 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()); i2p::context.SetLanguage (i2p::i18n::english::GetLocale());
} }

@ -58,6 +58,7 @@ namespace i18n
// Add localization here with language name as namespace // Add localization here with language name as namespace
namespace english { std::shared_ptr<const i2p::i18n::Locale> GetLocale (); } namespace english { std::shared_ptr<const i2p::i18n::Locale> GetLocale (); }
namespace russian { 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 } // i18n
} // i2p } // i2p

Loading…
Cancel
Save