Skip to content

Commit

Permalink
Development: Fix an issue with updated translations
Browse files Browse the repository at this point in the history
  • Loading branch information
krusche committed Nov 16, 2024
1 parent afe5f7f commit 32f6b56
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@
<ng-template #editorTitle>
<span>
<span>{{ exercise?.title }}</span>
<span>&nbsp;[</span>
<span>{{ exercise?.maxPoints }} {{ 'artemisApp.examParticipation.points' | artemisTranslate }}</span>
@if (exercise.bonusPoints) {
<span>, {{ exercise.bonusPoints }} {{ 'artemisApp.examParticipation.bonus' | artemisTranslate }}</span>
}
@if (exercise.includedInOverallScore !== IncludedInOverallScore.INCLUDED_COMPLETELY) {
<jhi-included-in-score-badge [includedInOverallScore]="exercise.includedInOverallScore" />
}
<span>]</span>
<span
[jhiTranslate]="exercise.bonusPoints ? 'artemisApp.examParticipation.bonus' : 'artemisApp.examParticipation.points'"
[translateValues]="{ points: exercise.maxPoints, bonusPoints: exercise.bonusPoints }"
></span>
<span>
@if (exercise.includedInOverallScore !== IncludedInOverallScore.INCLUDED_COMPLETELY) {
<jhi-included-in-score-badge [includedInOverallScore]="exercise.includedInOverallScore" />
}
</span>
</span>
</ng-template>
<ng-template #editorToolbar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
<jhi-code-editor-container [participation]="selectedParticipation!" [buildable]="selectedRepository !== REPOSITORY.TEST" [course]="course" [allowHiddenFiles]="true">
<div editorTitle>
<span>{{ exercise?.title }}</span>
<!-- prettier-ignore -->
<span>&nbsp;[{{ exercise?.maxPoints }} {{ 'artemisApp.examParticipation.points' | artemisTranslate }}@if (exercise.bonusPoints) {
<span>, {{ exercise.bonusPoints }} {{ 'artemisApp.examParticipation.bonus' | artemisTranslate }}</span>
}]
@if (exercise.includedInOverallScore !== IncludedInOverallScore.INCLUDED_COMPLETELY) {
<jhi-included-in-score-badge [includedInOverallScore]="exercise.includedInOverallScore"/>
}</span>
<span
[jhiTranslate]="exercise.bonusPoints ? 'artemisApp.examParticipation.bonus' : 'artemisApp.examParticipation.points'"
[translateValues]="{ points: exercise.maxPoints, bonusPoints: exercise.bonusPoints }"
></span>
<span>
@if (exercise.includedInOverallScore !== IncludedInOverallScore.INCLUDED_COMPLETELY) {
<jhi-included-in-score-badge [includedInOverallScore]="exercise.includedInOverallScore" />
}
</span>
</div>
<div editorTitleActions class="d-flex align-items-center ms-2">
<jhi-programming-exercise-instructor-exercise-status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@
>
<div editorTitle>
<span>{{ exercise?.title }}</span>
<!-- prettier-ignore -->
<span>&nbsp;[{{ exercise?.maxPoints }} {{ 'artemisApp.examParticipation.points' | artemisTranslate }}@if (exercise.bonusPoints) {
<span>, {{ exercise.bonusPoints }} {{ 'artemisApp.examParticipation.bonus' | artemisTranslate }}</span>
}]
<span
[jhiTranslate]="exercise?.bonusPoints ? 'artemisApp.examParticipation.bonus' : 'artemisApp.examParticipation.points'"
[translateValues]="{ points: exercise?.maxPoints, bonusPoints: exercise?.bonusPoints }"
></span>
<span>
@if (exercise.includedInOverallScore !== IncludedInOverallScore.INCLUDED_COMPLETELY) {
<jhi-included-in-score-badge [includedInOverallScore]="exercise.includedInOverallScore" />
}
Expand Down

0 comments on commit 32f6b56

Please sign in to comment.