mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-08 00:01:09 +00:00
Update Translations + String improvements (#16142)
Co-authored-by: Alexandre Folle de Menezes <afmenez@gmail.com>
This commit is contained in:
co-authored by
Alexandre Folle de Menezes
parent
c1e6de7e4e
commit
eb5b9a77b9
@@ -273,7 +273,8 @@ void NetworkTestDialog::start_all_job_sequence()
|
||||
void NetworkTestDialog::start_test_url(TestJob job, wxString name, wxString url)
|
||||
{
|
||||
m_in_testing[job] = true;
|
||||
wxString info = wxString::Format("test %s start...", name);
|
||||
// TRN %s is the name of the tested website
|
||||
wxString info = wxString::Format(_L("test %s start..."), name);
|
||||
|
||||
update_status(job, info);
|
||||
|
||||
@@ -295,16 +296,16 @@ void NetworkTestDialog::start_test_url(TestJob job, wxString name, wxString url)
|
||||
}
|
||||
})
|
||||
.on_ip_resolve([this,name,job](std::string ip) {
|
||||
wxString ip_report = wxString::Format("test %s ip resolved = %s", name, ip);
|
||||
wxString ip_report = wxString::Format(_L("test %s ip resolved = %s"), name, ip);
|
||||
update_status(job, ip_report);
|
||||
})
|
||||
.on_error([this,name,job](std::string body, std::string error, unsigned int status) {
|
||||
wxString info = wxString::Format("status=%u, body=%s, error=%s", status, body, error);
|
||||
this->update_status(job, wxString::Format("test %s failed", name));
|
||||
this->update_status(job, wxString::Format(_L("test %s failed"), name));
|
||||
this->update_status(-1, info);
|
||||
}).perform_sync();
|
||||
if (result == 0) {
|
||||
update_status(job, wxString::Format("test %s ok", name));
|
||||
update_status(job, wxString::Format(_L("test %s ok"), name));
|
||||
}
|
||||
m_in_testing[job] = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user