diff --git a/cooperative_cuisine/pygame_2d_vis/gui.py b/cooperative_cuisine/pygame_2d_vis/gui.py index 9ba15e979f833fa2e2e18b97d0f2ad7174b2ba11..f0cb5e17f9f48b95aa6aa6ebd5862a7075ad0d5f 100644 --- a/cooperative_cuisine/pygame_2d_vis/gui.py +++ b/cooperative_cuisine/pygame_2d_vis/gui.py @@ -1126,8 +1126,13 @@ class PyGameGUI: def update_postgame_screen(self, state): score = state["score"] # self.score_conclusion.set_text(f"Your final score is {score}. Hurray!") - self.score_conclusion.set_text("translations.final_score", text_kwargs={"score": str(score)}) - self.level_name_label.set_text("translations.completed_level", text_kwargs={"level": str(self.level_info["name"])}) + self.score_conclusion.set_text( + "translations.final_score", text_kwargs={"score": str(score)} + ) + self.level_name_label.set_text( + "translations.completed_level", + text_kwargs={"level": str(self.level_info["name"])}, + ) served_meals = state["served_meals"] @@ -1434,7 +1439,7 @@ class PyGameGUI: (self.window_width / 5, height), ) label = pygame_gui.elements.UILabel( - text=meal + ":", + text=f"translations.{meal}", relative_rect=rect, manager=self.manager, container=container, @@ -1662,7 +1667,11 @@ class PyGameGUI: "translations.bots_to_be_added", text_kwargs={"number": str(self.number_bots_to_be_added)}, ) - text = "translations.split_players_yes" if self.split_players else "translations.split_players_no" + text = ( + "translations.split_players_yes" + if self.split_players + else "translations.split_players_no" + ) self.split_players_button.set_text(text) if self.multiple_keysets: diff --git a/cooperative_cuisine/pygame_2d_vis/locales/translations.de.json b/cooperative_cuisine/pygame_2d_vis/locales/translations.de.json index 363c5eafbea44ce27cea280418a32d3a1cea28aa..c51961e8cbea5dc8df92baa16a4e6e449a516026 100644 --- a/cooperative_cuisine/pygame_2d_vis/locales/translations.de.json +++ b/cooperative_cuisine/pygame_2d_vis/locales/translations.de.json @@ -25,6 +25,14 @@ "next_game": "Nächstes Level", "finish_study": "Studie Beenden", "thank_you": "Vielen Dank an der Teilnahme!", - "signal_supervisor": "Bitte gib dem Studienteilnehmer Bescheid, dass die Studie vorbei ist." + "signal_supervisor": "Bitte gib dem Studienteilnehmer Bescheid, dass die Studie vorbei ist.", + "Tomato Soup": "Tomatensuppe:", + "Onion Soup": "Zwiebelsuppe:", + "Burger": "Burger:", + "Pizza": "Pizza:", + "Fish And Chips": "Fish and Chips:", + "Chips": "Pommes", + "Salad": "Salat:", + "Fried Fish": "Backfisch:" } } \ No newline at end of file diff --git a/cooperative_cuisine/pygame_2d_vis/locales/translations.en.json b/cooperative_cuisine/pygame_2d_vis/locales/translations.en.json index 9a6803579f581f410ab8f32c54e7845bd54fbb6e..2e96d104dc5bd65de3bcc960c2e8db1b22d671d6 100644 --- a/cooperative_cuisine/pygame_2d_vis/locales/translations.en.json +++ b/cooperative_cuisine/pygame_2d_vis/locales/translations.en.json @@ -25,6 +25,14 @@ "next_game": "Next study", "finish_study": " Finish study", "thank_you": "Thank you for participating in this study!", - "signal_supervisor": " Please signal the study supervisor that the study is finished." + "signal_supervisor": " Please signal the study supervisor that the study is finished.", + "Tomato Soup": "Tomato Soup:", + "Onion Soup": "Onion Soup:", + "Burger": "Burger:", + "Pizza": "Pizza:", + "Fish And Chips": "Fish and Chips:", + "Chips": "Chips", + "Salad": "Salad:", + "Fried Fish": "Fried Fish:" } } \ No newline at end of file