mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-10 05:52:44 +00:00
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:
committed by
GitHub
parent
752551292b
commit
91ce821959
19684
localization/i18n/th/OrcaSlicer_th.po
Normal file
19684
localization/i18n/th/OrcaSlicer_th.po
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user