Update locale

This commit is contained in:
SoftFever
2025-10-26 10:40:22 +08:00
parent 3079ef1db2
commit ca064dee1d
25 changed files with 83015 additions and 29014 deletions

View File

@@ -264,9 +264,9 @@ wxBoxSizer* FilamentPickerDialog::CreateInfoSection()
m_label_preview_color = new wxStaticText(this, wxID_ANY, _L("Custom Color"),
wxDefaultPosition, wxDefaultSize,
wxST_ELLIPSIZE_END);
m_label_preview_idx = new wxStaticText(this, wxID_ANY, _L(""),
m_label_preview_idx = new wxStaticText(this, wxID_ANY, "",
wxDefaultPosition, wxDefaultSize); // No size limit, no ellipsis
m_label_preview_type = new wxStaticText(this, wxID_ANY, _L(""),
m_label_preview_type = new wxStaticText(this, wxID_ANY, "",
wxDefaultPosition, wxSize(FromDIP(220), FromDIP(16)),
wxST_ELLIPSIZE_END);
@@ -504,7 +504,7 @@ void FilamentPickerDialog::UpdateCustomColorPreview(const wxColour& custom_color
// Update preview labels for custom color
m_label_preview_color->SetLabel(custom_color.GetAsString(wxC2S_HTML_SYNTAX));
m_label_preview_idx->SetLabel(_L(""));
m_label_preview_idx->SetLabel("");
Layout();
}

View File

@@ -1211,7 +1211,7 @@ bool Sidebar::priv::switch_diameter(bool single)
}
auto preset = wxGetApp().preset_bundle->get_similar_printer_preset({}, diameter.ToStdString());
if (preset == nullptr) {
MessageDialog dlg(this->plater, _L(""), _L(""));
MessageDialog dlg(this->plater, "", "");
dlg.ShowModal();
return false;
}
@@ -8537,7 +8537,7 @@ void Plater::priv::on_select_preset(wxCommandEvent &evt)
if (combo->is_selected_printer_model()) {
auto preset = wxGetApp().preset_bundle->get_similar_printer_preset(preset_name, {});
if (preset == nullptr) {
MessageDialog dlg(this->sidebar, _L(""), _L(""));
MessageDialog dlg(this->sidebar, "", "");
dlg.ShowModal();
}
preset->is_visible = true; // force visible