Skip to content

Commit ad44d3b

Browse files
committed
no message
1 parent 3d3615a commit ad44d3b

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

src/app/item-page/simple/qa-event-notification/qa-event-notification.component.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
</div>
1111
<div class="w-100 d-flex justify-content-between">
1212
<div class="ps-4 align-self-center">
13-
{{'item.qa-event-notification.check.notification-info' | translate : {num: source.totalEvents } }}
13+
@if (source.totalEvents === 1) {
14+
{{'item.qa-event-notification.check.notification-info.singular' | translate : {num: source.totalEvents } }}
15+
} @else {
16+
{{'item.qa-event-notification.check.notification-info.plural' | translate : {num: source.totalEvents } }}
17+
}
1418
</div>
1519
<button [routerLink]="[ getQualityAssuranceRoute(), (source.id | dsSplit: ':')[0], 'target', item.id]"
1620
[queryParams]="{ forward: true }"

src/app/my-dspace-page/my-dspace-qa-events-notifications/my-dspace-qa-events-notifications.component.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
</div>
1515
<div class="w-100 d-flex justify-content-between">
1616
<div class="ps-4 align-self-center">
17-
{{ "mydspace.qa-event-notification.check.notification-info" | translate : { num: source.totalEvents } }}
17+
@if (source.totalEvents === 1) {
18+
{{ "mydspace.qa-event-notification.check.notification-info.singular" | translate : { num: source.totalEvents } }}
19+
} @else {
20+
{{ "mydspace.qa-event-notification.check.notification-info.plural" | translate : { num: source.totalEvents } }}
21+
}
1822
</div>
1923
<button
2024
[routerLink]="[getQualityAssuranceRoute(), source.id]"

src/assets/i18n/en.json5

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2967,11 +2967,15 @@
29672967

29682968
"item.truncatable-part.show-less": "Collapse",
29692969

2970-
"item.qa-event-notification.check.notification-info": "There are {{num}} pending suggestions related to your account",
2970+
"item.qa-event-notification.check.notification-info.singular": "There is {{num}} pending suggestion related to your account",
2971+
2972+
"item.qa-event-notification.check.notification-info.plural": "There are {{num}} pending suggestions related to your account",
29712973

29722974
"item.qa-event-notification-info.check.button": "View",
29732975

2974-
"mydspace.qa-event-notification.check.notification-info": "There are {{num}} pending suggestions related to your account",
2976+
"mydspace.qa-event-notification.check.notification-info.singular": "There is {{num}} pending suggestion related to your account",
2977+
2978+
"mydspace.qa-event-notification.check.notification-info.plural": "There are {{num}} pending suggestions related to your account",
29752979

29762980
"mydspace.qa-event-notification-info.check.button": "View",
29772981

0 commit comments

Comments
 (0)