From d1da56b93d6daa82abdc8e6033a4cbae58b23642 Mon Sep 17 00:00:00 2001 From: Kasper Birch Date: Tue, 26 Nov 2024 14:00:38 +0100 Subject: [PATCH] Add translations (`Player`) These translations are related to the implementation of the `Player` feature in PR: https://github.com/danskernesdigitalebibliotek/dpl-react/pull/1562 --- .../src/Controller/DplReactAppsController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php b/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php index e387b688fa..b1ec7cf51d 100644 --- a/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php +++ b/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php @@ -279,6 +279,7 @@ public function work(string $wid): array { 'already-reserved-text' => $this->t('Already reserved', [], ['context' => 'Work Page']), 'approve-reservation-text' => $this->t('Approve reservation', [], ['context' => 'Work Page']), 'audience-text' => $this->t('Audience', [], ['context' => 'Work Page']), + 'audiobook-text' => $this->t('Audiobook', [], ['context' => 'Work Page']), 'blocked-button-text' => $this->t('Blocked', [], ['context' => 'Work Page']), 'cannot-see-review-text' => $this->t('The review is not accessible', [], ['context' => 'Work Page']), 'cant-reserve-text' => $this->t("Can't be reserved", [], ['context' => 'Work Page']), @@ -314,6 +315,7 @@ public function work(string $wid): array { 'details-list-parts-text' => $this->t('Contents', [], ['context' => 'Work Page']), 'details-of-the-material-text' => $this->t('Details of the material', [], ['context' => 'Work Page']), 'details-text' => $this->t('Details', [], ['context' => 'Work Page']), + 'ebook-text' => $this->t('Ebook', [], ['context' => 'Work Page']), 'edition-text' => $this->t('Edition', [], ['context' => 'Work Page']), 'editions-text' => $this->t('Editions', [], ['context' => 'Work Page']), 'expand-more-text' => $this->t('Expand more', [], ['context' => 'Work Page']), @@ -385,7 +387,7 @@ public function work(string $wid): array { 'online-limit-month-audiobook-info-text' => $this->t('You have borrowed @count out of @limit possible audio-books this month', [], ['context' => 'Work Page']), 'online-limit-month-ebook-info-text' => $this->t('You have borrowed @count out of @limit possible e-books this month', [], ['context' => 'Work Page']), 'online-limit-month-info-text' => $this->t('You have borrowed @count out of @limit possible e-books this month', [], ['context' => 'Work Page']), - 'online-material-teaser-text' => $this->t('Try e-book', [], ['context' => 'Work Page']), + 'online-material-teaser-text' => $this->t('Try @materialType', [], ['context' => 'Work Page']), 'open-order-not-owned-ill-loc-text' => $this->t('Your material has been ordered from another library', [], ['context' => 'Work Page']), 'open-order-owned-own-catalogue-text' => $this->t('Item available, order through the librarys catalogue', [], ['context' => 'Work Page']), 'open-order-owned-wrong-mediumtype-text' => $this->t('Item available but medium type not accepted', [], ['context' => 'Work Page']), @@ -411,6 +413,8 @@ public function work(string $wid): array { 'order-digital-copy-title-text' => $this->t('Order digital copy', [], ['context' => 'Work Page']), 'original-title-text' => $this->t('Original title', [], ['context' => 'Work Page']), 'periodical-select-edition-text' => $this->t('Edition', [], ['context' => 'Work Page']), + 'player-modal-close-button-text' => $this->t('Close', [], ['context' => 'Work Page']), + 'player-modal-description-text' => $this->t('Player modal description', [], ['context' => 'Work Page']), 'periodical-select-year-text' => $this->t('Year', [], ['context' => 'Work Page']), 'periodikum-select-week-text' => $this->t('Week', [], ['context' => 'Work Page']), 'periodikum-select-year-text' => $this->t('Year', [], ['context' => 'Work Page']),