mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-05 20:36:06 +08:00
FIX: display translated text instead of raw text in PrintOptionsDialog
jira: STUDIO-8376 Change-Id: Ie493a8395e1148c80cb9e7dbf74af824003b41ba
This commit is contained in:
parent
deb6717e50
commit
698365f6ef
@ -441,6 +441,8 @@ PrinterPartsDialog::PrinterPartsDialog(wxWindow* parent)
|
||||
{
|
||||
nozzle_type_map[0] = "hardened_steel";
|
||||
nozzle_type_map[1] = "stainless_steel";
|
||||
nozzle_type_map_tr[0] = _L("Hardened Steel");
|
||||
nozzle_type_map_tr[1] = _L("Stainless Steel");
|
||||
|
||||
nozzle_stainless_diameter_map[0] = 0.2;
|
||||
nozzle_stainless_diameter_map[1] = 0.4;
|
||||
@ -467,8 +469,8 @@ PrinterPartsDialog::PrinterPartsDialog(wxWindow* parent)
|
||||
nozzle_type->Wrap(-1);
|
||||
|
||||
nozzle_type_checkbox = new ComboBox(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(FromDIP(140), -1), 0, NULL, wxCB_READONLY);
|
||||
nozzle_type_checkbox->Append(_L("Stainless Steel"));
|
||||
nozzle_type_checkbox->Append(_L("Hardened Steel"));
|
||||
nozzle_type_checkbox->Append(nozzle_type_map_tr[0]);
|
||||
nozzle_type_checkbox->Append(nozzle_type_map_tr[1]);
|
||||
nozzle_type_checkbox->SetSelection(0);
|
||||
|
||||
|
||||
@ -605,7 +607,7 @@ bool PrinterPartsDialog::Show(bool show)
|
||||
|
||||
for (int i=0; i < nozzle_type_map.size(); i++)
|
||||
{
|
||||
nozzle_type_checkbox->Append( nozzle_type_map[i] );
|
||||
nozzle_type_checkbox->Append(nozzle_type_map_tr[i]);
|
||||
if (nozzle_type_map[i] == type) {
|
||||
nozzle_type_checkbox->SetSelection(i);
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ protected:
|
||||
ComboBox* nozzle_diameter_checkbox;
|
||||
std::string last_nozzle_type;
|
||||
std::map<int, std::string> nozzle_type_map;
|
||||
std::map<int, wxString> nozzle_type_map_tr;
|
||||
std::map<int, float> nozzle_stainless_diameter_map;
|
||||
std::map<int, float> nozzle_hard_diameter_map;
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user