Skip to content

Commit

Permalink
Empty Template usage hints
Browse files Browse the repository at this point in the history
  • Loading branch information
magaupp committed Sep 4, 2024
1 parent bfb6fc3 commit d4e462a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,25 @@
}
</div>
}
@if (programmingExercise.programmingLanguage === ProgrammingLanguage.EMPTY) {
<div>
<p jhiTranslate="artemisApp.programmingExercise.otherLanguageHints.title" class="mb-0"></p>
<ul>
<li jhiTranslate="artemisApp.programmingExercise.otherLanguageHints.setImage"></li>
<li>
<p jhiTranslate="artemisApp.programmingExercise.otherLanguageHints.buildScript.title" class="mb-0"></p>
<ol>
<li jhiTranslate="artemisApp.programmingExercise.otherLanguageHints.buildScript.dependencies"></li>
<li jhiTranslate="artemisApp.programmingExercise.otherLanguageHints.buildScript.runTests"></li>
<li jhiTranslate="artemisApp.programmingExercise.otherLanguageHints.buildScript.moveResults" [translateValues]="{ resultsDirectory: './results/' }"></li>
</ol>
</li>
<li jhiTranslate="artemisApp.programmingExercise.otherLanguageHints.pushExercise" [translateValues]="{ checkoutDirectory: './assignment/' }"></li>
<li jhiTranslate="artemisApp.programmingExercise.otherLanguageHints.pushSolution"></li>
<li jhiTranslate="artemisApp.programmingExercise.otherLanguageHints.pushTest" [translateValues]="{ checkoutDirectory: './' }"></li>
</ul>
</div>
}
@if (programmingExercise.programmingLanguage && programmingExerciseCreationConfig.packageNameRequired && programmingExercise.projectType !== ProjectType.XCODE) {
<div class="form-group">
<label class="label-narrow" jhiTranslate="artemisApp.programmingExercise.packageName" for="field_packageName"></label>
Expand Down
13 changes: 13 additions & 0 deletions src/main/webapp/i18n/de/programmingExercise.json
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,19 @@
"template": "Vorlage",
"history": "Commit-Historie",
"result": "Ergebnis"
},
"otherLanguageHints": {
"title": "Führe folgende Schritte aus, um eine andere Sprache zu benutzen:",
"setImage": "Setze ein Docker Image mit installierten Abhängigkeiten.",
"buildScript": {
"title": "Passe das Build Skript an:",
"dependencies": "Optional: Installiere aufgabenspezifische Abhängigkeiten.",
"runTests": "Führe alle Tests aus. Sie sollten JUnit XML Dateien generieren.",
"moveResults": "Bewege die XML Dateien in das <code>{{resultsDirectory}}</code> Verzeichnis."
},
"pushExercise": "Lade den Aufgaben-Code in das entsprechende Repository. Es wird in <code>{{checkoutDirectory}}</code> ausgecheckt.",
"pushSolution": "Lade den Lösungs-Code in das entsprechende Repository. Es wird nicht ausgecheckt.",
"pushTest": "Lade den Test-Code in das entsprechende Repository. Es wird in <code>{{checkoutDirectory}}</code> ausgecheckt."
}
},
"error": {
Expand Down
13 changes: 13 additions & 0 deletions src/main/webapp/i18n/en/programmingExercise.json
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,19 @@
"template": "Template",
"history": "Commit History",
"result": "Result"
},
"otherLanguageHints": {
"title": "To use another language, complete the following tasks:",
"setImage": "Set a Docker image with installed dependencies.",
"buildScript": {
"title": "Customize the build script to:",
"dependencies": "Optional: Install exercise specific dependencies.",
"runTests": "Run all tests. They should generate JUnit XML files.",
"moveResults": "Move the XML files into the <code>{{resultsDirectory}}</code> directory."
},
"pushExercise": "Push the exercise code to its repository. It will be checked out at <code>{{checkoutDirectory}}</code>.",
"pushSolution": "Push the solution code to its repository. It will not be checked out.",
"pushTest": "Push the test code to its repository. It will be checked out at <code>{{checkoutDirectory}}</code>."
}
},
"error": {
Expand Down

0 comments on commit d4e462a

Please sign in to comment.