mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Initial Add of Brazilian Portuguese translation (#5043)
Team: https://github.com/DvoraGames https://github.com/jcalmeida85 https://github.com/ramorimdias https://github.com/Caminhaleonel
This commit is contained in:
committed by
GitHub
parent
e5671c505d
commit
add3040f68
@@ -6027,6 +6027,7 @@ wxString GUI_App::current_language_code_safe() const
|
||||
{ "zh", "zh_CN", },
|
||||
{ "ru", "ru_RU", },
|
||||
{ "tr", "tr_TR", },
|
||||
{ "pt", "pt_BR", },
|
||||
};
|
||||
wxString language_code = this->current_language_code().BeforeFirst('_');
|
||||
auto it = mapping.find(language_code);
|
||||
|
||||
@@ -173,6 +173,9 @@ wxBoxSizer *PreferencesDialog::create_item_language_combobox(
|
||||
else if (vlist[i] == wxLocale::GetLanguageInfo(wxLANGUAGE_CATALAN)) {
|
||||
language_name = wxString::FromUTF8("Catalan");
|
||||
}
|
||||
else if (vlist[i] == wxLocale::GetLanguageInfo(wxLANGUAGE_PORTUGUESE_BRAZILIAN)) {
|
||||
language_name = wxString::FromUTF8("Português (Brasil)");
|
||||
}
|
||||
|
||||
if (app_config->get(param) == vlist[i]->CanonicalName) {
|
||||
m_current_language_selected = i;
|
||||
@@ -986,7 +989,8 @@ wxWindow* PreferencesDialog::create_general_page()
|
||||
wxLANGUAGE_UKRAINIAN,
|
||||
wxLANGUAGE_TURKISH,
|
||||
wxLANGUAGE_POLISH,
|
||||
wxLANGUAGE_CATALAN
|
||||
wxLANGUAGE_CATALAN,
|
||||
wxLANGUAGE_PORTUGUESE_BRAZILIAN
|
||||
};
|
||||
|
||||
auto translations = wxTranslations::Get()->GetAvailableTranslations(SLIC3R_APP_KEY);
|
||||
|
||||
Reference in New Issue
Block a user