Browse Source

[i18n] enable Ukrainian in source

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1660/head
R4SAS 3 years ago
parent
commit
cc1244126c
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 2
      contrib/i2pd.conf
  2. 4
      i18n/I18N.h
  3. 1
      i18n/I18N_langs.h

2
contrib/i2pd.conf

@ -104,7 +104,7 @@ port = 7070 @@ -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]

4
i18n/I18N.h

@ -19,7 +19,9 @@ namespace i18n @@ -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());
}

1
i18n/I18N_langs.h

@ -58,6 +58,7 @@ namespace i18n @@ -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…
Cancel
Save