mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
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:
17272
localization/i18n/vi/OrcaSlicer_vi.po
Normal file
17272
localization/i18n/vi/OrcaSlicer_vi.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
resources/i18n/vi/OrcaSlicer.mo
Normal file
BIN
resources/i18n/vi/OrcaSlicer.mo
Normal file
Binary file not shown.
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user