Add Vietnamese translation (#10929)

* Add Vietnamese localization file for OrcaSlicer

* add Vietnamese po file

* Add Vietnamese language support in GUI (#11000)

- Added Vietnamese (vi_VN) to the language mapping in GUI_App.cpp.
- Updated Preferences.cpp to include Vietnamese in the language combobox and display its name in Vietnamese (Tiếng Việt).

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
Hải Nguyễn
2025-10-25 12:35:16 +07:00
committed by GitHub
parent 433c1feb47
commit 6725a9db89
4 changed files with 17277 additions and 0 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

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

View File

@@ -144,6 +144,7 @@ wxBoxSizer *PreferencesDialog::create_item_language_combobox(wxString title, wxS
wxLANGUAGE_CATALAN,
wxLANGUAGE_PORTUGUESE_BRAZILIAN,
wxLANGUAGE_LITHUANIAN,
wxLANGUAGE_VIETNAMESE
};
auto translations = wxTranslations::Get()->GetAvailableTranslations(SLIC3R_APP_KEY);
@@ -246,6 +247,9 @@ wxBoxSizer *PreferencesDialog::create_item_language_combobox(wxString title, wxS
else if (vlist[i] == wxLocale::GetLanguageInfo(wxLANGUAGE_LITHUANIAN)) {
language_name = wxString::FromUTF8("Lietuvių");
}
else if (vlist[i] == wxLocale::GetLanguageInfo(wxLANGUAGE_VIETNAMESE)) {
language_name = wxString::FromUTF8("Tiếng Việt");
}
if (app_config->get(param) == vlist[i]->CanonicalName) {
m_current_language_selected = i;