Commit a10bcccb authored by Mihai Herda's avatar Mihai Herda
Browse files

Return value string now also gets translated when entering debug mode.

parent 9631cfd7
......@@ -169,6 +169,8 @@ public class ProgramPanel extends JPanel {
.addComponent(result)
));
changeLanguage();
}
private void stepSizeInputActionPerformed() {
......@@ -475,7 +477,8 @@ public class ProgramPanel extends JPanel {
currentExecutionLine = logicFacade.getCurrentExecutionLines().getOrDefault(id, 0);
// show result
result.setText(RETURN + ": " + logicFacade.getReturnValue(id));
String returnString = getReturnString();
result.setText(returnString + ": " + logicFacade.getReturnValue(id));
result.updateUI();
// update stepSize
......@@ -606,6 +609,16 @@ public class ProgramPanel extends JPanel {
}
}
String getReturnString() {
LanguageFile languageFile = controlFacade.getLanguageFile();
if(languageFile == null) {
return RETURN;
}
else {
return languageFile.getTranslation("ui_return");
}
}
void changeLanguage() {
LanguageFile languageFile = controlFacade.getLanguageFile();
if (languageFile != null) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment