From fe374431bccd8bae32efd41e0e79dfc01a88371b Mon Sep 17 00:00:00 2001 From: Diego Villanueva Date: Sun, 28 Apr 2024 19:04:54 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Solved=20the=20string=20of=20the=20quest?= =?UTF-8?q?ions=20(copypaste=20bad=20=E2=98=B9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/templates/VideogamesReleaseDate.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/questiongenerator/src/main/java/templates/VideogamesReleaseDate.java b/questiongenerator/src/main/java/templates/VideogamesReleaseDate.java index 6599fbd8..e817f066 100644 --- a/questiongenerator/src/main/java/templates/VideogamesReleaseDate.java +++ b/questiongenerator/src/main/java/templates/VideogamesReleaseDate.java @@ -65,10 +65,14 @@ public void processResults() { Answer a = new Answer(publishDateLabel, AnswerCategory.GAMES_RELEASE, langCode); answers.add(a); + String questionString = ""; + if (langCode.equals("es")) - questions.add(new Question(a, "¿Qué compañía publicó " + videoGameLabel + "?", QuestionCategory.VIDEOGAMES, QuestionType.TEXT)); + questionString = spanishStringsIni[i%4] + videoGameLabel + spanishStringsFin[i%4]; else - questions.add(new Question(a, "Who published " + videoGameLabel + "?", QuestionCategory.VIDEOGAMES, QuestionType.TEXT)); + questionString = englishStringsIni[i%4] + videoGameLabel + englishStringsFin[i%4]; + + questions.add(new Question(a, questionString, QuestionCategory.VIDEOGAMES, QuestionType.TEXT)); } repository.saveAll(new ArrayList<>(answers));