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

@ -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);