Skip to content

Commit b28e8db

Browse files
authored
Add missed frontend terms for assessment section (alexmojaki#433)
1 parent 7ad8711 commit b28e8db

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

frontend/src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ const Messages = (
203203
<div className="card-body">
204204
<details>
205205
<summary>
206-
On the bright side, your code passed {section.messages.length} test(s)!
206+
{_.template(terms.assessment_passed_tests)({ num: section.messages.length })}
207207
</summary>
208208
<br/>
209209
<SectionMessages section={section}/>
@@ -217,7 +217,7 @@ const Messages = (
217217
} else {
218218
return <div key={section.type}>
219219
<div className="alert alert-warning" role="alert">
220-
Found the following generic problem(s) in your code:
220+
{terms.assessment_lint}
221221
</div>
222222
<SectionMessages section={section}/>
223223
</div>

frontend/src/english_terms.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@
6666
"click_to_expand": "Click to expand",
6767
"assessment": "Assessment",
6868
"assessment_description": "When you run code that doesn't pass the current step, this section will *sometimes* explain what's wrong.",
69+
"assessment_passed_tests": "On the bright side, your code passed ${num} test(s)!",
70+
"assessment_lint": "Found the following generic problem(s) in your code:",
6971
"requirements": "Requirements",
7072
"requirements_description": "You need to run some code according to the instructions above. In case those aren't clear enough, here's some extra clarification:",
7173
"exercise_requirement": "This step is an exercise. You need to figure out what code will produce the correct result. Many different correct answers are possible.",

translations/english.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19646,6 +19646,12 @@ msgstr "Assessment"
1964619646
msgid "frontend.assessment_description"
1964719647
msgstr "When you run code that doesn't pass the current step, this section will *sometimes* explain what's wrong."
1964819648

19649+
msgid "frontend.assessment_lint"
19650+
msgstr "Found the following generic problem(s) in your code:"
19651+
19652+
msgid "frontend.assessment_passed_tests"
19653+
msgstr "On the bright side, your code passed ${num} test(s)!"
19654+
1964919655
msgid "frontend.cancel"
1965019656
msgstr "Cancel"
1965119657

196 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)