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 { ...@@ -169,6 +169,8 @@ public class ProgramPanel extends JPanel {
.addComponent(result) .addComponent(result)
)); ));
changeLanguage();
} }
private void stepSizeInputActionPerformed() { private void stepSizeInputActionPerformed() {
...@@ -475,7 +477,8 @@ public class ProgramPanel extends JPanel { ...@@ -475,7 +477,8 @@ public class ProgramPanel extends JPanel {
currentExecutionLine = logicFacade.getCurrentExecutionLines().getOrDefault(id, 0); currentExecutionLine = logicFacade.getCurrentExecutionLines().getOrDefault(id, 0);
// show result // show result
result.setText(RETURN + ": " + logicFacade.getReturnValue(id)); String returnString = getReturnString();
result.setText(returnString + ": " + logicFacade.getReturnValue(id));
result.updateUI(); result.updateUI();
// update stepSize // update stepSize
...@@ -605,6 +608,16 @@ public class ProgramPanel extends JPanel { ...@@ -605,6 +608,16 @@ public class ProgramPanel extends JPanel {
return 0; return 0;
} }
} }
String getReturnString() {
LanguageFile languageFile = controlFacade.getLanguageFile();
if(languageFile == null) {
return RETURN;
}
else {
return languageFile.getTranslation("ui_return");
}
}
void changeLanguage() { void changeLanguage() {
LanguageFile languageFile = controlFacade.getLanguageFile(); LanguageFile languageFile = controlFacade.getLanguageFile();
......
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