add: Ukrainian language to preferences settings

This commit is contained in:
Dmytro Chystiakov 2023-09-23 15:17:10 +03:00 committed by Lane.Wei
parent f6ea42bf53
commit b7bb3c5ae2
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -137,6 +137,9 @@ wxBoxSizer *PreferencesDialog::create_item_language_combobox(
else if (vlist[i] == wxLocale::GetLanguageInfo(wxLANGUAGE_ITALIAN)) {
language_name = wxString::FromUTF8("\x69\x74\x61\x6c\x69\x61\x6e\x6f");
}
else if (vlist[i] == wxLocale::GetLanguageInfo(wxLANGUAGE_UKRAINIAN)) {
language_name = wxString::FromUTF8("Ukrainian");
}
if (language == vlist[i]->CanonicalName) {
m_current_language_selected = i;
@ -925,6 +928,7 @@ wxWindow* PreferencesDialog::create_general_page()
wxLANGUAGE_HUNGARIAN,
wxLANGUAGE_JAPANESE,
wxLANGUAGE_ITALIAN
wxLANGUAGE_UKRAINIAN,
};
auto translations = wxTranslations::Get()->GetAvailableTranslations(SLIC3R_APP_KEY);