Skip to content

Commit edbfa00

Browse files
committed
Move remaining side content strings
1 parent c579714 commit edbfa00

File tree

10 files changed

+114
-1
lines changed

10 files changed

+114
-1
lines changed

src/i18n/locales/en/index.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@ import grading from './grading.json';
33
import login from './login.json';
44
import sessionManagement from './sessionManagement.json';
55
import sicp from './sicp.json';
6+
import autograder from './sideContent/autograder.json';
7+
import contestLeaderboard from './sideContent/contestLeaderboard.json';
8+
import contestVoting from './sideContent/contestVoting.json';
9+
import cseMachine from './sideContent/cseMachine.json';
10+
import dataVisualizer from './sideContent/dataVisualizer.json';
11+
import faceapiDisplay from './sideContent/faceapiDisplay.json';
12+
import htmlDisplay from './sideContent/htmlDisplay.json';
613
import substVisualizer from './sideContent/substVisualizer.json';
14+
import upload from './sideContent/upload.json';
715
import sourcecast from './sourcecast.json';
816
import sourceRecorder from './sourceRecorder.json';
917
import stories from './stories.json';
@@ -22,6 +30,14 @@ export default {
2230
...welcome
2331
},
2432
sideContent: {
25-
substVisualizer
33+
autograder,
34+
contestLeaderboard,
35+
contestVoting,
36+
cseMachine,
37+
dataVisualizer,
38+
faceapiDisplay,
39+
htmlDisplay,
40+
substVisualizer,
41+
upload
2642
}
2743
};
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"noTestcases": "There are no testcases provided for this question.",
3+
"noResults": "There are no results to show.",
4+
"testcases": "Testcases",
5+
"results": "Autograder Results",
6+
"tooltip": {
7+
"clickTestcase": "Click on each testcase below to execute it with the program in the editor.",
8+
"executeAll": "To execute all testcases at once, evaluate the program in the editor with this tab active.",
9+
"backgroundInfo": "A green or red background indicates a passed or failed testcase respectively.",
10+
"privateTestcases": "Private testcases (only visible to staff when grading) have a grey background."
11+
},
12+
"headers": {
13+
"testcase": "Testcase",
14+
"expected": "Expected result",
15+
"actual": "Actual result",
16+
"sn": "S/N",
17+
"status": "Testcase status"
18+
}
19+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"noEntries": "There are no eligible contest leaderboard entries found.",
3+
"titles": {
4+
"score": "Score Leaderboard",
5+
"popularVote": "Popular Vote Leaderboard",
6+
"default": "Contest Leaderboard"
7+
},
8+
"tooltips": {
9+
"score": "View the highest scoring contest entries!",
10+
"popularVote": "View the most popular contest entries!",
11+
"default": "View the top-rated contest entries!"
12+
},
13+
"headers": {
14+
"studentName": "Student Name",
15+
"rank": "Rank",
16+
"score": {
17+
"calculated": "Calculated Score",
18+
"popularity": "Popularity Score",
19+
"default": "Metric"
20+
}
21+
}
22+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"noEntries": "There are no eligible entries for voting found.",
3+
"title": "Contest Voting",
4+
"tooltip": "Rank your favourite contest entries from tiers D (worst) to S (best)!"
5+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"maxStepsExceeded": "Maximum number of steps exceeded.",
3+
"increaseStepLimit": "Please increase the step limit if you would like to see further evaluation.",
4+
"csecDescription": "The CSEC machine generates control, stash, environment and class model diagrams adapted from the notation introduced in Structure and Interpretation of Computer Programs, JavaScript Edition, Chapter 3, Section 2.",
5+
"javaCsec": "You have chosen the sublanguage Java CSEC.",
6+
"cseDescription": "The CSE machine generates control, stash and environment model diagrams following a notation introduced in Structure and Interpretation of Computer Programs, JavaScript Edition, Chapter 3, Section 2.",
7+
"instructions": "On this tab, the REPL will be hidden from view, so do check that your code has no errors before running the stepper. You may use this tool by running your program and then dragging the slider above to see the state of the control, stash and environment at different stages in the evaluation of your program. Clicking on the fast-forward button (double chevron) will take you to the next breakpoint in your program.",
8+
"shortcutsTitle": "Some useful keyboard shortcuts:",
9+
"shortcuts": {
10+
"a": "a: Move to the first step",
11+
"e": "e: Move to the last step",
12+
"f": "f: Move to the next step",
13+
"b": "b: Move to the previous step"
14+
},
15+
"shortcutsNote": "Note that these shortcuts are only active when the browser focus is on this tab.",
16+
"label": "CSE Machine"
17+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"defaultText": "The data visualizer helps you to visualize data structures.",
3+
"instructions": "It is activated by calling the function draw_data(x₁, x₂, ... xₙ), where xₖ would be the kᵗʰ data structure that you want to visualize and n is the number of structures.",
4+
"reference": "The data visualizer uses box-and-pointer diagrams, as introduced in Structure and Interpretation of Computer Programs, JavaScript Edition, Chapter 2, Section 2.",
5+
"label": "Data Visualizer",
6+
"previous": "Previous",
7+
"next": "Next"
8+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"takePicture": "Take picture",
3+
"reset": "Reset"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"title": "HTML Display",
3+
"label": "HTML Display"
4+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"timeout": "[TIMEOUT] Submission exceeded time limit for this test case.",
3+
"syntax": "[SYNTAX] Line {{line}}: {{errorExplanation}}",
4+
"runtime": "[RUNTIME] Line {{line}}: {{errorExplanation}}",
5+
"systemError": "[SYSTEM] {{errorMessage}}",
6+
"unknown": "[UNKNOWN] Autograder error: type {{errorType}}"
7+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"description": "Bypass the compiler and type checker by uploading class files to run in the JVM.",
3+
"acceptedFiles": "Only .class files are accepted. Code in the editor will be ignored when running while this tab is active.",
4+
"compileCommand": "Compile the files with the following command:",
5+
"javacCommand": "javac *.java -target 8 -source 8",
6+
"warning": "Avoid running class files downloaded from unknown sources.",
7+
"mainClass": "Main class must be named Main and uploaded as Main.class.",
8+
"chooseFiles": "Choose files...",
9+
"filesUploaded": "file(s) uploaded.",
10+
"label": "Upload files"
11+
}

0 commit comments

Comments
 (0)