mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
FIX: the usage of translation macro
jira: [STUDIO-10847] Change-Id: I3cb11f4f584c5f6bc42c8ae9a1464190f33c1774 (cherry picked from commit 8079244d15a5eabe4d58cda1af01c93e05b2f7ac)
This commit is contained in:
@@ -255,10 +255,9 @@ void TempInput::Warning(bool warn, WarningType type)
|
|||||||
|
|
||||||
wxString warning_string;
|
wxString warning_string;
|
||||||
if (type == WarningType::WARNING_TOO_HIGH)
|
if (type == WarningType::WARNING_TOO_HIGH)
|
||||||
warning_string = _L("The maximum temperature cannot exceed " + wxString::Format("%d", max_temp));
|
warning_string = _L("The maximum temperature cannot exceed ") + wxString::Format("%d", max_temp);
|
||||||
else if (type == WarningType::WARNING_TOO_LOW)
|
else if (type == WarningType::WARNING_TOO_LOW)
|
||||||
warning_string = _L("The minmum temperature should not be less than " + wxString::Format("%d", max_temp));
|
warning_string = _L("The minmum temperature should not be less than ") + wxString::Format("%d", min_temp);
|
||||||
|
|
||||||
warning_text->SetLabel(warning_string);
|
warning_text->SetLabel(warning_string);
|
||||||
wdialog->Fit();
|
wdialog->Fit();
|
||||||
wdialog->Popup();
|
wdialog->Popup();
|
||||||
|
|||||||
Reference in New Issue
Block a user