Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Matena <lukasmatena@seznam.cz>2020-03-02 11:41:54 +0300
committerLukas Matena <lukasmatena@seznam.cz>2020-03-03 12:54:17 +0300
commit8b16b2c12e241919984558134e7af7f571c26d65 (patch)
tree3d050d6ebfad8b16c7dfcff5242ea87c618a68af /src/slic3r/GUI/BonjourDialog.cpp
parenta256cc95149c9fbac2a13bdd0ab8aecd23480285 (diff)
Fixing wxString::Format encoding mismatches (part 1)
Diffstat (limited to 'src/slic3r/GUI/BonjourDialog.cpp')
-rw-r--r--src/slic3r/GUI/BonjourDialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slic3r/GUI/BonjourDialog.cpp b/src/slic3r/GUI/BonjourDialog.cpp
index 0e05a517c..42750885c 100644
--- a/src/slic3r/GUI/BonjourDialog.cpp
+++ b/src/slic3r/GUI/BonjourDialog.cpp
@@ -215,14 +215,14 @@ void BonjourDialog::on_reply(BonjourReplyEvent &e)
void BonjourDialog::on_timer(wxTimerEvent &)
{
- const auto search_str = _(L("Searching for devices"));
+ const auto search_str = _utf8(L("Searching for devices"));
if (timer_state > 0) {
const std::string dots(timer_state, '.');
- label->SetLabel(wxString::Format("%s %s", search_str, dots));
+ label->SetLabel(wxString::FromUTF8((boost::format("%1% %2%") % search_str % dots).str()));
timer_state = (timer_state) % 3 + 1;
} else {
- label->SetLabel(wxString::Format("%s: %s", search_str, _(L("Finished"))+"."));
+ label->SetLabel(wxString::FromUTF8((boost::format("%1%: %2%") % search_str % (_utf8(L("Finished"))+".")).str()));
timer->Stop();
}
}