Skip to content

Commit

Permalink
Merge pull request #5644 from dodona-edu/enhance/revert-motivational-…
Browse files Browse the repository at this point in the history
…message

Revert to original motivational messages
  • Loading branch information
jorg-vr authored Jun 26, 2024
2 parents 6b2ceb3 + 2ba9d57 commit aad8e5d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 145 deletions.
84 changes: 12 additions & 72 deletions app/assets/javascripts/i18n/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/submission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,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 = `
<div class="callout callout-success mt-0" role="alert">
<span>${i18n.t(congrats)}</span>
Expand Down
42 changes: 6 additions & 36 deletions config/locales/js/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,42 +189,12 @@ en:
copy_to_submit: Finalize and submit
overwrite_code: Do you want to overwrite the code in the sandbox with your latest changes?
submission_motivational_message:
1: "Code-tastic! You just crushed that exercise like a bug! 🐛"
2: "🚀 Houston, we have a programmer! Great job on that exercise!"
3: "💻 Code Whisperer alert! You're making that computer sing!"
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!"
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!"
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!"
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!"
1: "Congratulations!"
2: "You did it!"
3: "Keep up the good work!"
4: "Nice!"
5: "Good job!"
6: "Well done!"
dropdown:
search: Search
multi:
Expand Down
42 changes: 6 additions & 36 deletions config/locales/js/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,42 +189,12 @@ nl:
copy_to_submit: Naar indienbox
overwrite_code: Wil je de code in de sandbox overschrijven met je laatste aanpassingen?
submission_motivational_message:
1: "👾 Monsterprogrammeur! Je hebt die oefening helemaal verslonden!"
2: "🚀 Super programmeur! Je hebt die oefening gelanceerd als een raket!"
3: "💡 Eureka! Je hebt het licht gezien en die oefening opgelost! Ga zo door!"
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."
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!"
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!"
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."
1: "Proficiat!"
2: "Goed bezig!"
3: "Doe zo verder!"
4: "Mooi!"
5: "Puik werk!"
6: "Goed gedaan!"
dropdown:
search: Zoeken
multi:
Expand Down

0 comments on commit aad8e5d

Please sign in to comment.