Skip to content

Commit

Permalink
Address Ramonas Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-glombik committed Dec 17, 2024
1 parent c249e87 commit 4afc64f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ <h4 class="modal-title" jhiTranslate="artemisApp.lecture.dismissChangesModal.tit
</div>
<div class="modal-body">
<span jhiTranslate="artemisApp.lecture.dismissChangesModal.message" class="fw-bold"></span><br />
<!-- check if translation should be singular or plural, to be exchanged
with computed signals once input signals are supported with ng-bootstrap modals -->
@if (hasUnsavedChangesInTitleSection && hasUnsavedChangesInPeriodSection) {
<span jhiTranslate="artemisApp.lecture.dismissChangesModal.sectionsThatContainUnsavedChanges"></span>
<span jhiTranslate="artemisApp.lecture.dismissChangesModal.sectionsThatContainUnsavedChangesPlural"></span>
} @else {
<span jhiTranslate="artemisApp.lecture.dismissChangesModal.sectionThatContainsUnsavedChanges"></span>
<span jhiTranslate="artemisApp.lecture.dismissChangesModal.sectionsThatContainUnsavedChangesSingular"></span>
}
<ul>
@if (hasUnsavedChangesInTitleSection) {
Expand All @@ -22,11 +24,11 @@ <h4 class="modal-title" jhiTranslate="artemisApp.lecture.dismissChangesModal.tit
</ul>
</div>
<div class="modal-footer">
<button type="button" (click)="closeWindow(false)" class="btn btn-default">
<fa-icon [icon]="faTimes" />
&nbsp;<span jhiTranslate="entity.action.cancel"></span>
</button>
<button class="btn btn-primary" type="submit" (click)="closeWindow(true)">
<button class="btn btn-default" (click)="closeWindow(true)">
<span jhiTranslate="entity.action.discardChanges"></span>
</button>
<button type="button" (click)="closeWindow(false)" class="btn btn-primary" type="submit">
<fa-icon [icon]="faTimes" />
<span class="ms-1" jhiTranslate="entity.action.cancel"></span>
</button>
</div>
10 changes: 5 additions & 5 deletions src/main/webapp/i18n/de/lecture.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"attachmentsStepTitle": "Anhänge",
"attachmentsStepMessage": "Lade Anhänge für die Vorlesung hoch.",
"unitsStepTitle": "Vorlesungseinheiten",
"unitsStepMessage": "Füge Inhalte zur Vorlesung hinzu durch Erstellung von Vorlesungseinheiten."
"unitsStepMessage": "Füge Inhalte zur Vorlesung hinzu, indem du Vorlesungseinheiten erstellst."
},
"newLectureUnit": "Neue Vorlesungseinheit",
"editLectureUnit": "Vorlesungseinheit bearbeiten",
Expand All @@ -91,10 +91,10 @@
"competencyNoConnectedUnits": "Keine verknüpften Einheiten"
},
"dismissChangesModal": {
"title": "Ungespeicherte Änderungen der Vorlesung verwerfen",
"message": "Bist du sicher, dass die ungespeicherten Änderungen verworfen werden sollen?",
"sectionsThatContainUnsavedChanges": "Die folgenden Abschnitte enthalten ungespeicherte Änderungen:",
"sectionThatContainsUnsavedChanges": "Der folgenden Abschnitt enthält ungespeicherte Änderungen:"
"title": "Ungespeicherte Änderungen der Vorlesung verwerfen?",
"message": "Bist du sicher, dass du die ungespeicherten Änderungen verwerfen willst?",
"sectionsThatContainUnsavedChangesSingular": "Der folgenden Abschnitt enthält ungespeicherte Änderungen:",
"sectionsThatContainUnsavedChangesPlural": "Die folgenden Abschnitte enthalten ungespeicherte Änderungen:"
}
},
"attachment": {
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/i18n/en/lecture.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
"dismissChangesModal": {
"title": "Discard unsaved lecture changes",
"message": "Are you sure you want to discard your unsaved changes?",
"sectionsThatContainUnsavedChanges": "The following sections contain unsaved changes:",
"sectionThatContainsUnsavedChanges": "The following section contains unsaved changes:"
"sectionsThatContainUnsavedChangesSingular": "The following section contains unsaved changes:",
"sectionsThatContainUnsavedChangesPlural": "The following sections contain unsaved changes:"
}
},
"attachment": {
Expand Down

0 comments on commit 4afc64f

Please sign in to comment.