Fixed localization of status bar updates during the slicing process.
This commit is contained in:
parent
92ba75ed75
commit
54f40fd2d9
@ -82,14 +82,13 @@ void BackgroundSlicingProcess::process_fff()
|
||||
std::string export_path = m_fff_print->print_statistics().finalize_output_path(m_export_path);
|
||||
if (copy_file(m_temp_output_path, export_path) != 0)
|
||||
throw std::runtime_error("Copying of the temporary G-code to the output G-code failed");
|
||||
m_print->set_status(95, L("Running post-processing scripts"));
|
||||
m_print->set_status(95, _(L("Running post-processing scripts")).ToUTF8().data());
|
||||
run_post_process_scripts(export_path, m_fff_print->config());
|
||||
// #ys_FIXME_localization
|
||||
m_print->set_status(100, L("G-code file exported to ") + export_path);
|
||||
m_print->set_status(100, (boost::format(_(L("G-code file exported to %1%")).ToUTF8().data()) % export_path).str());
|
||||
} else if (! m_upload_job.empty()) {
|
||||
prepare_upload();
|
||||
} else {
|
||||
m_print->set_status(100, L("Slicing complete"));
|
||||
m_print->set_status(100, _(L("Slicing complete")).ToUTF8().data());
|
||||
}
|
||||
this->set_step_done(bspsGCodeFinalize);
|
||||
}
|
||||
@ -104,11 +103,11 @@ void BackgroundSlicingProcess::process_sla()
|
||||
const std::string export_path = m_sla_print->print_statistics().finalize_output_path(m_export_path);
|
||||
m_sla_print->export_raster(export_path);
|
||||
// #ys_FIXME_localization
|
||||
m_print->set_status(100, L("Masked SLA file exported to ") + export_path);
|
||||
m_print->set_status(100, (boost::format(_(L("Masked SLA file exported to %1%")).ToUTF8().data()) % export_path).str());
|
||||
} else if (! m_upload_job.empty()) {
|
||||
prepare_upload();
|
||||
} else {
|
||||
m_print->set_status(100, L("Slicing complete"));
|
||||
m_print->set_status(100, _(L("Slicing complete")).ToUTF8().data());
|
||||
}
|
||||
this->set_step_done(bspsGCodeFinalize);
|
||||
}
|
||||
@ -397,9 +396,9 @@ void BackgroundSlicingProcess::prepare_upload()
|
||||
/ boost::filesystem::unique_path("." SLIC3R_APP_KEY ".upload.%%%%-%%%%-%%%%-%%%%");
|
||||
|
||||
if (m_print == m_fff_print) {
|
||||
m_print->set_status(95, L("Running post-processing scripts"));
|
||||
m_print->set_status(95, _(L("Running post-processing scripts")).ToUTF8().data());
|
||||
if (copy_file(m_temp_output_path, source_path.string()) != 0) {
|
||||
throw std::runtime_error("Copying of the temporary G-code to the output G-code failed");
|
||||
throw std::runtime_error(_(L("Copying of the temporary G-code to the output G-code failed")));
|
||||
}
|
||||
run_post_process_scripts(source_path.string(), m_fff_print->config());
|
||||
m_upload_job.upload_data.upload_path = m_fff_print->print_statistics().finalize_output_path(m_upload_job.upload_data.upload_path.string());
|
||||
@ -409,7 +408,7 @@ void BackgroundSlicingProcess::prepare_upload()
|
||||
}
|
||||
|
||||
// #ys_FIXME_localization
|
||||
m_print->set_status(100, (boost::format(L("Scheduling upload to `%1%`. See Window -> Print Host Upload Queue")) % m_upload_job.printhost->get_host()).str());
|
||||
m_print->set_status(100, (boost::format(_(L("Scheduling upload to `%1%`. See Window -> Print Host Upload Queue")).ToUTF8().data()) % m_upload_job.printhost->get_host()).str());
|
||||
|
||||
m_upload_job.upload_data.source_path = std::move(source_path);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user