Add Turkish language option

This commit is contained in:
SoftFever 2023-09-05 20:34:38 +08:00
parent 4011a0d748
commit d4c70f5528
2 changed files with 11 additions and 1 deletions

View file

@ -58,6 +58,11 @@
"type": "po",
"pattern": "localization/i18n/zh_TW/OrcaSlicer_zh_TW.po",
"lang": "zh_TW"
},
{
"type": "po",
"pattern": "localization/i18n/tr/OrcaSlicer_tr.po",
"lang": "tr"
}
]
},

View file

@ -152,6 +152,9 @@ wxBoxSizer *PreferencesDialog::create_item_language_combobox(
else if (vlist[i] == wxLocale::GetLanguageInfo(wxLANGUAGE_UKRAINIAN)) {
language_name = wxString::FromUTF8("Ukrainian");
}
else if (vlist[i] == wxLocale::GetLanguageInfo(wxLANGUAGE_TURKISH)) {
language_name = wxString::FromUTF8("Turkish");
}
if (app_config->get(param) == vlist[i]->CanonicalName) {
m_current_language_selected = i;
@ -944,7 +947,9 @@ wxWindow* PreferencesDialog::create_general_page()
wxLANGUAGE_ITALIAN,
wxLANGUAGE_KOREAN,
wxLANGUAGE_RUSSIAN,
wxLANGUAGE_UKRAINIAN
wxLANGUAGE_UKRAINIAN,
wxLANGUAGE_TURKISH
};
auto translations = wxTranslations::Get()->GetAvailableTranslations(SLIC3R_APP_KEY);