Skip to content

Commit

Permalink
Fix English labels
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronHuemmecke committed Sep 6, 2018
1 parent f8af7af commit f0f6792
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
15 changes: 7 additions & 8 deletions src/main/Java/Views/QuizWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void actionPerformed(ActionEvent e)
}

firstQuiz = false;
start.setText(bundle.getString("stopVisualization"));
start.setText(LanguageManager.getLanguageManagerInstance().getResourceBundle("QuizWindow").getString("stopVisualization"));
}
else
{
Expand All @@ -201,7 +201,7 @@ public void actionPerformed(ActionEvent e)
algorithm3Button.setText(bundle.getString("algorithm3"));
algorithm4Button.setText(bundle.getString("algorithm4"));

start.setText(bundle.getString("nextAlgorithm"));
start.setText(LanguageManager.getLanguageManagerInstance().getResourceBundle("QuizWindow").getString("nextAlgorithm"));


}
Expand Down Expand Up @@ -298,12 +298,11 @@ public void reset()
algorithm4Button.setEnabled(true);
algorithm4Button.setBackground(new JButton().getBackground());

algorithm1Button.setText(bundle.getString("algorithm1"));
algorithm2Button.setText(bundle.getString("algorithm2"));
algorithm3Button.setText(bundle.getString("algorithm3"));
algorithm4Button.setText(bundle.getString("algorithm4"));
algorithm1Button.setText(LanguageManager.getLanguageManagerInstance().getResourceBundle("QuizWindow").getString("algorithm1"));
algorithm2Button.setText(LanguageManager.getLanguageManagerInstance().getResourceBundle("QuizWindow").getString("algorithm2"));
algorithm3Button.setText(LanguageManager.getLanguageManagerInstance().getResourceBundle("QuizWindow").getString("algorithm3"));
algorithm4Button.setText(LanguageManager.getLanguageManagerInstance().getResourceBundle("QuizWindow").getString("algorithm4"));

start.setText(bundle.getString("start"));
start.setText(LanguageManager.getLanguageManagerInstance().getResourceBundle("QuizWindow").getString("start"));
}

}
4 changes: 2 additions & 2 deletions src/main/Java/Views/VisualizerWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -872,15 +872,15 @@ public void actionPerformed(ActionEvent e)
{
if (paused == false)
{
pauseButton.setText(bundle.getString("continue"));
pauseButton.setText(LanguageManager.getLanguageManagerInstance().getResourceBundle("VisualizerWindow").getString("continue"));
paused = true;
visualizerPanel.setPause(true);

nextStepButton.setEnabled(true);
}
else
{
pauseButton.setText(bundle.getString("pause"));
pauseButton.setText(LanguageManager.getLanguageManagerInstance().getResourceBundle("VisualizerWindow").getString("pause"));
paused = false;
visualizerPanel.setPause(false);
nextStepButton.setEnabled(false);
Expand Down

0 comments on commit f0f6792

Please sign in to comment.