mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-07 03:34:15 +00: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
|
# 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…
x
Reference in New Issue
Block a user