mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-19 17:02:08 +00:00
Localizations refactor (#14254)
This commit is contained in:
@@ -516,7 +516,7 @@ void PrintingTaskPanel::create_panel(wxWindow* parent)
|
||||
m_panel_printing_title = new wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(-1, PAGE_TITLE_HEIGHT), wxTAB_TRAVERSAL);
|
||||
m_panel_printing_title->SetBackgroundColour(STATUS_TITLE_BG);
|
||||
|
||||
m_staticText_printing = new wxStaticText(m_panel_printing_title, wxID_ANY ,_L("Printing Progress"));
|
||||
m_staticText_printing = new wxStaticText(m_panel_printing_title, wxID_ANY ,_L("Printing progress"));
|
||||
m_staticText_printing->Wrap(-1);
|
||||
//m_staticText_printing->SetFont(PAGE_TITLE_FONT);
|
||||
m_staticText_printing->SetForegroundColour(PAGE_TITLE_FONT_COL);
|
||||
@@ -878,7 +878,7 @@ void PrintingTaskPanel::create_panel(wxWindow* parent)
|
||||
m_request_failed_panel = new wxPanel(parent, wxID_ANY);
|
||||
m_request_failed_panel->SetBackgroundColour(*wxWHITE);
|
||||
wxBoxSizer *static_request_failed_panel_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
m_request_failed_info = new wxStaticText(m_request_failed_panel, wxID_ANY, _L("You have completed printing the mall model, \nbut the synchronization of rating information has failed."), wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_request_failed_info = new wxStaticText(m_request_failed_panel, wxID_ANY, _L("You have completed printing the mall model, \nbut synchronizing rating information has failed."), wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_request_failed_info->Wrap(-1);
|
||||
m_request_failed_info->SetForegroundColour(*wxRED);
|
||||
m_request_failed_info->SetFont(::Label::Body_10);
|
||||
@@ -3459,8 +3459,8 @@ void StatusPanel::update_ams_control_state(std::string ams_id, std::string slot_
|
||||
}
|
||||
|
||||
if (ams_id.empty() || slot_id.empty()) {
|
||||
load_error_info = _L("Choose an AMS slot then press \"Load\" or \"Unload\" button to automatically load or unload filaments.");
|
||||
unload_error_info = _L("Choose an AMS slot then press \"Load\" or \"Unload\" button to automatically load or unload filaments.");
|
||||
load_error_info = _L("Choose an AMS slot then press \"Load\" or \"Unload\" button to automatically load or unload filament.");
|
||||
unload_error_info = _L("Choose an AMS slot then press \"Load\" or \"Unload\" button to automatically load or unload filament.");
|
||||
} else if (ams_id == std::to_string(VIRTUAL_TRAY_MAIN_ID) || ams_id == std::to_string(VIRTUAL_TRAY_DEPUTY_ID)) {
|
||||
for (auto ext : obj->GetExtderSystem()->GetExtruders()) {
|
||||
if (ext.GetSlotNow().ams_id == ams_id && ext.GetSlotNow().slot_id == slot_id)
|
||||
@@ -3480,14 +3480,14 @@ void StatusPanel::update_ams_control_state(std::string ams_id, std::string slot_
|
||||
auto ams_item = obj->GetFilaSystem()->GetAmsById(ams_id);
|
||||
if (!ams_item)
|
||||
{
|
||||
load_error_info = _L("Choose an AMS slot then press \"Load\" or \"Unload\" button to automatically load or unload filaments.");
|
||||
load_error_info = _L("Choose an AMS slot then press \"Load\" or \"Unload\" button to automatically load or unload filament.");
|
||||
}
|
||||
else
|
||||
{
|
||||
auto tray_item = ams_item->GetTray(slot_id);
|
||||
if (!tray_item)
|
||||
{
|
||||
load_error_info = _L("Choose an AMS slot then press \"Load\" or \"Unload\" button to automatically load or unload filaments.");
|
||||
load_error_info = _L("Choose an AMS slot then press \"Load\" or \"Unload\" button to automatically load or unload filament.");
|
||||
}
|
||||
else if (!tray_item->is_exists)
|
||||
{
|
||||
@@ -3671,7 +3671,7 @@ void StatusPanel::update_subtask(MachineObject *obj)
|
||||
if (obj->queue_number <= 0) {
|
||||
prepare_text = wxString::Format(_L("Cloud Slicing..."));
|
||||
} else {
|
||||
prepare_text = wxString::Format(_L("In Cloud Slicing Queue, there are %s tasks ahead."), std::to_string(obj->queue_number));
|
||||
prepare_text = wxString::Format(_L("In Cloud Slicing Queue, there are %s tasks ahead of you."), std::to_string(obj->queue_number));
|
||||
show_percent = false;
|
||||
}
|
||||
} else
|
||||
@@ -4548,7 +4548,7 @@ void StatusPanel::on_ams_refresh_rfid(wxCommandEvent &event)
|
||||
}
|
||||
|
||||
if (has_filament_at_extruder) {
|
||||
MessageDialog msg_dlg(nullptr, _L("Cannot read filament info: the filament is loaded to the tool head,please unload the filament and try again."), wxEmptyString,
|
||||
MessageDialog msg_dlg(nullptr, _L("Cannot read filament info: the filament is loaded to the tool head. Please unload the filament and try again."), wxEmptyString,
|
||||
wxICON_WARNING | wxYES);
|
||||
msg_dlg.ShowModal();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user