i18n: Complete Thai (th) localization and enable Thai in GUI (#13916)

* i18n: complete Thai (th) localization

* feat: fix thi translation

* feat: fix Thai language localization file

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
Terasit Juntarasombut
2026-06-01 17:11:14 +07:00
committed by GitHub
parent 752551292b
commit 91ce821959
3 changed files with 19690 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -8659,6 +8659,7 @@ wxString GUI_App::current_language_code_safe() const
{ "pt", "pt_BR", },
{ "lt", "lt_LT", },
{ "vi", "vi_VN", },
{ "th", "th_TH", },
};
wxString language_code = this->current_language_code().BeforeFirst('_');
auto it = mapping.find(language_code);

View File

@@ -152,7 +152,8 @@ wxBoxSizer *PreferencesDialog::create_item_language_combobox(wxString title, wxS
wxLANGUAGE_CATALAN,
wxLANGUAGE_PORTUGUESE_BRAZILIAN,
wxLANGUAGE_LITHUANIAN,
wxLANGUAGE_VIETNAMESE
wxLANGUAGE_VIETNAMESE,
wxLANGUAGE_THAI
};
auto translations = wxTranslations::Get()->GetAvailableTranslations(SLIC3R_APP_KEY);
@@ -259,6 +260,9 @@ wxBoxSizer *PreferencesDialog::create_item_language_combobox(wxString title, wxS
else if (vlist[i] == wxLocale::GetLanguageInfo(wxLANGUAGE_VIETNAMESE)) {
language_name = wxString::FromUTF8("Tiếng Việt");
}
else if (vlist[i] == wxLocale::GetLanguageInfo(wxLANGUAGE_THAI)) {
language_name = wxString::FromUTF8("\xE0\xB9\x84\xE0\xB8\x97\xE0\xB8\xA2");
}
if (app_config->get(param) == vlist[i]->CanonicalName) {
m_current_language_selected = i;