ENH: refine translations

Signed-off-by: Stone Li <stone.li@bambulab.com>
Change-Id: I352176fad29c0afc298bb5f9e591b4102521497e
This commit is contained in:
Stone Li 2022-08-05 12:06:18 +08:00 committed by Lane.Wei
parent 11a7fe1f32
commit 98b612bc2e
14 changed files with 322 additions and 185 deletions

View file

@ -2834,6 +2834,7 @@ void DeviceManager::clean_user_info()
BOOST_LOG_TRIVIAL(trace) << "DeviceManager::clean_user_info";
// reset selected_machine
selected_machine = "";
local_selected_machine = "";
// clean access code
for (auto it = userMachineList.begin(); it != userMachineList.end(); it++) {

View file

@ -101,10 +101,10 @@ void PrintJob::process()
int curr_percent = 10;
if (this->connection_type == "lan") {
msg = sending_over_lan_str;
msg = _L("Sending print job over LAN");
}
else {
msg = sending_over_cloud_str;
msg = _L("Sending print job through cloud service");
}
int result = -1;

View file

@ -84,7 +84,7 @@ void UpgradeNetworkJob::process()
}
if (result < 0) {
update_status(curr_percent, _L("Download failed"));
update_status(0, _L("Download failed"));
wxCommandEvent event(EVT_UPGRADE_NETWORK_FAILED);
event.SetEventObject(m_event_handle);
wxPostEvent(m_event_handle, event);
@ -108,7 +108,7 @@ void UpgradeNetworkJob::process()
}
if (result != 0) {
update_status(curr_percent, _L("Install failed"));
update_status(0, _L("Install failed"));
wxCommandEvent event(EVT_UPGRADE_NETWORK_FAILED);
event.SetEventObject(m_event_handle);
wxPostEvent(m_event_handle, event);

View file

@ -88,7 +88,7 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
auto sizer = new wxBoxSizer(wxVERTICAL);
auto line_sizer = new wxBoxSizer(wxHORIZONTAL);
m_cb_spaghetti = new CheckBox(parent);
auto text_spaghetti = new wxStaticText(parent, wxID_ANY, _L("spaghetti Detection"));
auto text_spaghetti = new wxStaticText(parent, wxID_ANY, _L("Spaghetti Detection"));
text_spaghetti->SetFont(Label::Body_14);
line_sizer->Add(FromDIP(5), 0, 0, 0);
line_sizer->Add(m_cb_spaghetti, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));