From 2ba9d57e9ba1f668f56adf9e7920f609503452be Mon Sep 17 00:00:00 2001 From: jorg-vr Date: Tue, 25 Jun 2024 16:11:52 +0200 Subject: [PATCH] Revert motivational messages --- app/assets/javascripts/i18n/translations.json | 84 +++---------------- app/assets/javascripts/submission.ts | 2 +- config/locales/js/en.yml | 42 ++-------- config/locales/js/nl.yml | 42 ++-------- 4 files changed, 25 insertions(+), 145 deletions(-) diff --git a/app/assets/javascripts/i18n/translations.json b/app/assets/javascripts/i18n/translations.json index b190672aa8..d1a3f626c6 100644 --- a/app/assets/javascripts/i18n/translations.json +++ b/app/assets/javascripts/i18n/translations.json @@ -389,42 +389,12 @@ "submission-saved": "Submission saved", "submission-too-long": "Oops, something went wrong while saving your solution. Your solution is too long. Try to make it shorter and try again.", "submission_motivational_message": { - "1": "Code-tastic! You just crushed that exercise like a bug! 🐛", - "10": "You did it! That programming exercise may have been tough, but you persevered.", - "11": "👾 You've just defeated the Coding Boss! Level up, my friend!", - "12": "💪 Code muscles getting stronger! Keep flexing those programming skills!", - "13": "🎯 Bullseye! You hit the target with your coding precision. Well done!", - "14": "🎓 You've just earned your honorary degree in Exercise Crushing! Congrats!", - "15": "Awesome job! You're proving yourself to be a talented programmer.", - "16": "🌊 Surf's up, coder! You just rode that exercise like a pro!", - "17": "You're doing an excellent job! Keep pushing yourself to become an even better programmer.", - "18": "🍪 A coding cookie for you! Enjoy the sweet taste of success!", - "19": "🎮 You're a coding master! Keep coding and level up your skills!", - "2": "🚀 Houston, we have a programmer! Great job on that exercise!", - "20": "Keep up the great work! You're becoming a skilled programmer with every exercise you complete.", - "21": "🎉 Nailed it! Next!", - "22": "🚀 Blast off!", - "23": "💡 Bright move!", - "24": "🌟 Stellar!", - "25": "🦁 Roaring success!", - "26": "🔨 Hammered it!", - "27": "💻 Super coder!", - "28": "🏆 Woohoo!", - "29": "🎯 Bullseye!", - "3": "💻 Code Whisperer alert! You're making that computer sing!", - "30": "🍕 Pizza time!", - "31": "Congratulations on your success! Your dedication and hard work are paying off.", - "32": "Fantastic job! You're getting closer to becoming a coding master.", - "33": "🔥 On fire!", - "34": "Keep up the momentum! You're on the right track with your programming studies.", - "35": "🍪 Cookie time!", - "36": "🎸 Rock that code!", - "4": "🌟 You did it! Another exercise bites the dust! Keep rockin' that code!", - "5": "🤖 Beep boop! You've impressed the robots with your coding skills!", - "6": "🎉 Congratulations! You've just unlocked a new level in the coding game!", - "7": "Keep up the excellent work! You're mastering those programming skills.", - "8": "👍 You're a coding superstar! Keep up the great work!", - "9": "🔥 You're on fire! Keep up the great work and watch your coding skills soar!" + "1": "Congratulations!", + "2": "You did it!", + "3": "Keep up the good work!", + "4": "Nice!", + "5": "Good job!", + "6": "Well done!" }, "submissions": "submissions", "submissions_on": "submissions on", @@ -924,42 +894,12 @@ "submission-saved": "Oplossing opgeslagen", "submission-too-long": "Oeps, er ging iets fout bij het opslaan van je oplossing. Je oplossing is te lang. Maak ze korter en probeer opnieuw.", "submission_motivational_message": { - "1": "👾 Monsterprogrammeur! Je hebt die oefening helemaal verslonden!", - "10": "🎯 In de roos! Met jouw programmeervaardigheden raak je altijd het doel!", - "11": "Fantastisch gedaan! Je hebt deze oefening onder de knie.", - "12": "🤖 Beep boop! De robots zijn onder de indruk van jouw programmeerkunsten!", - "13": "🏰 Code-koning(in)!", - "14": "🔥 Je bent on fire! Ga zo door en je programmeerskills schieten omhoog!", - "15": "Voortreffelijk! Je hebt deze oefening goed aangepakt.", - "16": "Je bent echt goed in programmeren! Ga zo door.", - "17": "Perfect! Je hebt deze oefening helemaal correct opgelost.", - "18": "Prima werk! Je hebt deze oefening goed begrepen en opgelost.", - "19": "🎸 Rock die code! Je speelt de sterren van de hemel met je programmeervaardigheden!", - "2": "🚀 Super programmeur! Je hebt die oefening gelanceerd als een raket!", - "20": "Geweldige prestatie! Je hebt laten zien dat je een programmeertalent bent.", - "21": "🎉 Goed gedaan! Volgende!", - "22": "🚀 Lancering geslaagd!", - "23": "💡 Slimme zet!", - "24": "🌟 Schitterend!", - "25": "🔨 Klus geklaard!", - "26": "💻 Super coder!", - "27": "🏆 Hoppa!", - "28": "🎯 In de roos!", - "29": "🍟 Traktatie verdiend!", - "3": "💡 Eureka! Je hebt het licht gezien en die oefening opgelost! Ga zo door!", - "30": "🤖 Beep boop!", - "31": "🔥 On fire!", - "32": "🌈 Regenboog van succes!", - "33": "🍩 Donut tijd!", - "34": "🎸 Rock die code!", - "35": "Uitmuntend werk!", - "36": "Bravo! Je hebt deze oefening tot een goed einde gebracht.", - "4": "🌟 Schitterend! Je schittert als een ster in de programmeerhemel!", - "5": "👍 Goed gedaan! Je hebt die oefening als een pro opgelost!", - "6": "👏 Geweldig! Jij hebt deze oefening echt onder de knie!", - "7": "🤩 Geweldig werk! Jij verdient een staande ovatie!", - "8": "💻 Super coder! Je gaat door die oefeningen als een warm mes door de boter!", - "9": "Goed gedaan! Je hebt deze oefening met succes voltooid." + "1": "Proficiat!", + "2": "Goed bezig!", + "3": "Doe zo verder!", + "4": "Mooi!", + "5": "Puik werk!", + "6": "Goed gedaan!" }, "submissions": "oplossingen", "submissions_on": "ingediende oplossingen op", diff --git a/app/assets/javascripts/submission.ts b/app/assets/javascripts/submission.ts index aeaea84829..f6d7590bae 100644 --- a/app/assets/javascripts/submission.ts +++ b/app/assets/javascripts/submission.ts @@ -125,7 +125,7 @@ function initCorrectSubmissionToNextLink(status: string): void { return; } const message = document.getElementById("submission-motivational-message"); - const congrats = `js.submission_motivational_message.${Math.ceil(Math.random() * 36)}`; + const congrats = `js.submission_motivational_message.${Math.ceil(Math.random() * 6)}`; message.innerHTML = `