Skip to content

Commit

Permalink
Add Turkish language option
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftFever committed Sep 5, 2023
1 parent 4011a0d commit d4c70f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions localazy.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
},
Expand Down
7 changes: 6 additions & 1 deletion src/slic3r/GUI/Preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d4c70f5

Please sign in to comment.