FIX: the usage of translation macro

jira: [STUDIO-10847]
Change-Id: I3cb11f4f584c5f6bc42c8ae9a1464190f33c1774
This commit is contained in:
xin.zhang 2025-03-13 11:03:21 +08:00 committed by lane.wei
parent 1f6d8a8ef5
commit 8079244d15
1 changed files with 2 additions and 3 deletions

View File

@ -255,10 +255,9 @@ void TempInput::Warning(bool warn, WarningType type)
wxString warning_string;
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)
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);
wdialog->Fit();
wdialog->Popup();